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
25 days ago
0.14 - 2.0
145K
Environment

b [Fixed] Crash on chunk generation

7 years ago
(updated 7 years ago)

I was playing normally, when suddenly my game splatters the following error on my screen:

Error while running event rso-mod::on_chunk_generated (ID 12)
rso-mod/control.lua:631: attempt to concatenate global 'bestRatioIndex' (a nil value)

I'm running v3.3.4, though I'm not sure what version I was running before (or whether it would have the same issue).

It's consistent, too, meaning unless I remove my radars as soon as I load it, my save is destined to crash at the same point every time (which coincided with my radars scanning a distant chunk).

Strangely, it doesn't seem to affect a new game. Does it have something to do with the fact that I updated the mod in an in-progress game?

If needed, I can provide the save + the mods I'm using (there's quite a few of them, though).

7 years ago
(updated 7 years ago)

I think it should be fixed in 3.3.5.
It's a boundary condition that I didn't catch in my testing - it failed when resource is totally over water and it couldn't log that properly. Let me know if it works properly now.

Loaded up my save, and yep, it looks to be fixed. Thank you!

New response