Auto route

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Bøtteknott
Engineer
Engineer
Posts: 35
Joined: 08 Jul 2008 18:43

Auto route

Post by Bøtteknott »

Is it possible to auto route one train from every city (with a stasjon) so that you have one train from all citys to all citys?

I don't know how to explane it, hope you understand what i ask for...

-B
User avatar
belugas
OpenTTD Developer
OpenTTD Developer
Posts: 1507
Joined: 05 Apr 2005 01:48
Location: Deep down the deepest blue
Contact:

Re: Auto route

Post by belugas »

I think I do.
You would like a function that would connect a train to all the cities where there is a station.
If it's that, no, there is no automatic function, you have to do it yourself.
That's the fun of the game :)
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
User avatar
Rainer
Traffic Manager
Traffic Manager
Posts: 240
Joined: 14 Nov 2007 10:01
Location: Wiesbaden, Germany

Re: Auto route

Post by Rainer »

Hi B.
Bøtteknott wrote:Is it possible to auto route one train from every city (with a stasjon) so that you have one train from all citys to all citys?
Such a train would only make sense for passengers and mail. I design my passenger and mail tracks as a big bidirectional ring through all cities. So you need only two orders (no non-stop) to serve all cities in the ring.

cu
Rainer
Bøtteknott
Engineer
Engineer
Posts: 35
Joined: 08 Jul 2008 18:43

Re: Auto route

Post by Bøtteknott »

No, if I make a new stasion at a city I would like a function that makes trains (3 Passengers and 1 mail trains) from that stasion to all citys...
LordAzamath
Tycoon
Tycoon
Posts: 1656
Joined: 08 Jun 2007 08:00

Re: Auto route

Post by LordAzamath »

Is it hard to do by hand for one train and then clone it?
PS: And I stopped the propaganda to support Dave Worley since he got a nice new red hat now.[/color]
I know I have a BBCode error in my signature but I really cba to fix it.
VoxDissident
Traffic Manager
Traffic Manager
Posts: 178
Joined: 09 Apr 2008 01:37

Re: Auto route

Post by VoxDissident »

LordAzamath wrote:Is it hard to do by hand for one train and then clone it?
Not simply "hard"... impossible. Like trying to lick your shoulder blades. It's that hard.

That's why we need an auto route....
User avatar
belugas
OpenTTD Developer
OpenTTD Developer
Posts: 1507
Joined: 05 Apr 2005 01:48
Location: Deep down the deepest blue
Contact:

Re: Auto route

Post by belugas »

I shake my head in disbelief.

Bøtteknott, that function does not exists at all. And I hope it will not exists in the future. It will make the game so easy it would not be fun anymore.
Press a button and see it all being done for you.
Not what I imagined OpenTTD will be in a few years.
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
dihedral
Tycoon
Tycoon
Posts: 1053
Joined: 14 Feb 2007 17:48

Re: Auto route

Post by dihedral »

grab a copy of the noai branch, write an ai that does exactly that, then watch it play, be happy, and accept what belugas said ;-)
Bøtteknott
Engineer
Engineer
Posts: 35
Joined: 08 Jul 2008 18:43

Re: Auto route

Post by Bøtteknott »

belugas wrote:Bøtteknott, that function does not exists at all.
Thanks. All I whanted to know. And btw, I think it is more fun to build traks and make train routes to different places than routink my trains to the same citys one billion times....
User avatar
belugas
OpenTTD Developer
OpenTTD Developer
Posts: 1507
Joined: 05 Apr 2005 01:48
Location: Deep down the deepest blue
Contact:

Re: Auto route

Post by belugas »

Do you know how to use Shared or Copy Orders?
Maybe that is what you need.
When you build a new vehicle, you copy the orders from another vehicle that has exactly the route you've decided for your new one, and it will copy and use them automatically.
You can even Clone vehicles, which does all that.
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: Auto route

Post by Zuu »

