[patch] Wait for half load
Moderator: OpenTTD Developers
[patch] Wait for half load
This patch adds new order loading modifier - wait until half load. If set, vehicle will wait until total amount of loaded cargo is 50% or more then total vehicle capacity.
- Attachments
-
- wait_for_half_load_v1_r27189.diff
- (13.74 KiB) Downloaded 45 times
don't worry, be happy and checkout my patches
Re: [patch] Wait for half load
(i've said all this before)
i find the whole idea to add more order modifiers ill-conceived. because you only ever cover that narrow use case that you had in mind, and not the thousands of other use cases that other people have.
what should be done (imo) is, right before leaving a station, to evaluate the next order, including all conditional orders, and go back to the loading phase if the result is the same station as before.
take for example the following use case:
[also, timetables could use the function to differentiate "travel for 0 days" vs. "there is no time scheduled for this". currently you need to puzzle things together with random 1 day times]
i find the whole idea to add more order modifiers ill-conceived. because you only ever cover that narrow use case that you had in mind, and not the thousands of other use cases that other people have.
what should be done (imo) is, right before leaving a station, to evaluate the next order, including all conditional orders, and go back to the loading phase if the result is the same station as before.
take for example the following use case:
- go to A
-> travel for 40 days - go to B, no loading, wait for 10 days
- go to B
-> travel for 40 days - go to A, no loading, wait for 10 days
[also, timetables could use the function to differentiate "travel for 0 days" vs. "there is no time scheduled for this". currently you need to puzzle things together with random 1 day times]
Re: [patch] Wait for half load
Instead of an ever increasing number of options to the one order that we have now, I believe it would be beneficial if we can have several smaller orders that can be executed at the same time, eg
* a load order
* a wait order
* an unload order
* a goto order (or a leave order and an arrive order perhaps)
* a refit order
* a 'visit' order (eg waypoint or implicit station)
etc
That would make the order system more modular, hopefully giving more room to express what you mean.
* a load order
* a wait order
* an unload order
* a goto order (or a leave order and an arrive order perhaps)
* a refit order
* a 'visit' order (eg waypoint or implicit station)
etc
That would make the order system more modular, hopefully giving more room to express what you mean.
Being a retired OpenTTD developer does not mean I know what I am doing.
Re: [patch] Wait for half load
Well, I was thinking about some simple but effective solution. I realize that it covers only some cases, but having something between "full load" and "any load" is a lot already.Eddi wrote:i find the whole idea to add more order modifiers ill-conceived. because you only ever cover that narrow use case that you had in mind, and not the thousands of other use cases that other people have.
I think so too. Lately I had some free time and took a closer look on the code. These areas (handling of loading and orders) are quite complicated. I tried few approaches and finally came to something sensible. The solution seems working well. Watch the "Developement" sub-forum, I'll publish something soon.Eddi wrote:what should be done (imo) is, right before leaving a station, to evaluate the next order, including all conditional orders, and go back to the loading phase if the result is the same station as before.
Something like this?Alberth wrote:Instead of an ever increasing number of options to the one order that we have now, I believe it would be beneficial if we can have several smaller orders that can be executed at the same time, eg...
don't worry, be happy and checkout my patches
Re: [patch] Wait for half load
Quite, unfortunately, it got lost in the noiseadf88 wrote:Something like this?Alberth wrote:Instead of an ever increasing number of options to the one order that we have now, I believe it would be beneficial if we can have several smaller orders that can be executed at the same time, eg...
Being a retired OpenTTD developer does not mean I know what I am doing.
Re: [patch] Wait for half load
Something like this? http://www.tt-forums.net/viewtopic.php?p=936600#p936600Eddi wrote:what should be done (imo) is, right before leaving a station, to evaluate the next order, including all conditional orders, and go back to the loading phase if the result is the same station as before.
My patches: Day length (new concept), Conditional loading, Auto separation, Unload all adds Leave empty, Better statue placement (in trunk)
My abandoned patches: Speed limits for RVs, Day length (old concept)
My abandoned patches: Speed limits for RVs, Day length (old concept)
Re: [patch] Wait for half load
well, yes. and as you can see, i made the same argument there...
Who is online
Users browsing this forum: No registered users and 52 guests