Custom Faction Help. Raid size issue.

Started by QuantumX, December 09, 2016, 12:08:10 PM

Previous topic - Next topic

QuantumX

So.

I have a new faction that goes with my main mod, but i may or may not have a problem.

So basically using the dev mode i spawn a 290 raid, one for vanilla Pirate, Tribe and Outlander and then one for my traitor guard, and for some reason my mod spawns double the pawns in the raid to the others.

Does anybody have an idea as to why this is happening? I know the colony wealth etc control raise size, but using the Dev Mode and spawning a 290 size raid with all the available factions i get 6 pawns on the vanilla factions and 12 on mine but for the life of my I cannot understand why?

My Faction File
<FactionDef>
<defName>TraitorGuardFaction</defName>
<label>Traitor Guard Regiment</label>
<description>The Traitor Guard are among the better armed and minded troops that Chaos Champions and/or Arch-Heretics have at their disposal in order to fulfil their own agendas, Champions of Chaos draw lesser Chaos followers to them to form their own personal armies, which can vary tremendously in size and strength. These traitors, unlike other mutants and other vile Beastmen, have not completely lost their military skills or sanity, forming a reasonably reliable core force amongst the slavering hordes of the Lost and Damned armies...</description>
<pawnsPlural>traitor guard</pawnsPlural>
<requiredCountAtGameStart>1</requiredCountAtGameStart>
<canMakeRandomly>false</canMakeRandomly>
<raidCommonality>100</raidCommonality>
<humanlikeFaction>true</humanlikeFaction>
<hidden>false</hidden>
<canStageAttacks>true</canStageAttacks>
<leaderTitle>Captain</leaderTitle>
<appreciative>false</appreciative>
<canFlee>true</canFlee>
<startingGoodwill> <!-- Never Can Be Friendly -->
<min>-100</min>
<max>-100</max>
</startingGoodwill>
<naturalColonyGoodwill> <!-- Never Can Be Friendly -->
<min>-100</min>
<max>-100</max>
</naturalColonyGoodwill>
<earliestRaidDays>60</earliestRaidDays>
<factionNameMaker>NamerIGFTraitorGuardFaction</factionNameMaker>
<pawnNameMaker>NamerIGTraitorGuardPawns</pawnNameMaker>
<techLevel>Spacer</techLevel>
<backstoryCategory>Raider</backstoryCategory>
<hairTags>
<li>Urban</li>
<li>Rural</li>
</hairTags>
<allowedArrivalTemperatureRange>
<min>-55</min>
<max>65</max>
</allowedArrivalTemperatureRange>
<mustStartOneEnemy>true</mustStartOneEnemy>
<pawnGroupMakers>
<li Class="PawnGroupMaker_Normal">
<commonality>100</commonality>
<options>
<TGBlightDrone>200</TGBlightDrone> <!-- Higher More Common Lower Less Common -->
<TGSolider>140</TGSolider>
</options>
</li>
<li Class="PawnGroupMaker_Normal">
<commonality>120</commonality>
<options>
<TGSolider>200</TGSolider> <!-- Higher More Common Lower Less Common -->
<TGBlightDrone>180</TGBlightDrone>
<TGHeavySoldier>140</TGHeavySoldier>
<TGGrenadier>60</TGGrenadier>
</options>
</li>
<li Class="PawnGroupMaker_Normal">
<commonality>10</commonality>
<options>
<TGSolider>60</TGSolider> <!-- Higher More Common Lower Less Common -->
<TGHeavySoldier>160</TGHeavySoldier>
<TGGrenadier>80</TGGrenadier>
<TGSharpshooter>100</TGSharpshooter>
<TGVeteran>70</TGVeteran>
<TGStormTrooper>60</TGStormTrooper>
<TGCaptain>30</TGCaptain>
</options>
</li>
<li Class="PawnGroupMaker_Normal">
<commonality>5</commonality>
<options>
<TGSolider>40</TGSolider> <!-- Higher More Common Lower Less Common -->
<TGHeavySoldier>120</TGHeavySoldier>
<TGGrenadier>60</TGGrenadier>
<TGSharpshooter>100</TGSharpshooter>
<TGVeteran>80</TGVeteran>
<TGStormTrooper>90</TGStormTrooper>
<TGCaptain>70</TGCaptain>
</options>
</li>
</pawnGroupMakers>
<homeIconPath>Things/IGTGF/Icons/TraitorGuardIcon</homeIconPath>
<homeIconColor>(128,0,0)</homeIconColor>
  </FactionDef>


My Pawn Maker
<PawnKindDef Abstract="True" Name="TraitorBase" >
<race>Human</race>
<defaultFactionType>TraitorGuardFaction</defaultFactionType>
<baseRecruitDifficulty>1</baseRecruitDifficulty>
<backstoryCategory>Raider</backstoryCategory>
<invNutrition>2.50</invNutrition>
<itemQuality>Poor</itemQuality>
<backstoryCryptosleepCommonality>0.3</backstoryCryptosleepCommonality>
<maxGenerationAge>50</maxGenerationAge>
<gearHealthRange>
<min>0.75</min>
<max>1</max>
</gearHealthRange>
<apparelMoney>
<min>850</min>
<max>850</max>
</apparelMoney>
<apparelRequired>
<li>IGJumpSuit</li>
<li>TG_StdArmor</li>
<li>TG_StdHelmet</li>
</apparelRequired>
<apparelAllowHeadwearChance>0.5</apparelAllowHeadwearChance> <!-- Do i need this line? -->
<weaponMoney>
<min>2500</min>
<max>2500</max>
</weaponMoney>
<inventoryOptions>
  <skipChance>0.1</skipChance>
