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