Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Wed May 22, 2013 8:16 pm

All times are UTC




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: Advanced Order
PostPosted: Sun May 13, 2007 3:02 pm 
Offline
Transport Coordinator
Transport Coordinator

Joined: Wed Mar 29, 2006 10:42 pm
Posts: 285
This thread will be dedicated to Advanced Orders more details can be found here

I am working on this project together with skidd13 and he is working with the Gui related interface so all Gui (button) related items should be discussed here

As of 14th of May 2007 these are the main ideas I am or plan on developing

Goto depot orders and Stop or Sell
Order to go to any depot

Display the amount of days it takes between orders
Auto Separate Vehicles
Set load unload Percentage
Select load / unload by cargo type

Fill Station (Under Development)
Flexible Orders (Under Development )
Skip if cargo is full / empty (Testing)
Non-stop split into two order types (Advanced_non_stop_r9886.patch)

Below is a very dirty patch of what i have done so far. This patch is just a dump of all current developments and it is unsuitable for playing OpenTTD with. When items of code are ready i will port them out of this for testing and hopefully inclusion into the trunk.

Credit goes to the minIN and skidd13 for helping me with the new way strings are calculated for the order display.


Attachments:
Advanced_orders_V0.1_r9830.patch [42.18 KiB]
Downloaded 156 times

_________________
Advanced 3D train games


Last edited by l_Blue_l on Sun May 20, 2007 4:43 am, edited 6 times in total.
Top
 Profile  
 
 Post subject:
PostPosted: Sun May 13, 2007 3:21 pm 
Offline
Transport Coordinator
Transport Coordinator

Joined: Wed Mar 29, 2006 10:42 pm
Posts: 285
Non-stop split into two order types. Waypoint and Stop All Stations

All orders with new-non-stop on will have there non-stop orders set to waypoint.

All orders without new-non-stop on will have all there orders set to Stop All Stations except orders with non-stop set.

Below is what the orders would look like

please let me know what you think


Attachments:
non-stop.PNG
non-stop.PNG [ 2.03 KiB | Viewed 3959 times ]

_________________
Advanced 3D train games
Top
 Profile  
 
 Post subject:
PostPosted: Sun May 13, 2007 4:21 pm 
Offline
Chief Executive
Chief Executive
User avatar

Joined: Tue May 03, 2005 9:32 am
Posts: 696
Location: Othala
It might come in handy when you have a lot of stations (like 20) in a row for passenger service.
This is a good addition to the pax/mail destinations where point-to-point connections are not good idea.

_________________
OTTDCoop NewGRF Pack|Different sets of GRFs for TTDPatch (some of them work in OTTD) - 1|- 2|GRF sets for OTTD|OTTD nightly
Image
I hooked up my accelerator to my brake lights. I hit the gas, people behind me stop, and I'm gone.
Understeer is when you hit the wall with the front of the car. Oversteer is when you hit the wall with the rear of the car. Horsepower is how fast you hit the wall. Torque is how far you take the wall with you. Spoilers and bodykits are how much of the wall you take with you. Rollcages and windownets are how much of a mess you leave on the wall.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 13, 2007 4:59 pm 
Offline
Engineer
Engineer
User avatar

Joined: Thu Jul 14, 2005 7:48 pm
Posts: 8
Location: Ciudad Real, Spain
Would it be hard to add timing options to an order? Something like, for example, leaving the 1st of every month, with the option to wait in station even if it gets full before, and with warnings for vehicles missing their schedule (like those for lost or non-profitable ones).


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 13, 2007 8:42 pm 
Offline
Transport Coordinator
Transport Coordinator

Joined: Wed Mar 29, 2006 10:42 pm
Posts: 285
Ricki wrote:
Would it be hard to add timing options to an order? Something like, for example, leaving the 1st of every month, with the option to wait in station even if it gets full before, and with warnings for vehicles missing their schedule (like those for lost or non-profitable ones).


Nice idea. When i code Auto Separate Vehicles i will look into the potential of that idea.

_________________
Advanced 3D train games


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 14, 2007 1:05 am 
Offline
Engineer
Engineer

Joined: Fri Sep 24, 2004 2:43 am
Posts: 104
Location: Aotearoa (New Zealand)
I have one more suggestion - orders that get executed only when a vehicle need servicing. So it could look something like:
Code:
1. Go to A
2. Go to B
3. Go via xyz if servicing required
4. Go to C if servicing required
5. Service at depot


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 14, 2007 6:03 am 
Offline
Transport Coordinator
Transport Coordinator

