CityEditorSaveFix
Fixes the "Missing city data" error on saves from city editor cities. The save loads its city again, with no file renaming. Also rescues saves that are already broken.
| Date uploaded | 2 weeks ago |
| Version | 1.0.0 |
| Download link | Sm3gm-CityEditorSaveFix-1.0.0.zip |
| Downloads | 20 |
| Dependency string | Sm3gm-CityEditorSaveFix-1.0.0 |
This mod requires the following mods to function
BepInEx-BepInExPack_IL2CPP
BepInEx pack for IL2CPP x64 Unity games. Preconfigured and ready to use.
Preferred version: 6.0.755README

CityEditorSaveFix
A BepInEx (mod loader) plugin for Shadows of Doubt. Your city editor saves load again.
Saves made in a city built with the city editor sometimes stop loading with this error, even though the city is still on your disk:

CityEditorSaveFix finds the right city and loads it. No more renaming files in AppData by hand.
If CityEditorSaveFix saved your save, please leave a like on its Thunderstore page. It keeps me motivated to make more mods. Donations are welcome too:
How it works
A save remembers which city file it belongs to. For city editor cities, the game sometimes stores the wrong name, for example the save's own name (Marco PI Soddo 2026-...) instead of the city's (Soddo). The game then cannot find the city file and, because editor cities cannot be rebuilt from a seed, refuses to load.
When that happens, the mod looks in your Cities folder for the city editor city whose name is part of the stored name, and loads that one. It only steps in when the game has already failed to find the city, so normal saves are never touched. Nothing is written to your saves or city files, so you can remove the mod at any time.
Saves that are already broken are rescued too. Just install and load.
Known gaps
- The city file itself must still exist in
AppData\LocalLow\ColePowered Games\Shadows of Doubt\Cities. A deleted city cannot be brought back. - If you renamed the city to something completely different in the city editor, the stored name has nothing to match. Rename the city file back to its old name by hand.
Install
Use Thunderstore Mod Manager or r2modman and install as normal. BepInEx is installed automatically.
To install by hand:
- Install BepInExPack IL2CPP version 6.0.755.
- Put
SoDCityEditorSaveFix.dllinBepInEx/plugins/CityEditorSaveFix/inside your existingBepInExfolder.
There are no settings.
Feedback
Found a bug or have an idea? Post it on the official Shadows of Doubt Discord: https://discord.gg/shadows
Also by sm3gm
All my mods are listed at https://sm3gm.github.io
Support
This mod is free and always will be.
Likes are greatly appreciated and keep me motivated to release more mods, so if you enjoy it, please leave one. You give a like on the mod's Thunderstore page while logged in to Thunderstore. If you installed through a mod manager, open that page in your browser to find the button.
And if you love what I do and want to support future projects, or just want to send a friendly thought, you can do so here:
Thanks for playing.
CHANGELOG
Changelog
1.0.5
- Page text only, no code changes: links to my other mods, and "All my mods" now shows the modpacks too.
1.0.4
- Saves that stopped at "Creating evidence" load again. Cities made or changed with city editing and density mods can leave citizens with a home but no matching resident record, and the game crashed on them while loading. Those citizens are now repaired on load: they get the residence of their home, or, where the home has none, are set up without a resident record. Each repair is written to the log.
- Birthday cards for such citizens are built without the home link instead of stopping the load.
1.0.3
- Rescues saves when the game's compression is on. Compressed city files (
.citb) and compressed saves (.sodb) were not found, so those saves still showed "Missing city data". Reported by a player using cities from City Planner. - Writes a line to the log each time the game looks for a city editor city, to make any remaining problem easy to trace.
1.0.2
- The suggested name in the save menu no longer piles up the previous save names ("Marco PI Marco PI Soddo ..."): the real city name is put back before the menu opens.
1.0.1
- Also rescues saves whose stored name does not contain the city's name (for example a save named "Marco PI 2x2" in the city "Baltic"): the city editor city saved last before the save is loaded.
- New saves store the right city in the first place, so they load without help.
1.0.0
- First release. Saves from city editor cities that stopped loading with "Missing city data" load their city again.

