I get this error message that crashes the game. I can only assume something about enemy invasions doing damage is causing this. I recently installed the Rampant mod, so maybe that is the culprit? It adds several new enemy types if that matters.
Notice
Error while running event Turret-
Shields::on_robot_built_entitv (ID 14)
Turret-shields 'control.lua:67: bad
argument #1 to 'insert' (table expected, got nil)
Ok