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
3 days ago
0.14 - 2.1
153K
Environment

g Nullius

10 days ago

not working with Nullius.
Only iron ore spawns, and bitters also spawn at the start

10 days ago

I can see that it's config is disabled atm - I did that with all the mods after 2.0. I'm now using 2.1 and releasing only for it atm.
I'm not sure if I will be going back to 2.0 version to enable it - you can try to enable it on your copy to see if it still works. There is a commented out section for Nullius in mainconfig.lua.
I will enable it on 2.1 for when it's available.

4 days ago
(updated 4 days ago)

I left a thread at forum that fixed Nullius:
https://forums.factorio.com/viewtopic.php?t=134481

You need to uncomment Nullius config function, it's commented, in mainconfig.lua:
-- if script.active_mods["nullius"] then
-- fillNulliusConfig(config)
-- config["enemy-base"] = nil
-- end
--

Change config["nullius-sandstone"] to config.nauvis["nullius-sandstone"],
config["nullius-bauxite"] to config.nauvis["nullius-bauxite"],
config["nullius-limestone"] to config.nauvis["nullius-limestone"]
config["nullius-fumarole"] to config.nauvis["nullius-fumarole"]
config["iron-ore"] to config.nauvis["iron-ore"]
in nullius.lua

And also there's another quirk, nullius landfill is implemented as "dummy surface" will crash the game so you need to fix that as well:
in control.lua, add early return on spawn_starting_resources. In other words, change this:
local function spawn_starting_resources( surface, index )

local surfaceData = storage.surfaces[surface.index]
debug("Starting area spawn for "..surface.name)
if surfaceData.startingAreas[index].spawned then return end

to this:
local function spawn_starting_resources( surface, index )

local surfaceData = storage.surfaces[surface.index]
debug("Starting area spawn for "..surface.name)

if not surfaceData.startingAreas[index] then return end
if surfaceData.startingAreas[index].spawned then return end

After that nullius works like a charm for me

3 days ago

I can add the defensive fix easily but config update would need to wait until Nullius will get a 2.1 compatible version.

3 days ago

There's literally only those changes, obviously I didn't test everything but you can just change 'config' to 'config.nauvis' since obviously it wasn't updated since before 2.0 and it should be alright. It's the same for tricky-old-nick.
While you all working for 2.1, people still play 2.0 :( I would much rather not go deep into the mod trying to understand why it didn't work, so... while i get focus on 2.1 but... idk

3 days ago

The main hurdle is the need to keep ideally 2 separate Factorio versions to be able to check if edits work correctly and there are no typos etc.
And with 2.1 being not that much of a change I did not expect the need to keep 2.0.

3 days ago
(updated 3 days ago)

Can you post me the nullius config file somewhere since thats the one thats most difficult to test? I can make other edits and try to do a release. You can attach it on forums that might be fastest.

3 days ago

It's up should be ok - please check if it works.

New response