Repair Turret

by Klonan

Adds Repair Turrets

Content
1 year, 3 months ago
0.17 - 1.1
84.8K
Combat Logistic network

b Crash report: attempt to index a nil value

4 years ago

Error while running event Repair_Turret::on_tick (ID 0)
Repair_Turret/script/repair_turret.lua:267: attempt to index a nil value
stack traceback:
Repair_Turret/script/repair_turret.lua:267: in function 'get_pickup_entity'
Repair_Turret/script/repair_turret.lua:292: in function 'update_turret'
Repair_Turret/script/repair_turret.lua:371: in function 'handler'
core/lualib/event_handler.lua:44: in function <core/lualib/event_handler.lua:42

Hey,
I tested this mod a bit (version 0.2.0) with some cheats: all research, cheat mod, eletric-energy-interface (for power).
I placed some walls, roboports electric poles and substations and then damage some walls with a subrifle and uranium ammo and rearranged the test base after every test a little bit (used bots to repair, repaired myself, using the repair turrents, used multiple repair turrents connecting each other with the beeam because repair packs wasn't in the first repair turret and so on).
The crash happend at the moment I started shooting a wall after removinng the repair packs from a roboport I think.

I tried to reproduce this crash but honestly I couldn't. But I thought I should still share this crash report Hopefully it is useful.

New response