Random Train Routing
Moderator: OpenTTD Developers
Random Train Routing
Are there any way I can alter the game so that the trains go random like they did in the old days. Reason is I wanna try make a big train network where all the trains just go randomly between cities and pick up passengers and mail. With YAPF and the other one they just seem to go the same route over and over again.
- Jagged_bacon
- Engineer
- Posts: 71
- Joined: 20 Sep 2014 14:13
- Location: United States
Re: Random Train Routing
The only way to do this without changing the .exe is to not set a route on your trains. This will keep them going, however the best way to do this if you want an exception from a station is to leave the routing on "Local" instead of "Express." Then select the stations you want it to go to. It will do it in an order however some stations you have may not connect. So that's the "half random" way of doing it.
Man that was confusing....
I hope this helps, I am new to this forum as well.
Man that was confusing....
I hope this helps, I am new to this forum as well.
Let the good times roll!
I make locomotion videos! https://www.youtube.com/channel/UCF9pxC ... VuIltm0vhQ
I make locomotion videos! https://www.youtube.com/channel/UCF9pxC ... VuIltm0vhQ
Re: Random Train Routing
I have a feeling that OP has already tried this.Jagged_bacon wrote:is to not set a route on your trains.
At least with YAPF (from my playing experience, not from code reading), trains chose the path of least resistance, even without any orders. Any stations that's not in the order is a resistance, and thus wil try to avoid them. An unplanned station that's closer is more resistance than unplanned station that's further away. With a very specific way YAPF calculates its path even for a train without any orders, trains will choose their paths in a very specific manner, leading to the
pattern.Thooom wrote:...just seem to go the same route over and over again.
Re: Random Train Routing
Correct. I had tried that I just remember playing TTD as a kid I would make a big network of train routes and send loads of trains onto it too see them crash, just can't seem to do it now because trains don't drive random :/
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Random Train Routing
Thread moved to 'General OpenTTD' - this topic does not seem to be about AI or game scripts.
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Who is online
Users browsing this forum: No registered users and 30 guests