TomlHelper

v1.1.3·Updated 2026-09-17

Helper mod for saving and loading Toml config files.

About this mod Author’s original text

SmoothSpatula-TomlHelper

Helper mod for saving and loading Toml config files.

Usage

  • Initializing and loading the config

mods["SmoothSpatula-TomlHelper"].auto()

params = {

max_number = 4,

enabled = true

}

params = Toml.config_update(_ENV["!guid"], params, {drop_empty_tables = true}) -- Load and Save (merge)

-- or

params = Toml.config_update(_ENV["!guid"], params) -- this will create plugin_name/cfg.toml

-- or if you want to make multiple configs

Toml.config_update({plugin = _ENV["!guid"], config = "myconfig"}, params) -- this will create plugin_name/myconfig.toml

The drop_empty_tables flag enables recursive elimination of empty tables inside of the cfg file.

  • Saving the config

Toml.save_cfg(_ENV["!guid"], params)

-- or if you have multiple config files

Toml.save_cfg({plugin = _ENV["!guid"], config = "myconfig"}, params)

  • Resetting config to default

params = Toml.reset_default(_ENV["!guid"])

-- or

params = Toml.reset_default({plugin = _ENV["!guid"], config = "myconfig"})

  • DEPRECATED (still works) Initializing and loading the config

mods.on_all_mods_loaded(function() for k, v in pairs(mods) do if type(v) == "table" and v.tomlfuncs then Toml = v end end

params = {

max_number = 4,

enabled = true

}

params = Toml.config_update(_ENV["!guid"], params) -- Load Save

end)

Special Thanks To

  • The Return Of Modding team
  • hinyb

Contact

For questions or bug reports, you can find us in the RoRR Modding Server @Miguelito @Umigatari

Install & use Install: follow the bundled instructions

  1. Unzip the archive from playbuff and read the bundled readme / instructions first.
  2. Most mods rely on the game's mod loader — the usual route is a community mod manager (such as r2modman): pick this game, install, and it handles the loader and dependencies.
  3. For a manual install, put the mod files into the matching Mod / plugins folder inside the game directory.
  4. Launch the game to confirm it loaded; mods with listed dependencies need those installed as well.

Install locations vary a lot between mods — the bundled readme is the most reliable guide. If the mod depends on a loader such as ReturnOfModding, install it first as the readme describes.

Dependencies

Install these first, or the mod will not work:

ReturnOfModding-ReturnOfModdingLuaENVY-ENVY

File & checksum

Filename
TomlHelper-1.1.3.zip
File size
5.1 KiB
SHA-256
3971abb5418b4ec6bcefd3057be51f34621d93acdf8221af4ef479fa64d833a5
Stored at
2026-10-07 12:00