Super double-plus extra thanks bigly to erdelf for his Humanoid Alien Races mod, github site, discord channel, and near-real time code updates yesterday to accommodate my requests (think I'm kidding? check mod update history against chat text in his discord help channel)
Special thanks to Xnope for his Xnopecore mod and github site, which got me into modding, taught me a lot about XML and showed that what I wanted to do was possible.
I was able to get backstories pushed down to the PawnKindDef level as desired by doing the following:
1. Download latest version of Humanoid Alien Races 2.0 (HAR) by erdelf
2. for each pawn type with its own <PawnKindDef> add the following code:
The <usePawnKindBackstories> is what pushed the backstory to the pawn kind level, as supported within
The <allowHumanBios>false is what turns off the special (backer?) bios, that would otherwise also get used for the pawns. Setting this to false forces the pawns to ONLY have backstories from your new category
you will also need to set the backstory category in <PawnKindsDef> with the following line:
This makes your pawn type only pull backstories that carry the "Miner" tag
3. Your custom backstory will then start like this:
Note that the <spawnCategories>Miner in the last line is what gives this the "Miner" tag, and thus findable by PawnKindsDef.
I have been testing this with my faction mod and works like a charm.
Note that when starting Rimworld, the other pawntypes in my faction that I have not yet done this process to gives some yellow level error; basically they all want the <modExtensions> thing to set their backstories or something. When I get around to fleshing all of them out this warning on startup will go away.
Special thanks to Xnope for his Xnopecore mod and github site, which got me into modding, taught me a lot about XML and showed that what I wanted to do was possible.
I was able to get backstories pushed down to the PawnKindDef level as desired by doing the following:
1. Download latest version of Humanoid Alien Races 2.0 (HAR) by erdelf
2. for each pawn type with its own <PawnKindDef> add the following code:
Quote<modExtensions>
<li Class="AlienRace.Info">
<usePawnKindBackstories>true</usePawnKindBackstories>
<allowHumanBios>false</allowHumanBios>
</li>
</modExtensions>
The <usePawnKindBackstories> is what pushed the backstory to the pawn kind level, as supported within
The <allowHumanBios>false is what turns off the special (backer?) bios, that would otherwise also get used for the pawns. Setting this to false forces the pawns to ONLY have backstories from your new category
you will also need to set the backstory category in <PawnKindsDef> with the following line:
Quote<backstoryCategory>Miner</backstoryCategory>
This makes your pawn type only pull backstories that carry the "Miner" tag
3. Your custom backstory will then start like this:
Quote<Defs>
<AlienRace.BackstoryDef>
<defName>Miner1</defName>
<slot>Adulthood</slot><!-- choose Childhood or Adulthood -->
<title>Miner short</title>
<titleShort>Prospector</titleShort>
<baseDescription>HECAP was a miner for a heart of gold.</baseDescription>
<spawnCategories><li>Miner</li></spawnCategories>
Note that the <spawnCategories>Miner in the last line is what gives this the "Miner" tag, and thus findable by PawnKindsDef.
I have been testing this with my faction mod and works like a charm.
Note that when starting Rimworld, the other pawntypes in my faction that I have not yet done this process to gives some yellow level error; basically they all want the <modExtensions> thing to set their backstories or something. When I get around to fleshing all of them out this warning on startup will go away.