RimWorld

RimWorld

[1.4] Vanilla Factions Expanded - Medieval
Slippy 19. aug. 2022 kl. 7:46
Using non Tribal Backstories - Editing PawnKinds.xml files
Hi! I was hoping for a bit of help on some (personal) edits I wanted to make to the mod.

Ive been creating my own backstories using some old code (which works, my backstories appear in the game) and I wanted to try and add them to spawn on Medieval Pawns. I dug into the xml files for PawnKinds_Player and PawnKinds_Medieval and can see under <backstoryCategories> its set to:
<li>Tribal</li>

If I was to add in a new tag (<li>Medieval</li>) and add those tags to my backstories I have created, would they be applied to Medieval pawns or do I need to do something extra?

I know I could just add the <li>Tribal</li> tag to my backstories but I don't want some of the medieval backstories I am making to be put on the generic tribal pawns.

Thanks for any help :spiffo:
< >
Viser 1-1 af 1 kommentarer
Slippy 20. aug. 2022 kl. 14:01 
If anyone sees this in the future adding a medieval tag (or any other background tag) does work and the following XML files need to be updated in order for medieval pawns from this mod to spawn with backgrounds from different tags:

Factions_Hidden.xml
Factions_Misc.xml
Factions_Player.xml
PawnKinds_Medieval.xml
PawnKinds_Player.xml

Its basically any xml file which uses the <li>Tribal</li> within <backstoryCategories>. I think thats the only ones you need to change. Obviously if you remove Tribal from <backstoryCategories> the number of backgrounds would be very limited unless you add tons of your own medieval backgrounds. Im pretty sure, but havent tested it, that adding another background tag would not make those pawns have the tribal meditation focus.

Unless there is a way to add tags to the orginal backgrounds in the game, I couldnt find the xml file in the core folder, its probably best to leave the tribal background tag in.
< >
Viser 1-1 af 1 kommentarer
Per side: 1530 50