Making a path_track choose a random path
Any help would be appreciated.
Hemotem
Use a relay for every case and let it movetonode <<name of the point>> that should work. I can't test it at the moment though
hemotem wrote:
the train travels from point 0 to point 1 but stops at point 1. I will try using a relay and see if that works thanks
Train travels from A to Random(path_1-6).
Just make the random output -> trigger the case; let the case trigger a relay.
Let relay_1 MoveToPathNode path_1
Relay 2: Ontrigger, Train, MoveToPathNode, path_2
etc. that should do it 
Let relay 1 trigger another relay (relay 2) with a delay of 5 seconds
Let relay 2 trigger relay 1 after a delay of 0.01 seconds; That's a cheaty way to do a timer and you can rule out if there's a problem with the timer
If anyone has an idea on how to do this... train_1 starts at track_1 and has a random choice to go to track_2 thru Track_4 and back to track_1 again then resetting and choosing a different random track to take and back. Rinse and repeat.
In advance I thank you for any help.
Hemotem
A simplified design I wanted to use 8 points if I could get this right.
O3
|r
|e
|a
|l
|y
relay3 |2 relay1
O4-------------O1-------------O2
r |
e |
l | logic_case1
a |
y | logic_timer1
4 |
O5
O1 thru O5 are the path_tracks
Logic_timer set to random time tied to the logic_case to fire the case. relay1 - relay4 set to on trigger MoveToPathNode track2 to track5, track2 to track5 are stet to next stop track1, since that did not work I ended up putting in MoveToPathNode track1 in track2 to track5 and it went to track5 and back to track1 repeatedly sometimes with a delay or an early switch in the movement from track1 to track5 and back.
That is the design I was looking for. but have hit a brick wall so to speak.
So anyone have an idea what I am doing wrong here?
See attached map...
Is this what you what it to do?
As far as I know, you need to have all the paths connected in a serial 'line' (just like a real trains tracks), so you cant just jump around so easily.
You need some 'fake' paths to teleport to before moving to the correct path.
Also needed is a 'fake' end path. This is because there is a slight bug with paths in that the 'end' path is always slightly offset compared to all the others, so a fake end needs to be there, but its never used really.
Not sure if there is an easier way, but that was how I've done it.
Rob.
EDIT:
Went and made the tracks longer found an issue of the train jumping to the middle but figured it was the time that was placed in the tracks01_05 increasing that solved the problem =)
If you want to make it more stable, then get rid of the timer, and then put outputs on the path_01_02 - path_01_05 paths for 'OnPass' and make them do the logic_case random selection there.
Then it doesnt matter how long you make them, they will automatically trigger the next one when they get to the each path.
Rob.