Noxys Extra Settings Info

by _Noxy_

Adds a small line to all settings descriptions indicating what the limits and defaults are for that setting.

Utilities
1 year, 3 months ago
0.15 - 1.1
4.01K

b [0.0.2]Crash when there is no setting of a certain kind

7 years ago

Failed to load mod "Noxys_Extra_Settings_Info": Noxys_Extra_Settings_Info/settings-final-fixes.lua:23: bad argument #1 to 'pairs' (table expected, got nil)

Probable fix is to enter the loop ONLY when data.raw["<setting-kind>-setting"] is not nil.

While the error is thrown only for "string" for me, the code does not check for bool, int or double either.

You can test it just with your mod activated, it should expose the same behavior.

7 years ago
(updated 7 years ago)

Ah yeah I never tested without other mods. I assumed factorio would always define those table keys but I guess my assumption was wrong.

Fixed in 0.0.3.

New response