Class defaults and instance overrides¶
A Data Asset class holds the default of every field, and an instance holds only the fields it overrides. The game reads the override if there is one, otherwise the class default. A change made on the class therefore shows only where no instance overrides that field.
| Where | What it holds | How you edit it |
|---|---|---|
DataAssets/<System>/PDA_<Name> |
the default for every asset of that type | open the Blueprint, click Class Defaults |
DataAssets/<System>/Childs/DA_<Name> |
only what this instance overrides | double-click it, fill the Details panel |
Which shipped instances override¶
DataAssets/Inventory/Childs/DA_Inventory_Default overrides nothing. To change one of its numbers
for everyone, edit the Class Defaults of DataAssets/Inventory/PDA_InventorySettings, not the DA_.
Five other shipped instances override fields of their class. For these fields, edit the DA_: a
change on the PDA_ does not show.
| Instance | Fields it overrides |
|---|---|
DA_Vision_Default |
ViewDistance 3000, FadeSpeed 14, HiddenDelay 0.15, OutsideDarkness 0.42, OutsideDesaturation 0.28 |
DA_Needs_Default |
HungerDecayPerMinute 0.125, ThirstDecayPerMinute 0.1667, FatigueDecayPerMinute 0.0625 |
DA_Infection_Default |
IncubationMinutes 288, DamagePerMinute 0.229 |
DA_Barricade_Default |
planks and nails per layer, max layers, hits per layer, the plank and nail items, the required tool |
DA_WeaponSlots_Default |
Slots, AlwaysActive |
To let the survivor see further, for example, raise ViewDistance in
DataAssets/Vision/Childs/DA_Vision_Default. Raising it in the Class Defaults of
DataAssets/Vision/PDA_VisionSettings changes nothing in play, because the instance overrides it
with 3000. If in doubt, open the DA_ first.
The rates of DA_Needs_Default and DA_Infection_Default are per game minute. At the default day
length of 30 minutes, 48 game minutes pass in a real minute, so multiply by 48 to read them in real
time: hunger falls 6 points a real minute, and the infection drains about 11 health a real minute.
The same rule on Blueprints and placed actors¶
A placed actor can override its class. A sound of BP_Openable or BP_Window, CanVault and
TraversalDef are set in the Blueprint's Class Defaults, or on one placed door or window in its
Details panel to make a single exception. A BP_Zombie dropped in a map by hand takes its archetype
from the Def you set in its Details panel.
A component placed in a Blueprint keeps its own copy of each value. BP_Survivor carries its own
Wounds component, with its own copy of BoneToPart: if you rewrite the table on AC_Wounds,
rewrite it on the survivor's component too. The occupancy and demolition numbers of AC_Building,
and the drop settings of AC_Inventory (DropDistance, DropTraceDepth, DropPickupClass), are in
the same case. Change them on the survivor's component, which is the copy the game reads.
When a change does not show, check in this order: the placed actor, the component inside the Blueprint, then the class.