When the train arrives at the unloading station and begins to unload, there is no corresponding type of cargo signal.
Please let me know if you need more information
It can be seen that there is a signal when the goods are loaded.
I have thought about whether it does not have the signal when unloading, but I see that the fluid train has the signal.
I 've also thought about whether it 's because I 'm using a modular train, but after testing it doesn 't matterWhen the train arrives at the unloading station and begins to unload, there is no corresponding type of cargo signal.
Moderator: Optera
Re: When the train arrives at the unloading station and begins to unload, there is no corresponding type of cargo signal
The LTN output is telling you what is supposed to be on the train, so that you can compare it to what is actually on the train ("Read train contents" on the train stop itself, as in vanilla). So, when unloading, the output will be nothing: the train is supposed to be empty, so you should remove everything that is currently on the train.
Edit: fluids behave a little differently because of complexities around circuit-controlling pumps and how rounding works for very small amounts of fluid. It's outputting -1 to ensure that the pump stays enabled until the fluid wagon is actually completely empty - the expectation is that you are subtracting the train's current contents from the LTN output signal and then unloading anything that is negative, so outputting -1 here forces the pump to stay on until the train leaves the stop.
Edit: fluids behave a little differently because of complexities around circuit-controlling pumps and how rounding works for very small amounts of fluid. It's outputting -1 to ensure that the pump stays enabled until the fluid wagon is actually completely empty - the expectation is that you are subtracting the train's current contents from the LTN output signal and then unloading anything that is negative, so outputting -1 here forces the pump to stay on until the train leaves the stop.
Re: When the train arrives at the unloading station and begins to unload, there is no corresponding type of cargo signal
I understand what you mean. Thank you for your answer to this feature.torne wrote: ↑Wed Jan 24, 2024 10:05 pm The LTN output is telling you what is supposed to be on the train, so that you can compare it to what is actually on the train ("Read train contents" on the train stop itself, as in vanilla). So, when unloading, the output will be nothing: the train is supposed to be empty, so you should remove everything that is currently on the train.
Edit: fluids behave a little differently because of complexities around circuit-controlling pumps and how rounding works for very small amounts of fluid. It's outputting -1 to ensure that the pump stays enabled until the fluid wagon is actually completely empty - the expectation is that you are subtracting the train's current contents from the LTN output signal and then unloading anything that is negative, so outputting -1 here forces the pump to stay on until the train leaves the stop.