Skip to content

A TLD utility mod for saving/loading custom mod data

Notifications You must be signed in to change notification settings

dommrogers/ModData

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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