Page 1 of 1

Two way train Fluid wagon

Posted: Sun Dec 10, 2017 2:41 am
by Heitorfm
Hi all,

I´m tryind to assemble a two way train with one fluid wagon, but its not working. I have two locomotives, and the train stations are in the right place.
I have two rules:
1: go to petrol repository when empty
2: go to base when petrol = 75000

And they both work, but only when i delete one of then.When i have both of then the train doenst move.

Regards
Heitor

Re: Two way train Fluid wagon

Posted: Sun Dec 10, 2017 3:39 am
by impetus maximus
welcome to the forums.
you want game play help, not bug reports.

Re: Two way train Fluid wagon

Posted: Sun Dec 10, 2017 4:25 am
by Jap2.0
A few things:
  • -Are you using a loop, or do you have the engines facing opposite ways (both work, it'll just help with troubleshooting)?
    -Does the train say "no path"?
    -Is your train stuck at a red signal (perhaps blocking itself)?
    -Have you completed the train tutorials?
    -Can you please post some pictures or a save or something, and either get this moved to gameplay help [edit: done] (I'm not insulting your train skills, just chances are that you made a minor mistake somewhere, or else we'd've probably noticed a bug by now) or comply with this?
Thanks!

Re: Two way train Fluid wagon

Posted: Sun Dec 10, 2017 8:50 pm
by Heitorfm
This the fisrt station called 'base':
base1.png
base1.png (487.45 KiB) Viewed 3317 times

This is the second station called 'petro':
petro.png
petro.png (312.05 KiB) Viewed 3317 times
This is my fisrt rule:
rules1.png
rules1.png (195.81 KiB) Viewed 3317 times
The second:
rules2.png
rules2.png (209.96 KiB) Viewed 3317 times

And the train only moves when i delete one of then.

Re: Two way train Fluid wagon

Posted: Sun Dec 10, 2017 9:45 pm
by cbhj1
if base is your unloading point, it looks like you need to switch the conditions, they are what determine the train leaving, not arriving.

Re: Two way train Fluid wagon

Posted: Tue Dec 12, 2017 1:38 am
by Heitorfm
OWWWWW !!!

Yep, its all working now. I was thinking that teh rule was 'go there, when condition is satisfied' but, is the oposite: 'dont go there until condition is satisfied'.
Thats why i was so sure that this was a bug.

I still think that 'go when true' is more intuitive, but,
Anyways, thank you all for the help !!!

Regards
Heitor

Re: Two way train Fluid wagon

Posted: Tue Dec 12, 2017 10:46 am
by mrvn
Also be aware that checking the fluid level will round the level before comparison. Better to use the full/empty condition or combine the two.

Re: Two way train Fluid wagon

Posted: Tue Dec 12, 2017 11:00 am
by Engimage
The condition on a station is a LEAVING condition. So the train will stay at selected station UNTIL the condition is satisfied. There is NO WAY CURRENTLY to set up condition for visiting selected stations (or bypass them in the list) and choose a station in the list based on condition.

Also regarding fluids - you should try to avoid using strict marginal conditions like "=0" or "=75000" if you are not mixing liquids and use single liquid per train. In some edge cases due to rounding problems they might fail so using "<1" and ">74999" instead would prevent that from happening.

Re: Two way train Fluid wagon

Posted: Fri Dec 15, 2017 5:11 pm
by Frightning
PacifyerGrey wrote:The condition on a station is a LEAVING condition. So the train will stay at selected station UNTIL the condition is satisfied. There is NO WAY CURRENTLY to set up condition for visiting selected stations (or bypass them in the list) and choose a station in the list based on condition.

Also regarding fluids - you should try to avoid using strict marginal conditions like "=0" or "=75000" if you are not mixing liquids and use single liquid per train. In some edge cases due to rounding problems they might fail so using "<1" and ">74999" instead would prevent that from happening.
Had no problems with any floating point errors when using the Fluid wagon myself, so I'd say the OP probably doesn't have to worry about this unless they see it suddenly stop working with apparent explanation.
Edit: I should mention that I use the 'when empty' and 'when full' conditions instead of '='.

Re: Two way train Fluid wagon

Posted: Mon Dec 18, 2017 10:04 am
by mrvn
Frightning wrote:
PacifyerGrey wrote:The condition on a station is a LEAVING condition. So the train will stay at selected station UNTIL the condition is satisfied. There is NO WAY CURRENTLY to set up condition for visiting selected stations (or bypass them in the list) and choose a station in the list based on condition.

Also regarding fluids - you should try to avoid using strict marginal conditions like "=0" or "=75000" if you are not mixing liquids and use single liquid per train. In some edge cases due to rounding problems they might fail so using "<1" and ">74999" instead would prevent that from happening.
Had no problems with any floating point errors when using the Fluid wagon myself, so I'd say the OP probably doesn't have to worry about this unless they see it suddenly stop working with apparent explanation.
Edit: I should mention that I use the 'when empty' and 'when full' conditions instead of '='.
And those do not round. to integer.