<subOptionsChooseOne>
<li>
<thingDef>Uranium</thingDef>
<countRange>
<min>20</min>
<max>50</max>
</countRange>
</li>
<li>
<thingDef>Medicine</thingDef>
<countRange>
<min>1</min>
<max>1</max>
</countRange>
</li>
</subOptionsChooseOne>
</inventoryOptions>
</PawnKindDef>

<PawnKindDef ParentName="TraitorBase">
<defName>TGSolider</defName>
<label>Guardsman</label>
<weaponTags>
<li>TGLasPistol</li>
</weaponTags>
<combatPower>20</combatPower>
</PawnKindDef>

<PawnKindDef ParentName="TraitorBase">
<defName>TGHeavySoldier</defName>
<label>Heavy Guardsman</label>
<weaponTags>
<li>TGLasGun</li>
</weaponTags>
<combatPower>25</combatPower>
</PawnKindDef>

<PawnKindDef ParentName="TraitorBase">
<defName>TGGrenadier</defName>
<label>Grenadier Guardsman</label>
<weaponTags>
<li>TGKrakGrenade</li>
</weaponTags>
<combatPower>25</combatPower>
</PawnKindDef>

<PawnKindDef ParentName="TraitorBase">
<defName>TGSharpshooter</defName>
<label>Guardsman Sharpshooter</label>
<weaponTags>
<li>TGExitusSniper</li>
</weaponTags>
<combatPower>30</combatPower>
</PawnKindDef>

<PawnKindDef ParentName="TraitorBase">
<defName>TGVeteran</defName>
<label>Veteran Guardsman</label>
<itemQuality>Superior</itemQuality>
<apparelMoney>
<min>1600</min>
<max>1600</max>
</apparelMoney>
<apparelRequired>
<li>IGJumpSuit</li>
<li>TG_StdArmor</li>
<li>TG_StdHelmet</li>
<li>TG_FlakPlate</li>
</apparelRequired>
<weaponTags>
<li>TGPlasmaRifle</li>
</weaponTags>
<combatPower>30</combatPower>
</PawnKindDef>

<PawnKindDef ParentName="TraitorBase">
<defName>TGStormTrooper</defName>
<label>Stormtrooper</label>
<itemQuality>Superior</itemQuality>
<apparelMoney>
<min>1600</min>
<max>1600</max>
</apparelMoney>
<apparelRequired>
<li>IGJumpSuit</li>
<li>TG_StdArmor</li>
<li>TG_StdHelmet</li>
<li>TG_FlakPlate</li>
</apparelRequired>
<weaponTags>
<li>TGBoltGun</li>
</weaponTags>
<combatPower>40</combatPower>
</PawnKindDef>

<PawnKindDef ParentName="TraitorBase">
<defName>TGCaptain</defName>
<label>Captain</label>
<race>Human</race>
<defaultFactionType>TraitorGuardFaction</defaultFactionType>
<!-- <factionLeader>true</factionLeader> Commented Out as it created an error atm -->
<combatPower>100</combatPower>
<baseRecruitDifficulty>1</baseRecruitDifficulty>
<backstoryCategory>Raider</backstoryCategory>
<itemQuality>Excellent</itemQuality>
<gearHealthRange>
<min>1</min>
<max>1</max>
</gearHealthRange>
<apparelMoney>
<min>1600</min>
<max>1600</max>
</apparelMoney>
<apparelRequired>
<li>IGJumpSuit</li>
<li>TG_StdArmor</li>
<li>TG_StdHelmet</li>
<li>TG_FlakPlate</li>
</apparelRequired>
<apparelAllowHeadwearChance>1</apparelAllowHeadwearChance>
<weaponTags>
<li>TGBoltGun</li>
</weaponTags>
<inventoryOptions>
<skipChance>0.01</skipChance>
<subOptionsChooseOne>
<li>
<thingDef>Uranium</thingDef>
<countRange>
<min>200</min>
<max>500</max>
</countRange>
</li>
<li>
<thingDef>Medicine</thingDef>
<countRange>
<min>1</min>
<max>3</max>
</countRange>
</li>
</subOptionsChooseOne>
</inventoryOptions>
</PawnKindDef>



sulusdacor

as far as i know the size is mainly the wealth/worth the raid has together. so if your fraction has equipment that is rather cheap it will maybe spawn better equiped or/and more pawns then the vanilla ones. i have not done a fraction mod myself, so could be totally wrong here, just a thought. since your pawns seem to use the custom equipment this could be the reason.

Illusion Distort

The game spawns a total amount of strenght when spawning a raid. If your faction has cheap gear and are unskilled the game will keep spawning units untill it reaches the dessired strenght.

QuantumX

Thanks for the help, all sorted now i believe.