Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1.32 KB

File metadata and controls

42 lines (34 loc) · 1.32 KB

ModData 1.5.0

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

Usage

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)

Installation

  1. If you haven't done so already, install MelonLoader by downloading and running MelonLoader.Installer.exe
  2. Download the latest version of ModData.dll from the releases page
  3. Move ModData.dll into the Mods folder in your TLD install directory

Thanks

Thank you to all the helpful devs in the TLD Modding Discord for their patience and help