Prevent settlement spawning for nomadic factions - AndroidQuazar/VanillaExpandedFramework GitHub Wiki

By default, all non-hidden factions will always spawn settlements, have faction leaders and be displayed in the in-game faction list, while hidden faction will neither spawn settlements nor have faction leaders.

However, there may be cases where you want to a non-hidden faction to never spawn settlements, while still having faction leaders and being displayed in the faction list - for example, nomadic communities or roving pirate bands.

The canSpawnSettlements flag can be used to control this behaviour.

Create the KCSG.CustomGenOption modExtension

This needs to be added to your FactionDef, so the game knows your faction is using the custom generation code. The extension can also be added to other FactionDefs using patches. Do not add multiple extension per faction def. If you are already using the extension on a faction, simply do the following :

Specify the canSpawnSettlements flag

  • If set to false, the faction will never spawn settlements on the world map
  • If unspecified or explicitly set to true, the faction will default back to spawning settlements normally
<modExtensions>
  <li Class="KCSG.CustomGenOption">
    <canSpawnSettlements>false</canSpawnSettlements>
  </li>
</modExtensions>
⚠️ **GitHub.com Fallback** ⚠️