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 Resolved: No Entity prototypes available for this building.

8 years ago
(updated 8 years ago)

After a few seconds on a big existing world I get the above message when this mod is enabled. Removed all other mods and it get this error and remove this mod and don't get this error.

Seems to work ok on a new save.

If i run:
/c game.forces["enemy"].kill_all_units()

The crash is averted for a few minutes.

8 years ago

Getting the same error, on a new map with about 2 hours playtime. Only mod active besides base on .13.1

8 years ago

If I comment out this section of data-updates no more crashes:

--[[
for _, spawner in pairs(data.raw["unit-spawner"]) do
removeAutoplace(spawner)
end

for _, turret in pairs(data.raw.turret) do
if turret.subgroup == "enemies" then
removeAutoplace(turret)
end
end
]]--

Assume that is part of the 2.0.4 vanilla spawning fix?

8 years ago

My luck was I saved literally 0.02 seconds before this happened to me. Reverting back to 2.0.2

8 years ago
(updated 8 years ago)

It was the vanilla spawning fix - it seems that game didn't like it.
I will need to try to reproduce this and figure out some kind of solution - I'll remove the 2.0.4 for now from page and leave 2.0.3. I also placed a bug report so will see if devs can help with this one.

8 years ago

Thanks dude!

New response