Repair Turret

by Klonan

Adds Repair Turrets

Content
24 days ago
0.17 - 2.0
100K
Combat Logistic network

b Game Crash with Repair Turret Mod (v2.0.0) - Anyone else getting this error?

Hey everyone,

I’ve been running into a problem with the Repair Turret Mod (v2.0.0) in Factorio. Whenever the turret tries to do its thing, the game crashes and throws an "Invalid ItemID" error. Here’s the exact error message I’m seeing:

The Repair Turret Mod (v2.0.0) caused an unrecoverable error. Please inform the mod author about this issue.

Error while running event Repair_Turret::on_tick (ID 0)
Invalid ItemID: expected LuaItemPrototype, LuaItemStack, LuaItem, or string.

Stack Trace:

[C]: in function 'insert'
   __Repair_Turret__/script/repair_turret.lua:788: in function 'try_build_ghost'
   __Repair_Turret__/script/repair_turret.lua:377: in function 'check_target'
   __Repair_Turret__/script/repair_turret.lua:43: in function <__Repair_Turret__/script/repair_turret.lua:9>
   __Repair_Turret__/script/repair_turret.lua:962: in function 'check_turret_update'
   __Repair_Turret__/script/repair_turret.lua:1028: in function 'handler'
   __core__/lualib/event_handler.lua:47: in function <__core__/lualib/event_handler.lua:45>

Steps to Reproduce:
1. Load a save with the Repair Turret Mod (v2.0.0) active.
2. Let the game run until the turret tries to repair/build something.
3. Game crashes with the error above.

What I Expected:
I expected the turret to do its job without any issues.

What Happened:
Instead, I got a crash and this error message about an invalid ItemID.

Setup Details:
- Factorio Version: [Add if known]
- Mod Version: Repair Turret (v2.0.0)
- Other Mods: [List any others if you have them; otherwise, "None"]

Anyone else dealing with this? Any advice or fixes would be awesome. If the mod author is around, any help would be much appreciated!

Thanks in advance!

MasterFactoryBuilder

28 days ago

Confirm the bug

27 days ago

getting the same one

26 days ago

I'm also getting the same bug.

I've done some testing and it appears to only occur when a Repair Turret attempts to construct tiles as opposed to entities.

When I tested it using blueprints if I removed the tiles crash didn't occur.

It's an amazing mod and I hope the issue can get sorted soon.

New response