Packing Tape


Mining a chest allows players to pick it up with all the items inside and carry it in their inventory. Also supports vehicles, tanks, and accumulators.

Content
2 months ago
0.17 - 2.0
13.0K
Storage

b Exception with Creative Mod - Keep Last Item

2 years ago

The mod Packing Tape (19.0.2) caused a non-recoverable error.
Error while running event packing-tape::on_built_entity (ID 6)
'name': string expected, got nil
stack traceback:
[C]: in function 'insert_fluid'
packing-tape/control.lua:266: in function 'item_to_tank'
packing-tape/control.lua:290: in function <packing-tape/control.lua:270>

Steps to reproduce:
- Enable Creative Mod - Keep Last Item
- deconstruct a full storage tank.
- place the full storage tank.
- place the full storage tank again (possible because "Keep Last Item)

I have already written to the author of Creative Mod
https://mods.factorio.com/mod/creative-mod/discussion/634bceeaa12eb027eea006e0
But regardless of that you should still prevent the exception.
Thanks

2 years ago

It looks like when Creative Mod puts the item back in your hand, it's a actually a new item and it doesn't keep the tags the item uses to identify what fluid is in it. I've fixed the crash when using this "invalid" item, but since it's a new item without tags there's no way to know what fluid it should have, so you just get a normal tank.

2 years ago

I know, but I can not solve it, both are not my mods ;-) II just wanted to suggest that the two of you join forces to find out what can be done about the problem.

New response