Fluid Filtering


Adds ability to set filter for pumps, works the same as filter for inserters. Can be set from circuit network as well. Adds ability to set filter for fluid wagons.

Utilities
27 days ago
1.1
541
Logistics Trains Fluids Circuit network

b [Fixes] 1.05 crash

2 months ago

Seme like with 1.05 when i want to chosse a filter it crash. I hope you can squash it.

3119.160 Error MainLoop.cpp:1404: Exception at tick 138115584:
Error while running event fluidfiltering::on_gui_elem_changed (ID 69)
fluidfiltering/code/gameplay.lua:523: attempt to index local 'pumpEntry' (a nil value)
stack traceback:
fluidfiltering/code/gameplay.lua:523: in function 'UpdateFilterIcon'
fluidfiltering/code/gameplay.lua:551: in function 'SetPumpFilter'
fluidfiltering/code/ui.lua:954: in function 'SetFilter'
fluidfiltering/code/ui.lua:1170: in function 'fn'
fluidfiltering/code/ui.lua:113: in function <fluidfiltering/code/ui.lua:108>

2 months ago

Ok so, it seems that you somehow got a pump that was sneaked behind my mod so it was not aware of the pump. I can see only 2 ways how this could happen:
1. Some of the build events were not handled. I indeed missed one - fixed in 1.0.6
2. One of your mods built or revived the pump but did it silently without raising corresponding events (see parameters raise_built and raise_revive). Unfortunately, I can't help here. If this is the case and you still have the issue in 1.0.6, you can try figuring out which mod does this and ask its author to fix it.

I also exposed a console command /ff.repopulate_pumps - it will check and try to fix any missing pumps. This is not really a solution but may help if you already have a save with a broken state.

New response