[2.0.19] Crash when exploring chunks and mod script is destroying any enemy entities found on Vulcanus.

Things that has been reported already before.
Oarc
Fast Inserter
Fast Inserter
Posts: 122
Joined: Sun Sep 18, 2016 2:04 pm
Contact:

[2.0.19] Crash when exploring chunks and mod script is destroying any enemy entities found on Vulcanus.

Post by Oarc »

Log file attached. Not exactly sure, but seems related to me destroying demolishers via script?

I was charting a lot of chunks awhile testing my mod, and in each chunk in some areas of the map, I call entity.destroy() on any enemy entites found.
Was mostly working fine, until it crashed.

Code: Select all

---@param surface LuaSurface
---@param area BoundingBox
---@return nil
function RemoveEnemiesInArea(surface, area)
    for _, entity in pairs(surface.find_entities_filtered { area = area, force = "enemy" }) do
        entity.destroy()
    end
end
Thanks!
Attachments
factorio-current.log
(19 KiB) Downloaded 15 times
Post Reply

Return to “Duplicates”