RimWorld

RimWorld

Not enough ratings
[1.3] SimpleBackstoryEditor
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.3
File Size
Posted
104.210 KB
1 Sep, 2022 @ 12:08am
1 Change Note ( view )

Subscribe to download
[1.3] SimpleBackstoryEditor

Description
Lets you change already defined backstory titles and text. If you have reasons to make adjustments to the titles and descriptions, now you can.

When you run this mod the first time it will create a SimpleBackstoryEditor folder in the same location as where the Saves folder is located, which you can check using the Rimworld Wiki (https://www.rimworldwiki.com/wiki/Save_file).

Inside the SimpleBackstoryEditor folder you will find two files:
backstories.xml
replacementsExample.xml

backstories.xml is a reference file. It contains all the title and description data for each backstory found in the game's database.

replacementsExample.xml is an example of how you can structure the file you need to make.

Within the example file and the file you eventually make for the mod to use, the important tags all need closing versions of themselves and are as follows:

<count>
Tell the mod how many backstories you are editing. If the number doesn't agree with the content of the file, the mod will assume there are errors.

<ReplacementBackstory>
Each replacement you want to make has to have start and end tags of this type.

<key>
<identifier>
As far as I can tell, these are always the same and the mod will use them to know which backstory you are overwriting. These are required and should not be modified. Find the story you are modifying in backstories.xml and you'll be able to get the value you need for these tags.

<title>
<titleShort>
<titleFemale>
<titleShortFemale>
<baseDesc>
These tags are for reference. The mod won't use them, but it may be helpful to have the original text that you're replacing available for comparison.

<replacementTitle>
<replacementTitleFemale>
<replacementTitleShort>
<replacementTitleShortFemale>
<replacementDesc>
These tags will be used by the mod to update the game's backstory database. You only need to provide the ones you are wanting to change.

When you have all the edits typed out in this XML format, save the file as replacements.xml in the same folder as where the backstories.xml and replacementsExample.xml file were created.

If you turn dev mode on, you can check for any startup issue parsing the replacements.xml file that you created.

This mod is Simple in the 'basic' meaning of simple. There's no UI, there's just your .xml file and a startup routine to update the database.

The source code and license can be found on github: /neil5280/SimpleBackstoryEditor
2 Comments
neil5280  [author] 6 Oct, 2022 @ 12:05pm 


Re: The Blind One
Do I understand it correctly that it doesn't allow you to change the actual backstory elements such as forbidden worktypes and the likes?



Yes. This mod let's you change text, but not attributes. It's very Simple in nature.

I do see that in 1.4 they are changing how backstories are represented in the code. As I look to see how to make the mod work in 1.4, I will see if it's easy to provide some support for editing other elements of the backstories.
The Blind One 6 Oct, 2022 @ 2:29am 
Do I understand it correctly that it doesn't allow you to change the actual backstory elements such as forbidden worktypes and the likes?