Joined: Wed Mar 29, 2006 10:42 pm
Posts: 285
pshemko wrote:
I have one more suggestion - orders that get executed only when a vehicle need servicing. So it could look something like:
Code:
1. Go to A
2. Go to B
3. Go via xyz if servicing required
4. Go to C if servicing required
5. Service at depot


i plan to included that too. Did i forget to mention that somewhere? probably but thanks anyway.

_________________
Advanced 3D train games


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 14, 2007 9:21 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Apr 24, 2004 10:43 am
Posts: 1924
Location: Venezia - Italia
l_Blue_l wrote:
pshemko wrote:
I have one more suggestion - orders that get executed only when a vehicle need servicing. So it could look something like:
Code:
1. Go to A
2. Go to B
3. Go via xyz if servicing required
4. Go to C if servicing required
5. Service at depot


i plan to included that too. Did i forget to mention that somewhere? probably but thanks anyway.

i would like to see more conditions for the IF, like if servicing, if loaded, if empty, if maxspeed >/</= val
you are doing a good work ;)

_________________
ImageImage
ImageImage
ImageImage
newgrf tests, see: newgrf test topic, my patches: Wolf01's Hire Point
Italian TTD Forum
Wiki Page


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 14, 2007 10:43 pm 
Offline
Transport Coordinator
Transport Coordinator

Joined: Wed Mar 29, 2006 10:42 pm
Posts: 285
Wolf01 wrote:
i would like to see more conditions for the IF, like if servicing, if loaded, if empty, if maxspeed >/</= val
you are doing a good work ;)


I didn't think of that one maxspeed i think i may also include that.

Ok since i have doing all these If statements i think some Else statements may be good too. I think the Flexible Orders and If and else statements are going to be merged into the same system. Just to give you an idea maybe the Orders could be displayed like this

1: Go to A
If Not Full
____2: Go to B
____If Not Full
________3: Go to Order 1
If Servicing
____4: Go to C
____5: Go to D
else
____6:Go to E
7: Go to F

If you got any other ideas how it could be displayed please let me know.

_________________
Advanced 3D train games


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 20, 2007 4:06 am 
Offline
Transport Coordinator
Transport Coordinator

Joined: Wed Mar 29, 2006 10:42 pm
Posts: 285
Advanced Non Stop
New order types
Go Via Station A, Go All Stations to Station A and Go All Stations via Station A.

All stations means stop at all stations

To do list:

Improve comments
Fix Timetable (eg. strings)

Edit: Patch Updated


Attachments:
Advanced Non-stop r10314.patch [26.72 KiB]
Downloaded 98 times

_________________
Advanced 3D train games


Last edited by l_Blue_l on Mon Jun 25, 2007 12:17 am, edited 2 times in total.
Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 24, 2007 10:48 pm 
Offline
Transport Coordinator
Transport Coordinator

Joined: Wed Mar 29, 2006 10:42 pm
Posts: 285
Advanced Non-Stop Updated. ^^^

_________________
Advanced 3D train games


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 25, 2007 12:20 am 
Offline
Engineer
Engineer

Joined: Fri Sep 24, 2004 2:43 am
Posts: 104
Location: Aotearoa (New Zealand)
would you consider changing 'go all stations to ' to 'stop at all stations to' ?
The first one sounds a bit odd.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 25, 2007 12:52 am 
Offline
Transport Coordinator
Transport Coordinator

Joined: Wed Mar 29, 2006 10:42 pm
Posts: 285
I agree that 'go all stations to' is crap but i was trying to keep it as short as possible and i welcome other ideas. 'stop at all stations to' or possibly 'stop all stations to' but i still think these are to long compared to other strings used like Go to and Go via. Anybody got any other ideas?

_________________
Advanced 3D train games


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 25, 2007 2:58 am 
Offline
Engineer
Engineer

Joined: Fri Sep 24, 2004 2:43 am
Posts: 104
Location: Aotearoa (New Zealand)
'every stop to'


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 25, 2007 8:19 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon May 21, 2007 11:47 am
Posts: 6117
Location: The Netherlands
How 'bout:
"Go non-non-stop to ..." :mrgreen:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC


Who is online

Users browsing this forum: Exabot [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB © 2000-2013 phpBB Group

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2013.
Hosted by Zernebok Hosting.