A guide for modding – Settlement Survival

A guide for modding – Settlement Survival 1 - steamclue.com
A guide for modding – Settlement Survival 1 - steamclue.com

A step by step guide for how to get started with modding the game.
Note that at the time of writing this guide, only modifying xml files is possible. In other words, you can change for example values or text, but you can’t code whole new game mechanics at this point.

1. Getting Started

Modding Settlement Survival is not completely straight forward, but with a few hints it is pretty easy.
At the time of writing (2021-11-11), only basic xml editing is supported. That means that you can change values or text, but you can’t code in completely new game mechanics. Still, you can change a number of things doing that.
I’d recommend using Notepad++ to edit files. It will detect that you’re dealing with xml files and for example mark comments accordingly, which you can ignore when editing the files.
To get started, go to your Settlement Survival folder which you can do by going to your game library, opening the properties of the game, and under “local files” click on “browse”.
Now, you will need to make a new folder called “MyMods” in the following location:
Settlement Survival\Settlement Survival_Data\MyMods
Then, create a folder for your mod with the name of your mod so that the structure will be \MyMods\YourModName
Substituting “YourModName” with the actual name of your mod.
In that folder, your mod will need 3 basic components:
1. AModConfig.xml with some basic data about the mod, like title and description
2. PreviewIcon.png which will show up as the picture in the Steam Workshop
3. A “zipConfig” folder which will include the modified xml files which will actually be modifying the game
We’ll go through these step by step, but here is what the contents of your MyMods\YourModName folder should look like in the end:
A guide for modding - Settlement Survival - 1. Getting Started - 8EB6C839D

2. AModConfig.xml

The AModConfig.xml carries the metadata of the mod, so for example it’s name.
Below is what the file needs to contain, where you just need to fill in the following parts yourself:
– The mod name / title
– Description
– Your name under auther (yes, it’s “auther”, not a typo in this guide)
– ChangeNote
You can either create an xml file with the content below (and your changes to it), or copy the file from another mod and then modify that file accordingly.
If you take an existing mod’s file, make sure you delete the steam key in SteamKey_Str. It will automatically be filled in after you publish the mod to the Workshop with a unique ID and it needs to be empty for a new mod as you can see here:

<?xml version="1.0" encoding="utf-8"?>
<UGCItemInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" - []  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - [] 
 <Title>A Mod Title</Title>
 <Des>Description of what your mod does</Des>
 <Auther>Your Name</Auther>
 <ChangeNote>Changed a thing</ChangeNote>


3. PreviewIcon.png

This step is pretty simple. You’ll need a png file that will be displayed in the Workshop.
The official guide recommends a size of 200×120 pixels for the icon.

4 Editing the game files

Now that everything else is set up, we can get started with actually modifying the game files.
First, we’ll need to find where we can find the entry that we want to modify.
Then, we can make an xml file with the changes we want to make.
If you struggle following what you need to do, in 4.3 there will be a full example file so you can see the end results of all the steps. Generally, it’s also a good idea to look at other, existing mods and learn from how they work. And of course don’t hesitate to ask questions in the comments either if something is unclear or you have any questions.

4.1 Finding the file / entry

Sometimes it can be obvious which file an entry is in and where you need to make the changes. Often, it’s not obvious because of the way the game stores information.
A lot of files make use of IDs instead of names. So for example, the building Reservoir has the building ID 2036.
To figure out the ID, you can search for the name in the lang.xml file. This file handles the names that end up getting actually displayed in the game, so if you search for “Reservoir” in this file, you will quickly find this entry:


And at the top of that entry you can see the ID.
One thing to keep in mind is that sometimes buildings have the same name as a technology for example, so make sure you’re looking at the ID for the right type of entry – building, item, technology etc.
The same ID can also be used in several different contexts so if you want to do the opposite and look up the name of something based on the ID, again make sure you look for the right type.
Once you have the ID, then you can use that to find the actual entry you want to change. So for example, if we wanted to modify some values of the Reservoir, we could now search in the building.xml file for 2036 and we would get to the Reservoir entry.
Sometimes it can be difficult to find what you are looking for, especially when you’re not even sure which file something is located in. In that case, i’d recommend using a grep tool, which basically allows you to search for some text (like an ID you found in lang.xml) in not just one text file, but all the text files in a folder.

4.2 Editing an entry

