Gun Equipment


Mode add automatic guns applyable to equipment grid.

Content
4 days ago
1.0 - 2.0
40.5K
Combat Armor

b Crash

2 years ago
(updated 2 years ago)

I've put that gun to the locomotive's equipment grid, then entered into it (manual mode) and got the crash.
Locomotive does not have inventory. Could you check the player's inventory in this case?
===
The mod Gun Equipment (0.0.16) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event GunEquipment::on_tick (ID 0)
GunEquipment/AutoGun/control.lua:28: attempt to index local 'ammoInv' (a nil value)
stack traceback:
GunEquipment/AutoGun/control.lua:28: in function 'ReloadUnloaded'
GunEquipment/AutoGun/control.lua:108: in function 'Reload'
GunEquipment/AutoGun/control.lua:215: in function 'OnTick'
GunEquipment/control.lua:20: in function <GunEquipment/control.lua:13>

2 years ago

Both common and nuclear locomotives don't have inventory (at least in vanilla and RampantArsenal) and this mod isn't ready for this situation. Vehicle's inventory is essential.

2 years ago

at least it can do not work, but it should not crash.

2 years ago

I'm sorry for leaving this mode for long time without reactions.
And yes this may be fixed in future, but for now please do not use entity without inventory.

2 years ago

playing with local patches...

a month ago
(updated a month ago)

Is this issue still open?

There was created additional discussion:
https://mods.factorio.com/mod/GunEquipment/discussion/672886639a7e098a2efc6251

This thread has been locked.