In a mod I made a change to the itemSets on one particular rank on one deployment, and the mod ran fine but attempting to get into a mission with that UFO caused the game to hang. With some trial and error I discovered that if I provide data for the itemSets without providing data for the rank quantity, the game hangs.
This code will cause the game to hang:
alienDeployments:
- type: STR_MEDIUM_SCOUT
data:
- alienRank: 4
itemSets:
-
- STR_PLASMA_PISTOL
- STR_PLASMA_PISTOL_CLIP
- STR_MIND_PROBE
-
- STR_PLASMA_RIFLE
- STR_PLASMA_RIFLE_CLIP
- STR_MIND_PROBE
-
- STR_HEAVY_PLASMA
- STR_HEAVY_PLASMA_CLIP
- STR_MIND_PROBE
This code will not cause the game to hang:
alienDeployments:
- type: STR_MEDIUM_SCOUT
data:
- alienRank: 4
lowQty: 1
highQty: 2
dQty: 1
itemSets:
-
- STR_PLASMA_PISTOL
- STR_PLASMA_PISTOL_CLIP
- STR_MIND_PROBE
-
- STR_PLASMA_RIFLE
- STR_PLASMA_RIFLE_CLIP
- STR_MIND_PROBE
-
- STR_HEAVY_PLASMA
- STR_HEAVY_PLASMA_CLIP
- STR_MIND_PROBE
Am I just supposed to include all of the data that I'm not making changes to? How much do I need to include to avoid resetting values to defaults?
I'm not sure if this relates to OXCE+ or OXC.