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
9 days ago
0.14 - 2.0
144K
Environment

b Error message

7 years ago
(updated 7 years ago)

I got this weird error message:

mod::in_chunk_generated(ID 12)
rso-mod/control-lua_944_ bad argument
(#)2 to 'rng' (interval is empty)

factorio version 0.15.12

this link has the save and mods used
https://www.dropbox.com/sh/sjstnyx1ms4tow4/AAAvlXCBQee6ZdO5gKIqKWQDa?dl=0

I was testing the resource spawn with your mod when i got a bit carried away and decided to find a ore patch with a value superior to 1G ore. max that i found was 879M ore.
The error happens if you continue to move to the left. if you move up and down the error does not appear.

Update: i was checking some recipes in this save file and the error apeared without me even moving

7 years ago
(updated 7 years ago)

You found a new way to break the mod :)
I revised the code of enemy base spawning to prevent this and also allow them to be bigger.
It won't crash in this way anymore for many more tiles :D
Btw you can increase the distance factor a bit (1.2,1.3) to have significantly faster ore increase with distance.

7 years ago

I know that i can change the settigns. I was trying with default values. Even the ingame resource settigns were default.

Just tested the fix and seems to work

Thank you for the mod and your speedy bug fix

New response