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 when generating map

7 years ago
(updated 7 years ago)

I'm trying to generate a map on my headless server, but the error of:

Error while running on_init: rso-mod/control.lua:1121: attempt to concatenate local 'richnessMod' (a nil value)

keeps hitting and fails the whole thing.

7 years ago

Seems that the line on 1121 in control.lua:

debug(res_name .. " allotment mod " .. allotmentMod .. " size mod " .. sizeMod .. " richness mod " .. richnessMod )

is causing the issue. Commenting it out fixes problem without repercussion.

7 years ago

What you are seeing is a symptom of different problem.
Can you do the following:
1. Add richnessMod = richnessMod or "" before this line
2. Change debug to log
Then run the server and post the usual factorio current.log on forums in RSO section.

The main issue seems to be that one of resources has richness defined as constant that RSO did not recognize. It might be specific to headless server and your configuration of it.

7 years ago

I'll have to try that once we reset the map again. I had thought it was the resource settings i had, but i generated a map from my desk top and tried to simply load it, same error. I reset the resource settings, same error. Nothing fixed it.

But i'll do as mentioned when im able.

7 years ago

If it also breaks on desktop then no need to play with logs - just post me the mods set on forums and I'll check if I can reproduce it.

7 years ago

Please grab 3.4.3 and post game log after running it. It should contain logging to show me which resource caused the problem and with what value.

New response