Advanced Order
Moderator: OpenTTD Developers
Advanced Order
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.
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.
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
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 (2.03 KiB) Viewed 7765 times
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.
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

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.
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.
Nice idea. When i code Auto Separate Vehicles i will look into the potential of that idea.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).
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.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 would like to see more conditions for the IF, like if servicing, if loaded, if empty, if maxspeed >/</= vall_Blue_l wrote:i plan to included that too. Did i forget to mention that somewhere? probably but thanks anyway.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
you are doing a good work

I didn't think of that one maxspeed i think i may also include that.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
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 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
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.
Who is online
Users browsing this forum: No registered users and 6 guests