Vacuum Cleaner

by majoca

Automatically pick up desired items from belts, inserters, and/or the ground. Can filter for an unlimited number of items with whitelist and blacklist. Useful for when items get on the wrong belt.

Utilities
14 days ago
1.1 - 2.1
4.50K

b [Resolved] Crash while using remote vacuum cleaner near a splitter...

14 days ago

Crash while using remote vacuum cleaner near a splitter...

The mod Vacuum Cleaner (3.0.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event vacuum-cleaner::on_player_selected_area (ID 58)
Ammo must be >= 1.
stack traceback:
[C]: in function 'create_entity'
vacuum-cleaner/vacuum_cleaner/remote_vacuum.lua:42: in function 'spill_item_to_ground'
vacuum-cleaner/vacuum_cleaner/remote_vacuum.lua:66: in function 'remote_vacuum_belt'
vacuum-cleaner/vacuum_cleaner/remote_vacuum.lua:108: in function 'apply_remote_vacuum'
...um-cleaner__/vacuum_cleaner/event_handlers/selection.lua:26: in function <...um-cleaner__/vacuum_cleaner/event_handlers/selection.lua:4>

14 days ago

Looking closer, I think it is because there is no space along the belt, (its full with other belts

14 days ago

Thanks for the report. The stack trace saying "Ammo must be >= 1" makes it sound like you're trying to pick up an ammo stack with a fractional ammo amount, which I'm not sure how that would ever happen naturally, but I was able to reproduce that particular crash and fix it. This should fix the issue you saw, but let me know if it ends up still happening.

New response