Peaceful+ deprecated


No pollution. No military science. No biters. No health. No military tech or items. Comes with an algorithm that will apply these changes to any other mods you have installed

Content
3 years ago
0.17 - 1.0
14
Enemies

b [resolved] Enemies only removed once

3 years ago
(updated 3 years ago)

Hej,

seems like the biters are only removed if the mod is added the first time.

Nonetheless new generated chunks can have biters again.

Maybe on_chunk_charted https://lua-api.factorio.com/latest/events.html#on_chunk_charted could be used to keep the map free of biters.

This case happens if the mod is added, game saved and the mod is removed and readded later again as the init has already run?

I helped me out with:

script.on_event(defines.events.on_chunk_charted, function(event)
local surface = game.surfaces[event.surface_index]

for _, entity in pairs(surface.find_entities_filtered{area = event.area, force = "enemy"}) do
    entity.destroy{raise_destroy=true}
end

end)

3 years ago

Do you have RSO installed?

3 years ago

Hmm no.

I guess i borked it on my site and your mod is fine.

3 years ago

I did some testing with RSO anyway and it looks like worms were not being deleted

I pushed an update for that