You are viewing a potentially older version of this package. View all versions.
SmoothSpatula-TomlHelper-1.0.1 icon

TomlHelper

Helper mod for saving and loading Toml config files for SmoothSpatula mods.

Date uploaded 6 months ago
Version 1.0.1
Download link SmoothSpatula-TomlHelper-1.0.1.zip
Downloads 7323
Dependency string SmoothSpatula-TomlHelper-1.0.1

This mod requires the following mods to function

ReturnOfModding-ReturnOfModding-1.0.29 icon
ReturnOfModding-ReturnOfModding

Lua Mod Loader for Risk of Rain Returns

Preferred version: 1.0.29

README

SmoothSpatula-TomlHelper

Helper mod for saving and loading Toml config files for SmoothSpatula mods.

Usage example

  • 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)
  • Saving the config
Toml.save_cfg(_ENV["!guid"], params)