When cloning remember to hold the CTRL button down in order to have the orders shared or the orders will only be copied but not shared.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Bøtteknott
Engineer
Engineer
Posts: 35
Joined: 08 Jul 2008 18:43

Re: Auto route

Post by Bøtteknott »

Yea, but I dont whant the same orders...
Flamelord
Chief Executive
Chief Executive
Posts: 731
Joined: 24 Mar 2005 22:29
Location: Oregon

Re: Auto route

Post by Flamelord »

Copying/cloning orders wouldn't help at all. What he wants to be able to do is, when he creates a new station:

1. Add the station to a group of pre-existing stations or start a new group.
2. Find a list of all trains which visit any of the stations in the group.
3. Determine which stations have links between them.
4. Create new trains to complete any missing links, with each train receiving two stations to link as its orders.

My advice would be for him to write his own patch. :)
Additional Livery Set
Official TT-Jewel Staite FanClub
Bøtteknott
Engineer
Engineer
Posts: 35
Joined: 08 Jul 2008 18:43

Re: Auto route

Post by Bøtteknott »

I have no idea how to make a patch and I don't have time to learn it...
Flamelord
Chief Executive
Chief Executive
Posts: 731
Joined: 24 Mar 2005 22:29
Location: Oregon

Re: Auto route

Post by Flamelord »

No, you simply don't want to make time. There's a distinction there. Time could be made by changing your OTTD playing time into learning to program time, and eventually into programming time, and then into testing time, then back into playing time. Then you'd have more time to build networks in each play session because you'd have your patch.
Additional Livery Set
Official TT-Jewel Staite FanClub
Bøtteknott
Engineer
Engineer
Posts: 35
Joined: 08 Jul 2008 18:43

Re: Auto route

Post by Bøtteknott »

Flamelord wrote:No, you simply don't want to make time. There's a distinction there. Time could be made by changing your OTTD playing time into learning to program time, and eventually into programming time, and then into testing time, then back into playing time. Then you'd have more time to build networks in each play session because you'd have your patch.
Seriusly, when I say I don't have time, I (unbelievably) don't have time. Is that too hard to understand? :P I'd love to learn, and if you can give me some links I'd be glad but I cant look inn to it at the moment...
Flamelord
Chief Executive
Chief Executive
Posts: 731
Joined: 24 Mar 2005 22:29
Location: Oregon

Re: Auto route

Post by Flamelord »

Yes, since you claim to have time to play OTTD in the first place, it is unbelievable.

Anyway. Links, hmm?

Try anything in there that looks promising: http://www.overrideportal.com/dump/ebooks/

And I tend to use http://www.cplusplus.com as a reference.

Of course, I'm just a novice programmer, so if someone has better learning materials, I'd like to see them too. :)
Additional Livery Set
Official TT-Jewel Staite FanClub
Mchl
Director
Director
Posts: 611
Joined: 05 Jan 2007 15:50
Location: Poland
Contact:

Re: Auto route

Post by Mchl »

Flamelord wrote:Yes, since you claim to have time to play OTTD in the first place, it is unbelievable.
I think he never actually said that :P
There still people like, who are OTTD fans, have 4 different OTTD versions installed (perhaps even self compiled), visit forums a lot etc... still my actual OTTD gaming time last month was something between 3 and 4 hours... And I wish it was more ;)
Flamelord
Chief Executive
Chief Executive
Posts: 731
Joined: 24 Mar 2005 22:29
Location: Oregon

Re: Auto route

Post by Flamelord »

While he may never have said as much, one can reasonably assume that he has played (and continues to play) enough to have developed a specific style of play, since the request for information exists in the first place.
Additional Livery Set
Official TT-Jewel Staite FanClub
Bøtteknott
Engineer
Engineer
Posts: 35
Joined: 08 Jul 2008 18:43

Re: Auto route

Post by Bøtteknott »

I've played the game since before I could read!
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 8 guests