Resource Spawner Overhaul

by orzelek

Overhauls resource spawning system.

13 days ago
0.14 - 1.1
135K

b [Fixed] Crash on chunk generation

6 years ago
(updated 6 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).

6 years ago
(updated 6 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