Gun Equipment


Mode add automatic guns applyable to equipment grid. Mode was originaly contained in Coal Powered mode and was extracted because of possible complexity.

Content
2 years ago
1.0 - 1.1
33.5K
Combat

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>

1 year, 10 months 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.

1 year, 10 months ago

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

1 year, 7 months 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.

1 year, 7 months ago

playing with local patches...

New response