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
a month ago
1.1 - 2.0
3.79K

b [Resolved] crash when pressing alt + F in Remote View

5 months ago

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

Error while running event vacuum-cleaner::vacuum_cleaner_toggle_main_window (ID 307)
vacuum-cleaner/vacuum_cleaner/gui/main_window.lua:35: attempt to index field '?' (a nil value)
stack traceback:
vacuum-cleaner/vacuum_cleaner/gui/main_window.lua:35: in function 'update_item_button_tooltips'
vacuum-cleaner/vacuum_cleaner/gui/main_window.lua:85: in function 'add_items_row'
vacuum-cleaner/vacuum_cleaner/gui/main_window.lua:102: in function 'set_item_buttons_amount'
vacuum-cleaner/vacuum_cleaner/gui/main_window.lua:136: in function 'create_items_frame'
vacuum-cleaner/vacuum_cleaner/gui/main_window.lua:243: in function 'build_window'
vacuum-cleaner/vacuum_cleaner/gui/main_window.lua:429: in function 'toggle_window'
...uum-cleaner__/vacuum_cleaner/event_handlers/controls.lua:11: in function <...uum-cleaner__/vacuum_cleaner/event_handlers/controls.lua:8>

5 months ago
(updated 5 months ago)

Thanks for the report! I haven't been able to reproduce this yet. As far as I can tell from the stack trace, something got messed up in the internal data storage at some point. Would you be able to share a save file just before you get the crash? Alternatively, you can run the command "/c __vacuum-cleaner__ log(serpent.block(storage.player_table))" (again, just before you're able to get the crash) and then share your factorio-current.log file.

4 months ago

Got as new one:

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

Error while running event vacuum-cleaner::vacuum_cleaner_toggle_main_window (ID 307)
vacuum-cleaner/vacuum_cleaner/gui/main_window.lua:35: attempt to index field '?' (a nil value)
stack traceback:
vacuum-cleaner/vacuum_cleaner/gui/main_window.lua:35: in function 'update_item_button_tooltips'
vacuum-cleaner/vacuum_cleaner/gui/main_window.lua:85: in function 'add_items_row'
vacuum-cleaner/vacuum_cleaner/gui/main_window.lua:102: in function 'set_item_buttons_amount'
vacuum-cleaner/vacuum_cleaner/gui/main_window.lua:136: in function 'create_items_frame'
vacuum-cleaner/vacuum_cleaner/gui/main_window.lua:243: in function 'build_window'
vacuum-cleaner/vacuum_cleaner/gui/main_window.lua:429: in function 'toggle_window'
...uum-cleaner__/vacuum_cleaner/event_handlers/controls.lua:11: in function <...uum-cleaner__/vacuum_cleaner/event_handlers/controls.lua:8>

4 months ago

That looks like the same stack trace as last time. I appreciate the report, but as I said previously I can't recreate the issue so I won't be able to do anything about this until I get some more information--a save file or log file (after running the command I gave you) would be a great start. Thanks!

4 months ago

Here's the save file, once loaded press ALT + F and it crashes:

https://1drv.ms/u/c/9a3441e830dbccd7/EUnVjdBmvJtEi3jjTfM4bjkBLy0uI9OYBLFqECOmg1DDwQ?e=JAMeSC

4 months ago

Thanks so much--looks like the error is caused by other mods changing the internal names for their items. In your case, you set up a filter, and then later, the Rusting Iron mod released an update that changed internal names for several prototypes, and now Vacuum Cleaner is trying to find those prototypes by their old names which no longer exist.

I've uploaded an update that should fix this by removing any references to items that don't exist/have changed names.

New response