4. Config file - robot9706/FSSE GitHub Wiki
Config file
The FSLoader config file is located in ".../FalloutShelter_Data/Mods", it's called "fsloader_config.json". If it does not exist it will be automatically created.
The config file is a standard JSON file, it has multiple sections:
- enabled: This section contains mod IDs and is used to enable (true) or disable (false) mods. Example:
"enabled": {
"this_mod_is_enabled": true,
"this_is_not": false
},
- mod_configs: This section contains simple custom configs for mods, these can be used by the "GetModConfig()" method in each mod. Example:
"mod_configs": {
"mod_with_config": {
"some_value": 50,
"some_other_value": "random text"
}
}
If a new mod is installed and the "enabled" section is missing its ID, it will be automatically added (the default state is enabled, but that might change in the future).
An example for the "GetModConfig()" can be found here: ModUnlimitedResources.cs
If you already started the game once to check the credits screen the config should already contain "unique_mod_id" (or another ID you specified in the ModInfo attribute). To enable the mod change it to ""unique_mod_id": true", like this:
{
"enabled": {
"unique_mod_id": true
}
}
Save the file and start the game (you can also check the credits screen, it should also tell that you have one mod enabled). Load a vault place some rooms and try to delete one which you normally shouldn't be able to. If you managed to delete that room, you did everything correctly and managed to make your very first mod.
Next optional step: Automating
Useful links |
---|
FSModTool guide |
FSLoader API |
Mod pack source code |