Turret Pod Equipment


Gun, Flame, Shotgun turret pods in equipment. They consume both ammo and electricity.

Content
28 days ago
1.1 - 2.0
2.08K
Combat

b Packing Tape compatibility - possibly others.

a month ago

Message reads:

Error while running event TurretPod::script_raised_destroy (ID 93)
TurretPod/scripts/reloadPods.lua:370: attempt to index field '?' (a nil value)
stack traceback:
TurretPod/scripts/reloadPods.lua:370: in function 'GridIsDead'
TurretPod/scripts/reloadPods.lua:555: in function <TurretPod/scripts/reloadPods.lua:552>
stack traceback:
[C]: in function 'mine'
packing-tape/control.lua:276: in function 'pack_entity'
packing-tape/control.lua:304: in function <packing-tape/control.lua:283>

I was picking up a vehicle with stuff in its inventory, an empty grid though, and got this error. They might be incompatible, dunno, but I thought I should let you know in case some other mod causes the same issue..

a month ago

Thank you for the info. Yep, there is some conflict here as packing-tape works with the same objects combo as TurretPod. I'll take a look and try to fix it on my side.

a month ago

This mod behaves like converting vehicles into character armor during "packing" - factorio engine for some strange reason invalidates objects without destructing them when player takes off the armor. I added additional checks to avoid errors, but I'm not sure pods will reload after you take out your tank out of your cheat pocket. :-)
I'll add char armor support to the mod and will probably check compatibility with this mod too.

a month ago

Thank you for looking into it.

28 days ago

Added fixes for some situations. The cause of the problem is not correct equipment remove in Packing Tape mod. After "unpacking" new duplicate instances of equipment are created instead of re-using the older ones, not destroyed completely in factorio engine.
For example when character armor is taken off and stored somewhere in the inventory all its equipment is not destroyed, but switched into a special invalid state, and later it is revived if wearing that armor again.

28 days ago

Interesting, should I report this to Packing Tape? It may be the only way they were able to get it to work, but it might also not be the case.

27 days ago

Interesting, should I report this to Packing Tape? It may be the only way they were able to get it to work, but it might also not be the case.

Up to you. I see this mod as a full antipode to vehiclewagon and the entire concept of vehicles once constructed and installed to be not mined into one's pocket anymore. I can't advise anything here.

27 days ago

I don't use it for the vehicles, I use it for the chests and tanks (of liquid). ... I really need to rebuild my base to be more conventional and less "cary this to this location"... lol...

Anyway, thank you for looking into this.

New response