• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

Gamestage doesn't affect sleeper quantities

Crater Creator

Community Moderator
The number of sleepers the game should spawn in a POI appears to be specified in more than one place.

First, in the .xml file for each individual prefab. For example, this is from a cabin POI.

Code:
<prefab>
	...
  <property name="SleeperVolumeGroup" value="[color="#EE82EE"]S_-Group_Generic_Zombie[/color],[b][color="#FF8C00"]2,2[/color][/b],S_-Group_Generic_Zombie,[b][color="#FF8C00"]1,1[/color][/b],S_-Group_Generic_Zombie,[b][color="#FF8C00"]3,3[/color][/b],S_-Group_Generic_Zombie,[color="#FF8C00"]1,2[/color],S_-Group_Generic_Zombie,[color="#FF8C00"]1,1[/color],S_-Group_Generic_Zombie,[b][color="#FF8C00"]1,1[/color][/b]" />
...
</prefab>
Secondly, in gamestages.xml.

Code:
	<group name="[color="#EE82EE"]S_-Generic_Zombie[/color]" emptyChance="0" decoyChance="0" decoy1hpChance="0">
	<spawner name="SleeperGSList" count="[b][color="#FF8C00"]5,6[/color][/b]"/>
</group>

...

<!-- https://7daystodie.com/forums/showthread.php?56533-Gamestage-Blood-Moon-Horde-generator -->
<!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXX  start: auto generated sleeper horde gamestages  XXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
<spawner name="SleeperGSList">
	<gamestage stage="1"><spawn group="sleeperHordeStageGS1" [b][color="#FF8C00"]num="1"[/color][/b] maxAlive="1" duration="1"/></gamestage>
	<gamestage stage="2"><spawn group="sleeperHordeStageGS2" [b][color="#FF8C00"]num="1"[/color][/b] maxAlive="1" duration="1"/></gamestage>
	<gamestage stage="5"><spawn group="sleeperHordeStageGS5" [b][color="#FF8C00"]num="3"[/color][/b] maxAlive="1" duration="1"/></gamestage>
	...
</spawner>
Suppose the player enters this cabin on Day 1, when gamestage starts at 1.

Controlled by the prefab's xml, this cabin would have 2 + 1 + 3 + [1..2] + 1 + 1 = 9 or 10 sleepers.

Controlled by the spawner group xml, this cabin would have [5..6] + [5..6] + [5..6] + [5..6] + [5..6] + [5..6] = 30 to 36 sleepers.

Experimentation reveals it's the prefab's .xml that matters here. But then, why specify a count in the spawner group and a num in the gamestage? And here's my real question: how could I reduce the number of sleepers at very low gamestages, preferably without having to modify every prefab .xml?

 
The why is likely because it's not hooked up yet, the how is I don't think you can. GS does affect volumes though, but on type, not count, I believe.

 
Back
Top