Advanced Order

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
l_Blue_l
Transport Coordinator
Transport Coordinator
Posts: 285
Joined: 29 Mar 2006 22:42
Contact:

Advanced Order

Post by l_Blue_l »

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 328 times
Last edited by l_Blue_l on 20 May 2007 04:43, edited 6 times in total.
l_Blue_l
Transport Coordinator
Transport Coordinator
Posts: 285
Joined: 29 Mar 2006 22:42
Contact:

Post by l_Blue_l »

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 7764 times
User avatar
gkirilov
Chief Executive
Chief Executive
Posts: 696
Joined: 03 May 2005 09:32
Location: Othala

Post by gkirilov »

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.
User avatar
Ricki
Engineer
Engineer
Posts: 8
Joined: 14 Jul 2005 19:48
Location: Ciudad Real, Spain

Post by Ricki »

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).
l_Blue_l
Transport Coordinator
Transport Coordinator
Posts: 285
Joined: 29 Mar 2006 22:42
Contact:

Post by l_Blue_l »

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.
pshemko
Engineer
Engineer
Posts: 104
Joined: 24 Sep 2004 02:43
Location: Aotearoa (New Zealand)

Post by pshemko »

I have one more suggestion - orders that get executed only when a vehicle need servicing. So it could look something like:

Code: Select all

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
l_Blue_l
Transport Coordinator
Transport Coordinator
Posts: 285
Joined: 29 Mar 2006 22:42
Contact:

Post by l_Blue_l »

pshemko wrote:I have one more suggestion - orders that get executed only when a vehicle need servicing. So it could look something like:

Code: Select all

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.
User avatar
Wolf01
Tycoon
Tycoon
Posts: 2016
Joined: 24 Apr 2004 10:43
Location: Venezia - Italia
Contact:

Post by Wolf01 »

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: Select all

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 ;)
l_Blue_l
Transport Coordinator
Transport Coordinator
Posts: 285
Joined: 29 Mar 2006 22:42
Contact:

Post by l_Blue_l »

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.
l_Blue_l
Transport Coordinator
Transport Coordinator
Posts: 285
Joined: 29 Mar 2006 22:42
Contact:

Post by l_Blue_l »

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 230 times
Last edited by l_Blue_l on 25 Jun 2007 00:17, edited 2 times in total.
l_Blue_l
Transport Coordinator
Transport Coordinator
Posts: 285
Joined: 29 Mar 2006 22:42
Contact:

Post by l_Blue_l »

Advanced Non-Stop Updated. ^^^
pshemko
Engineer
Engineer
Posts: 104
Joined: 24 Sep 2004 02:43
Location: Aotearoa (New Zealand)

Post by pshemko »

would you consider changing 'go all stations to ' to 'stop at all stations to' ?
The first one sounds a bit odd.
l_Blue_l
Transport Coordinator
Transport Coordinator
Posts: 285
Joined: 29 Mar 2006 22:42
Contact:

Post by l_Blue_l »

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?
pshemko
Engineer
Engineer
Posts: 104
Joined: 24 Sep 2004 02:43
Location: Aotearoa (New Zealand)

Post by pshemko »

'every stop to'
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Post by FooBar »

How 'bout:
"Go non-non-stop to ..." :mrgreen:
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 9 guests