RimWorld

RimWorld

Humanoid Alien Races
This topic has been locked
Clippy 12 Oct, 2020 @ 5:29am
Custom race not in my faction.
So basically there's a custom race that I want to be hatched from an "egg" (a d pile of bones with a soul in it crafted at a special workbench), but upon hatching the pawn is not from my faction and just... walks away to the map's edge. This is the only thing holding this mod from working properly.
Here's my PawnKindDef.
<PawnKindDef> <defName>SkeletonKind</defName> <label>weak skeleton</label> <defaultFactionType>PlayerColony</defaultFactionType> <chemicalAddictionChance>0</chemicalAddictionChance> <combatPower>10</combatPower> <race>Skeleton</race> </PawnKindDef>

As you can see the default faction is set to the player's colony.. My "egg" has the hatcher race set to SkeletonKind so I have no idea why it's not working. Any help is greatly appreciated!

P.S. When the skeleton is spawned via dev mode he does get automatically added to the player's faction.
Last edited by Clippy; 12 Oct, 2020 @ 5:35am
< >
Showing 1-6 of 6 comments
erdelf  [developer] 15 Nov, 2020 @ 2:40am 
apologies for the late answer, do you still have this problem ?
Clippy 15 Nov, 2020 @ 3:09am 
Originally posted by erdelf:
apologies for the late answer, do you still have this problem ?
I have stopped there because I still had no idea how to fix it.

Yes, I still have the problem. No need to apologise for your late answer though.
erdelf  [developer] 15 Nov, 2020 @ 4:54am 
how is the egg spawning the pawn ? The c# code usually defines what faction they get assigned to.
Clippy 15 Nov, 2020 @ 5:59am 
Originally posted by erdelf:
how is the egg spawning the pawn ? The c# code usually defines what faction they get assigned to.
It spawns the pawn like a vanilla egg would do, which means I only added this in <comps> of that egg:
<li Class="CompProperties_Hatcher"> <hatcherDaystoHatch>0.25</hatcherDaystoHatch> <hatcherPawn>SkeletonKind</hatcherPawn> </li>
erdelf  [developer] 15 Nov, 2020 @ 6:05am 
ah yeah, that thing kinda assumes animals.
If that egg is assigned to the player faction, it may work, but it really isn't designed for that.
Clippy 15 Nov, 2020 @ 11:14am 
Originally posted by erdelf:
ah yeah, that thing kinda assumes animals.
If that egg is assigned to the player faction, it may work, but it really isn't designed for that.
Dangit
< >
Showing 1-6 of 6 comments
Per page: 1530 50