边缘世界 RimWorld

边缘世界 RimWorld

Humanoid Alien Races
此主题已被锁定
Clippy 2020 年 10 月 12 日 上午 5:29
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.
最后由 Clippy 编辑于; 2020 年 10 月 12 日 上午 5:35
< >
正在显示第 1 - 6 条,共 6 条留言
erdelf  [开发者] 2020 年 11 月 15 日 上午 2:40 
apologies for the late answer, do you still have this problem ?
Clippy 2020 年 11 月 15 日 上午 3:09 
引用自 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  [开发者] 2020 年 11 月 15 日 上午 4:54 
how is the egg spawning the pawn ? The c# code usually defines what faction they get assigned to.
Clippy 2020 年 11 月 15 日 上午 5:59 
引用自 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  [开发者] 2020 年 11 月 15 日 上午 6:05 
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 2020 年 11 月 15 日 上午 11:14 
引用自 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
< >
正在显示第 1 - 6 条,共 6 条留言
每页显示数: 1530 50