Player Entity Eraser


Use the included selection tool to unilaterally delete all (player) selected entities in an area. Great way to clear out chunks without resetting resources. Requested by JigSaW on Discord.

Utilities
21 days ago
2.0
171
Cheats

b Error on deletion

24 days ago

The mod Player Entity Eraser (1.0.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event player-entity-eraser::on_player_selected_area (ID 57)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__player-entity-eraser
/control.lua:8: in function <player-entity-eraser/control.lua:1>

23 days ago

Fixed in 1.0.3

22 days ago
(updated 22 days ago)

Thank your for your quick action! It's not quite fixed though... I did however figure out specific circumstances: this only happens when deleting an area containing a Memory Unit from the Memory Storage mod. (https://mods.factorio.com/mod/deep-storage-unit)

I'm assuming this is because that's converted to a different item upon manual deletion and that's not properly triggered by mass deletion. Understanding this makes the error easy to avoid though, so if it's a lot of work to fix or has a big impact on performance, there is no need to support that. In that case you may at most consider adding a little note to your mod description to delete those manually first or avoid areas containing those.

21 days ago

Fixed in latest update (again)

11 days ago

I've been away for a while so wasn't able to test it earlier. But I just did and can confirm it works now. Thank you very much!

New response