When you have found the file / entry, you can start actually modifying it. For that, first make a copy of the original file, and put it in the zipConfig folder in your mod folder (Settlement Survival\Settlement Survival_Data\MyMods\YourModName\zipConfig).
The files will have many individual entries. Every entry starts and ends with a tag, for example building entries start with


and end with


If you just look at how the first proper entry starts (ignoring comments), you’ll know what to look for.
Then, delete all other entries apart from the one you want to edit (or if you’re editing multiple buildings, keep all the ones you want to edit). Make sure to not delete the first 2 lines or the last line in the file, and only delete other entries.
For building.xml, that means making sure these lines don’t get deleted:

<?xml version="1.0"?>
<ArrayOfBuildingConfig xmlns:xsd="http://www.w3.org/2001/XMLSchema" - []  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - [] 

And the last line:


In between there should only be the entry (or entries) you want to modify left.
Now you can make the changes you wanted. This is often pretty self explanatory, but there are also comments at the beginning of a file with some descriptions.
For example, if we wanted to change the output of the Reservoir, this would be the relevant part:


So both uneducated and educated citizens produce 24 water by default. (To find out what item an ID refers to, you can look it up in the lang.xml file similar to earlier. The item ID 1001 in this case refers to water, which is the only item the reservoir produces.)
Besides changing how much water gets produced, you could also change the ID to another item, or make it produce 2 different items.

4.3 Example file

All in all, if our goal was to double the output of the reservoir, we would end up with a building.xml file in the zipConfig folder of our mod that looks like this:

<?xml version="1.0"?>
<ArrayOfBuildingConfig xmlns:xsd="http://www.w3.org/2001/XMLSchema" - []  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - [] 

 <Border> </Border>


Note how the whole BuildingConfig entry is included even though we just changed 2 numbers, for educated and uneducated workers, here:


Also note how the first 2 lines and the last lines of the file are preserved.

5. Combining mods

Because the game only allows any entry to be modified by one mod, this means you may run into issues if you’re using several mods that want to modify the same things. So for example, our mods Simple Meat and More Fancy Food both make changes to recipes with meat and so change the entries for buildings processing meat. Installed together, the game will give an error because they both want to edit the same entry.
To deal with that, you can make a new mod that combines the functionalities. Our mod Food Overhaul is exactly that, the changes from Simple Meat and More Fancy Food combined. Most changes of the mods don’t conflict with each other so they can simply be added together, but for the mentioned recipe changes this mod then combines the change in item ID and amount.

6 Enabling, testing and publishing the mod

After you made your changes, it’s time to test if it worked!
To enable a mod, start up the game, go into the mod menu and tick the box at the right.
One important thing to keep in mind is that right now, the game does not automatically reload mod files after they were changed, even if you close the game!
So any time you make changes to your mod, you need to manually tell the game to reload the mod files, which you do by going into the mod menu, disabling and reenabling your mod.
Also, some changes won’t be applied if you load a savegame. For example, if you change recipes that buildings are currently using, you will have to go through those buildings and reselect the recipes. In other cases rebuilding buildings may be necessary.
When you have tested your mod, confirmed it works and are ready to / want to publish it, all you need to do is to click the “publish” button in the mod menu in the game. That’s it! You’ve made a mod for Settlement Survival!

7. Updating a mod

If you want to make additional changes to your mod, or need to fix bugs, that’s also pretty easy.
1. Make the changes to the mod files as usual
2. (optional) Update the change notes in the AModConfig.xml file for what you changed
3. Make sure the SteamKey_Str is now filled in with the ID of your mod
4. Press publish
If the mod ID is not in the file and you’re not sure what it is: it’s the number string at the end of the link to your mod, so for example:


The mod ID here would be 2644570870

8 Conclusion

A lot of the information in this guide was learned through trial and error. There may be other quirks that we have not mentioned here or are not aware of, but hopefully this was still helpful in showing the basics of how to make a mod for Settlement Survival.
Don’t hesitate to ask for help if you run into any issues, although because our experiences are also mostly based on playing around, we may not have all the answers either. Happy modding!

Written by River System

Here we come to an end for the A guide for modding – Settlement Survival guide. I hope this guide has helped you with your gameplay. If you have something to add to this guide or believe we forgot some information to add, please let us know via comment! We check each comment manually by approving them!

Be the first to comment

Leave a Reply

Your email address will not be published.