Page 1 of 1

Read what is reqested?

Posted: Sun Sep 08, 2019 8:31 pm
by Mur
I might be a bit dense and missing something. But is it possible to read a train and see what request has brought it to the station?

I want to make a station that can support multiple liquids and can read what the train has requested so if the train wants lubricant only the lube pumps activate.

Re: Read what is reqested?

Posted: Mon Sep 09, 2019 3:26 am
by Mur
I figured out how to do this. The output combinator (the thing beside the lamp) on LTN shows what the incoming train has requested so you can send a signal to the pumps to be activated when a signal is >1

You can do things like this : Image

Re: Read what is reqested?

Posted: Mon Sep 09, 2019 6:23 am
by Optera
See design thread. viewtopic.php?f=214&t=51073#p297643

Under Requester and Provider I've described in length how to get count perfect load and unload signals.
For Fluids requiring only full loads it's even simpler.

Re: Read what is reqested?

Posted: Mon Sep 09, 2019 2:15 pm
by mrvn
If you use "fluid != 0" for the pumps the same programming works for loading and unloading.

Although since 0.17 that is less of an issue as unloading fluids automatically only activates the pumps with the right fluids (or pumps with no fluid specified).