Hello all, I've been working on a mod that will include several new races, I've got a pretty good understanding how things work when adding new content, but I've seem to hit a major road block. The game crashes when I load in the mod i'm working on and the error message says no cross reference for BaseOrk. Here is the race that I created, don't mind some of obvious things such as still using the mechanoid as the art.
Here is the pawn kind
Finally the faction
I've spent a entire day trying to figure out what I've done wrong. Also if your wondering what the mod is, its a 40k mod. Any 2d artist who want to help out are more than welcome, already finished most of the imperial weapons, just need to make the armors and alien bodies
.
Code Select
<ThingDef Name="BasePawn" Abstract="True">
<eType>Pawn </eType>
<thingClass>Pawn</thingClass>
<category>Pawn</category>
<selectable>true</selectable>
<tickerType>Normal</tickerType>
<altitudeLayer>Pawn</altitudeLayer>
<useStandardHealth>false</useStandardHealth>
<flammability>1.0</flammability>
<hasTooltip>true</hasTooltip>
<soundBulletHit>BulletImpactFlesh</soundBulletHit>
<inspectorTabs>
<li>ITab_Pawn_Thoughts</li>
<li>ITab_Pawn_Needs</li>
<li>ITab_Pawn_Prisoner</li>
<li>ITab_Pawn_Gear</li>
<li>ITab_Pawn_Character</li>
</inspectorTabs>
<drawGUIOverlay>true</drawGUIOverlay>
</ThingDef>
<!-- ============================ Ork ========================== -->
<ThingDef ParentName="BasePawn" Name="BaseOrk" Abstract="True">
<soundBulletHit>BulletImpactFlesh</soundBulletHit>
<flammability>1.0</flammability>
<race>
<hasStory>false</hasStory>
<needsRest>false</needsRest>
<hasGenders>false</hasGenders>
<isFlesh>true</isFlesh>
<diet>NeverEats</diet>
</race>
</ThingDef>
<!-- Ork Boy -->
<ThingDef ParentName="BaseOrk">
<defName>Ork_Boy</defName>
<label>Ork Boy</label>
<description>Tough, mean, and green, this ork's only concern is to shoot and smash. It's shear muscle mass makes a protective armor coating that can abosorb a great deal of damage.</description>
<maxHealth>200</maxHealth>
<sunShadowInfo>
<baseWidth>0.4</baseWidth>
<baseHeight>0.4</baseHeight>
<tallness>0.8</tallness>
</sunShadowInfo>
<targetHitChanceFactor>1.5</targetHitChanceFactor>
<race>
<thinkTree>Humanoid</thinkTree>
<humanoid>true</humanoid>
<walkSpeed>1.0</walkSpeed>
<meleeDamage>25</meleeDamage>
<bodySize>1.25</bodySize>
<soundWounded>Pawn_Human_Wounded</soundWounded>
<soundDeath>Pawn_Human_Death</soundDeath>
<soundMeleeHitPawn>Pawn_Melee_Punch_HitPawn</soundMeleeHitPawn>
<soundMeleeHitBuilding>Pawn_Melee_Punch_HitBuilding</soundMeleeHitBuilding>
<soundMeleeMiss>Pawn_Melee_Punch_Miss</soundMeleeMiss>
</race>
</ThingDef>Here is the pawn kind
Code Select
<PawnKindDef>
<defName>Ork_Choppa</defName>
<label>Ork Choppa</label>
<race>Ork_Boy</race>
<pointsCost>100</pointsCost>
<defaultFactionType>Ork_Clan</defaultFactionType>
<aiAvoidCover>false</aiAvoidCover>
<isFighter>true</isFighter>
<standardBodyGraphicPath>Things/Pawn/Mechanoid/Centipede</standardBodyGraphicPath>
<moneyForWeapons>
<min>1200</min>
<max>1200</max>
</moneyForWeapons>
<weaponTags>
<li>MechanoidGunHeavy</li>
</weaponTags>
</PawnKindDef>Finally the faction
Code Select
<FactionDef>
<defName>Ork_Clan</defName>
<label>Ork Clan</label>
<description>A large group of greenskins who travel around the galaxy looking for a fight.</description>
<pawnsPlural>Orks</pawnsPlural>
<requiredCountAtGameStart>1</requiredCountAtGameStart>
<fixedName>a ork clan</fixedName>
<raidCommonality>45</raidCommonality>
<humanoidFaction>false</humanoidFaction>
<hidden>false</hidden>
<canFlee>true</canFlee>
<techLevel>Ultra</techLevel>
<startingGoodwill>
<min>-100</min>
<max>-100</max>
</startingGoodwill>
<naturalColonyGoodwill>
<min>-100</min>
<max>-100</max>
</naturalColonyGoodwill>
<spawnGroups>
<li>
<selectionWeight>100</selectionWeight>
<kinds>
<li>Ork_Boy</li>
</kinds>
</li>
</spawnGroups>
</FactionDef>I've spent a entire day trying to figure out what I've done wrong. Also if your wondering what the mod is, its a 40k mod. Any 2d artist who want to help out are more than welcome, already finished most of the imperial weapons, just need to make the armors and alien bodies
.
.