Auto Trash


Allows saving of different logistic request setups Enable autotrash only in certain logistic networks Load your spidertron with different setups with a single click Load one or more preset after respawning Trash unrequested items

Content
3 years ago
0.13 - 1.1
37.9K
Logistic network

b Migration handling

7 years ago

I noticed in your contol.lua file, you are handling migrations. You should instead create a folder called migrations and then handle the things in there (see https://wiki.factorio.com/index.php?title=Migration_scripts). The reason I brought this up is that it crashes when trying to migrate from 0.1.5. The error is:
Error while running the on_configuration_changed: AutoTrash/control.lua:35: attempt to index field 'mainNetwork' (a nil value)
I implemented a work-around in my copy, but it would be nice not to have to do that. Your mod is great by the way.

7 years ago

I know about migration files, but they don't have access to global. Looking at the code from 0.1.5 i guess you loaded a save with an Autotrash version > 0.0.55 and < 0.1.1 ?
Will be fixed next release

New response