Resource Spawner Overhaul

by orzelek

Makes resources more sparse than base game. You will need to use trains much earlier to get resources. Game will be more difficult especially with higher enemy settings.

Tweaks
24 days ago
0.14 - 2.0
145K
Environment

g multi_resource error?

25 days ago

I'm working on updating the config for Bob's Ores, and I came across an error after getting onto the game map. It appears to be related to multi_resource functionality.

Error while running event rso-mod::on_chunk_generated (ID 12)
rso-mod/control.lua:1402: attempt to index local 'sub_res' (a number value)
stack traceback:
rso-mod/control.lua:1402: in function 'roll_region'
rso-mod/control.lua:1913: in function <rso-mod/control.lua:1904>

24 days ago

I wanted to remove those but deleted them from configs only. It seems that that left the code in not exactly happy state. I will clean the code up.
Multi resources were meant to fix potential issues when you have to many resources but thi sis fixed now by making more rolls.

If it seems that multi res is very useful for thematic purposes I can keep it.

24 days ago

I've restored the bit that was missing for multi-resource so it should work in 7.0.6.

24 days ago

Got a different error now.

Error while running event rso-mod::on_init()
rso-mod/control.lua:1249: attempt to index field 'rso-multi-resource-active' (a nil value)
stack traceback:
rso-mod/control.lua:1249: in function 'build_config_data'
rso-mod/control.lua:1820: in function 'loadAndPrepareConfig'
rso-mod/control.lua:1859: in function 'updateSurfaceConfig'
rso-mod/control.lua:1891: in function 'initConfig'
rso-mod/control.lua:1898: in function 'updateConfig'
rso-mod/control.lua:1939: in function <rso-mod/control.lua:1937>

24 days ago

Ehhh I did remove the setting also. Let me check it again this time with actual testing on multi resource.

24 days ago

Fixed now and it seems to work in 7.0.7.

24 days ago

Confirmed! Thank you much. I can understand why not many mods use it, but when you have as much of an overabundance of ores as Bob's does, finding more than one at a time is a nice treat.

24 days ago

You will still get one more at a time without multiresources right now. Above certain amount of ores RSO will make multiple rolls per area.

New response