TLD utility mod for saving/loading custom mod savegame data
- Simple usage
- Detects the save name when loaded/created
- Only allows load/save while a save game is active
- Uses an internal cache to reduce disk read/writes
- Deletes associated .moddata file when the save is deleted
- Example File
- default file = \Mods\ModData\slotName.moddata (.zip file)
- default entry filename = modName
- suffix entry filename = modName_Suffix
using ModData;
ModDataManager dataManager = new ModDataManager(string modName, [bool debug = false]);
bool dataManager.Save(string data)
bool dataManager.Save(string data, string? suffix)
string? dataManager.Load()
string? dataManager.Load(string? suffix)
- If you haven't done so already, install MelonLoader by downloading and running MelonLoader.Installer.exe
- Download the latest version of
ModData.dll
from the releases page - Move
ModData.dll
into the Mods folder in your TLD install directory
Thank you to all the helpful devs in the TLD Modding Discord for their patience and help