Tuning Overrides

Updated a day ago

Tuning Overrides

Change the numbers behind the mod (chances, damage, durations) and keep your changes when the mod updates.

Where the file is

ReturnOfModding/config/SWu-BoonEdits.tuning.lua, next to SWu-BoonEdits.cfg. In your mod manager, open Settings → Browse profile folder to get there.

The mod creates the file the first time you launch the game. Updates never change or replace it, and the mod never writes to it again.

How to change a value

Every value starts commented out, with its current default and a short description:

return {
	DoubleTime = {
		-- ExtraCasts = 1,  -- Extra Casts
	},
}

Remove the -- at the start of a line, change the value, save and relaunch the game. Lines that stay commented out keep following the mod's defaults, including any balance changes in later updates.

return {
	DoubleTime = {
		ExtraCasts = 2,
	},
	MoltenTouch = {
		GlowBonus = { Rare = 0.25 },
	},
}
  • A table of named values, like the rarity tables, can be changed one entry at a time. Entries you leave out keep their defaults.
  • A list, like { 25, 20, 15 }, is replaced as a whole.
  • Keep the commas at the end of each line.

Finding new values

SWu-BoonEdits.tuning.reference.lua is rewritten every launch with every value and its current default. Copy a line from it into your file to use a value added by a later update. Don't edit the reference file itself.

Checking your changes

Open the Hell2Modding menu (Insert) and expand Tuning Overrides in the BoonEdits window. It lists the values you changed and any line it couldn't use:

  • is not a tuning value: the name is misspelled, or an update renamed or removed it. The line is skipped.
  • should be a number (or another type): the value has the wrong type, such as text where a number belongs. The line is skipped.
  • A syntax error (usually a missing comma or brace): the whole file is skipped and the defaults are used until you fix it.

To start over, delete the file and relaunch. The mod creates a fresh one.