Upon updating the all planets pack, failing to load due to:
39.201 Error ModManager.cpp:1765: Failed to load mod "kry-asteroids-mult": __kry-asteroids-mult__/data-final-fixes.lua:8: attempt to index field '?' (a nil value)
stack traceback:
__kry-asteroids-mult__/data-final-fixes.lua:8: in function 'multiplyAsteroids'
__kry-asteroids-mult__/data-final-fixes.lua:29: in main chunk
Which is this line of code:
local multiplier = settings.startup["kry-"..size.."-asteroid-mult"].value
Resetting the mod settings for this mod does not fix the issue.
Debugging into the scripts, the size is pulled from:
local size = string.match(asteroid.asteroid, "^(%a+)%-%a+%-asteroid$")
And the asteroid.asteroid
at the time of the crash is:
"slp-plasmawave-asteroid
And so size
is:
"slp"
So I think the size extraction should check against a list of allowed values. :-)