Page 1 of 1

[0.16.16] Pump ignores fluidbox filter.

Posted: Tue Jan 16, 2018 7:52 pm
by eradicator
Setting a filter on the fluidbox of a pump (not offshore-pump) via API suggests that setting the filter works (i.e. returns true) but the pump still pumps unfiltered fluids.

Code: Select all

/c game.print(serpent.line(game.player.selected.fluidbox.set_filter(1,{name='lubricant',force=true})))
--true
/c game.print(serpent.line(game.player.selected.fluidbox.get_filter(1)))
--{maximum_temperature = 100, minimum_temperature = 25, name = "lubricant"}
/c game.print(serpent.line(game.player.selected.fluidbox[1]))
--{amount = 200, name = "heavy-oil", temperature = 25.000000000000501}
I tried setting the filter in various settings, on an empty pump, a newly build one and one that still contained old liquid, with or without force=true. but nothing works. It works fine on pipes/tanks. And on assemblers attempting to set a filter returns "false" as expected.

Expected behavior: The pump should only accept the filtered fluid :D.

Re: [0.16.16] Pump ignores fluidbox filter.

Posted: Wed Jan 17, 2018 8:56 am
by bobingabout
I didn't even realise filter was run time editable, I thought it was something you set in the data phase.

Re: [0.16.16] Pump ignores fluidbox filter.

Posted: Thu Jan 25, 2018 5:41 am
by Rseding91
Thanks for the report. This is now fixed for the next version of 0.16. thanks to Klonan.