Resource Spawner Overhaul

by orzelek

Overhauls resource spawning system.

19 days ago
0.14 - 1.1
135K

b Resolved: No Entity prototypes available for this building.

7 years ago
(updated 7 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.

7 years ago

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

7 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?

7 years ago

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

7 years ago
(updated 7 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.

7 years ago

Thanks dude!

New response