Ammo Loader+


More than just a turret loader. Auto load everything from turrets to artillery wagons to furnaces and even the player themselves. Auto upgrade ammo and fuel without tedious manual replacement. Infinite range and compatible with Factorissimo2.

Content
22 days ago
0.14 - 2.0
24.5K
Logistics

b [Fixed]Crash on attempting to pickup chests

7 years ago
(updated 7 years ago)

As title; at a certain point, attempting to pick up chests causes a crash.

Crash message:
Error while running event on_player_mined_item (ID 8)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
ammo-loader/control.lua:489: in function 'clean_chest_cycler'
ammo-loader/control.lua:177: in function <ammo-loader/control.lua:171>

Unfortunately, I'm unsure as to the exact steps for reproducing this. However, it only seems to affect chests that have (or had at some point) ammo in them; an empty chest right next to one that had ammo in it picks up just fine, while the one that has/had ammo causes a crash (regardless of whether it currently has any or not).

7 years ago

I just released an update that should take care of this problem. Let me know if it still occurs after updating, I'll be happy to take a closer look.

Looks like it did the trick; looks like it was caused by leaving ammo in a loader chest for some amount of time.

After this last update, picking up a loader chest with ammo in it I'd left sitting as a test didn't cause a crash, so this issue is solved.

New response