Hi OwnlyMe,
I made a force = "enemy" base using turrets with enabled turret shields. After some combat i got two different errors, each referencing to the same line of code:
Error while running event Turret-Shields::on_entity_damaged (ID 97)
Turret-Shields/control.lua:67: bad argument #1 to 'insert' (table expected, got nil)
Same with the following one:
Error while running event Turret-Shields::on_robot_built_entity (ID 14)
Turret-Shields/control.lua:67: bad argument #1 to 'insert' (table expected, got nil)
The table "global.refresh_orientation" is nil, because i gave the enemy force the techs in the "on_init" event, which triggered no "on_research_finished" event. Would you please add some kind of safety check? This would be great!
Regards
Arcitos