It's a simple matter of multiplying 8,000 by the train station signal C.E.g., 2 trains on the way, total capacity = 16,000. Chests contents = 4,000. Turn on the agriculture tower control signal because we need (12,000) more fruit.
I thought it would be easy to also subtract the partially full train's contents from the total demand using the train station's contents signal.
However, the train's contents stop being read the moment it even attempts to leave.E.g., only one train on the way, current contents = 4,000 and chest contents = 4,000. Turn off the agriculture tower control signal because we have enough fruit.
In order to make this work, I need to somehow generate a Yumako=8,000 signal if the train is leaving OR attempting to leave BUT NOT just arriving.
I find the train station signal C to be a bit inconsistent:
- Train entering the station but not stopped yet: C=1, "Trains On The Way = 1, T=0"
- Train stopped at the station: C=1, "Trains on the Way = 1, T≠0"
- Train attempting to leave the station but unable to move, destination full: C=1, "Trains on the Way = 1, T=0"
- Train leaving the station but back end of the train still occupying it, C=1, "Trains On The Way = 0, T=0"
I was wondering if there's something I'm missing, or if there's an explanation I'm overlooking for why the train system is set up this way, with "On The Way" not meaning literally "On The Way" and the mismatch between the C signal and the "On The Way" indicator?
Thanks in advance!
---
Full disclosure, I know this is overly fancy and I'm 95% certain it's overdesigned anyway. It has the glaring flaw that fruit in the agriculture tower's output buffer isn't being counted (yet - I might still try to implement this as well), but I was hoping to see it in action at one of my farms before confirming it's not worth the complexity.