Localized_Charging


A charging mod that will recharge batteries in vehicles and power armor when near a charging pole.

2 years ago
0.14.0 - 1.1
682

b Crash when removing biters via commands

1 year, 10 months ago

Hello, i tried to remove biters from a existing world with commands from the wiki (i have done this before with no problemes) but this times i got a exception with your mod.

1558.564 Error MainLoop.cpp:1284: Exception at tick 35254799: The mod Localized_Charging (1.2.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Localized_Charging::on_tick (ID 0)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__Localized_Charging/control.lua:184: in function <Localized_Charging/control.lua:115>

The command:
/c local surface=game.player.surface
for key, entity in pairs(surface.find_entities_filtered({force="enemy"})) do
entity.destroy()
end

Source: https://wiki.factorio.com/Console#Kill_all_enemies

New response