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
2 months ago
0.14 - 2.0
149K
Environment

b Crash when generating Vulcanus

a month ago

Hello!

I am experiencing a crash when generating Vulcanus for the first time in a new game. When arriving at Vulcanus the game freezes and then crashes. I am playing on a server, if that makes any difference. The following message appears in the server logs.

17:30:03
199.264 Error MainLoop.cpp:1510: Exception at tick 10377743: The mod Resource Spawner Overhaul (7.0.19) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event rso-mod::on_surface_created (ID 68)
Resource temporarily unavailable
stack traceback:
[C]: in function 'force_generate_chunk_requests'
rso-mod/control.lua:1079: in function 'spawn_starting_resources'
rso-mod/control.lua:2052: in function <rso-mod/control.lua:2040>
199.264 Error ServerMultiplayerManager.cpp:84: MultiplayerManager failed: "The mod Resource Spawner Overhaul (7.0.19) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event rso-mod::on_surface_created (ID 68)
Resource temporarily unavailable
stack traceback:
[C]: in function 'force_generate_chunk_requests'
rso-mod/control.lua:1079: in function 'spawn_starting_resources'
rso-mod/control.lua:2052: in function <rso-mod/control.lua:2040>"
199.264 Info ServerMultiplayerManager.cpp:808: updateTick(10377743) changing state from(InGame) to(Failed)
199.266 Quitting: multiplayer error.
199.267 Info GlobalContext.cpp:769: Deleting active scenario.
17:30:04
200.878 Info ServerMultiplayerManager.cpp:146: Quitting multiplayer connection.
200.878 Info ServerMultiplayerManager.cpp:808: updateTick(18446744073709551615) changing state from(Failed) to(Closed)
200.878 Info ServerMultiplayerManager.cpp:166: Deleting active scenario (global = true).
200.879 Info UDPSocket.cpp:237: Closing socket
200.879 Info UDPSocket.cpp:267: Socket closed
200.879 Info UDPSocket.cpp:237: Closing socket
200.993 Info UDPSocket.cpp:237: Closing socket
200.993 Info UDPSocket.cpp:267: Socket closed
200.994 Goodbye

This is an awesome mod that I have used for years and has become a staple of my gameplay, so thank you! I hope this isn't too annoying to look into. In the meantime, I'll revert to an older version that worked last week and play on that.

a month ago

Does this error repeat?
I did not change anything there tbh. It seems to me like it might have something to do with multiplayer but I have no way to fix something like this.

a month ago

It does repeat, yes.

I actually just tried going all the way back to version 7.0.16 just now, and the error occurred multiple times on all versions I tried. Interestingly, I know that RSO has worked on those versions in multiplayer before, because I've used it. The only difference is that for this map that's failing, I changed the global richness and resource patch size values to 2, up from 1.2. I'm not sure if that would be related or not.

In any case, I loaded the map in a single player game and was able to generate Vulcanus (although the game did freeze for about 2 minutes). I'm going to research/generate Gleba and Fulgora as well, and then re-upload the map to my server and it should be a sufficient workaround.

a month ago

Ohhh that might be Vulcanus issue. I tried to fix it to not take that long by making separate spawn logic for the needed resources but it seems it still fails sometimes. That probably leads to timeout in multiplayer.

New response