Patch: middle stop
Moderator: OpenTTD Developers
Patch: middle stop
Update for latest trunk, original from:
http://www.tt-forums.net/viewtopic.php? ... op#p685930
Thanks, Eddi!
This patch will make trains shorter than the station stop at the middle of the platform.
EDIT: change to svn-diff style, the code itself isn't altered.
http://www.tt-forums.net/viewtopic.php? ... op#p685930
Thanks, Eddi!
This patch will make trains shorter than the station stop at the middle of the platform.
EDIT: change to svn-diff style, the code itself isn't altered.
- Attachments
-
- middlestop_r13374.patch
- (1.03 KiB) Downloaded 210 times
I may implement/fix/tweak/eat/ditch it soon (or in distant future, if at all, so don't hold your breath).
If anyone want to be the one please implement it for us all
If anyone want to be the one please implement it for us all

Re: Patch: middle stop
update to this nice eyecandy patch 
edit: updated againts 2435revisions

edit: updated againts 2435revisions

Last edited by pavel1269 on 27 Mar 2009 16:46, edited 1 time in total.
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: middle stop
i don't see why this needed an update. the original patch still applies fine here.
anyway, part of the intention of the initial patch was to NOT change the indentation level of the following lines. it only adds conflict potential with no benefit.
anyway, part of the intention of the initial patch was to NOT change the indentation level of the following lines. it only adds conflict potential with no benefit.
Re: Patch: middle stop
can you say that again? dont understand you :-/Eddi wrote: anyway, part of the intention of the initial patch was to NOT change the indentation level of the following lines. it only adds conflict potential with no benefit.
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)
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Patch: middle stop
What Eddi means (and he's somewhat right with that) is the following kind of differences between the patch files
You changed (probably following coding style), the indentation level of the lines. If you don't change them, the diff will stay smaller and it is less likely to break.
Code: Select all
- if (x < stop) {
- uint16 spd;
+ if (x < stop) {
+ uint16 spd;
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: Patch: middle stop
wow, i thought, that this is a very small problem .... better to have it perfectly working ... no?
its just one " " ....

its just one " " ....
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: middle stop
the problem is not that it's a " ", the problem is that the line appears in the patch. so if any of the lines which appear in the patch are changed in trunk, a conflict will occur.
ergo, the fewer lines appear in the patch, the lower the chance for a conflict. what you did was add lines to the patch without providing new functionality, so the change is bad. there were only three conflicting changes in the history of this patch (my first version is from r6982, that is almost 9000 revisions)
ergo, the fewer lines appear in the patch, the lower the chance for a conflict. what you did was add lines to the patch without providing new functionality, so the change is bad. there were only three conflicting changes in the history of this patch (my first version is from r6982, that is almost 9000 revisions)
Re: Patch: middle stop
updated again, not without those unneccessary " "
also if you play with reversing only at line ends, train will now reverse in single-entrance station just fine, no more going to end and there turning
also if you play with reversing only at line ends, train will now reverse in single-entrance station just fine, no more going to end and there turning

- Attachments
-
- train_middlestop_r15860.patch
- (4.01 KiB) Downloaded 159 times
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: middle stop
if you really want to pick this up and develop it into a real feature:
- allow for each order to select wether the train should stop at the beginning, middle or end of platform. plus a setting which should be default
- adapt "realistic acceleration" to slow down towards the real stopping point, not the end of the station
Re: Patch: middle stop
I liked this patch when I was using Tibb's Patchpack. Was nice, as it made short trains more efficient rather than that long haul to the end of the station and back.
Who is John Galt?
Re: Patch: middle stop
I Agree, thoose things would be really nice!Eddi wrote:if you really want to pick this up and develop it into a real feature:
- allow for each order to select wether the train should stop at the beginning, middle or end of platform. plus a setting which should be default
- adapt "realistic acceleration" to slow down towards the real stopping point, not the end of the station
Re: Patch: middle stop
I will start as soon as i would have free time, but first i want to complete my daylength patch ... forget one last thing there 

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)
-
- Tycoon
- Posts: 2148
- Joined: 27 Jul 2007 15:45
- Location: Sunny Wales, Boyo!
- Contact:
Re: Patch: middle stop
CIA-9 wrote: OpenTTD: rubidium * r16037 /trunk/src/ (14 files in 4 dirs): -Feature: allow (per order) to let a train stop at the near end, middle or far end of a platform from the point of view of the driver of the train that enters the station.

Re: Patch: middle stop
AFAIK it wasn't based on this patch. Either way, the functionality provided by it (and then some) is there 

Re: Patch: middle stop
Enlighten me now; what's the benefit of this patch during gameplay? I'm sure it must be helpful to be included in the trunk.... 

Re: Patch: middle stop
if you dont se income, you can ignore it ...
but if you have some main station, huge one, but there is still going some local traffic, which is usually short, it take soo long till it reach end so you can use here begin (near end) to improve it, or center as eyecandy
it helps but not that much 

but if you have some main station, huge one, but there is still going some local traffic, which is usually short, it take soo long till it reach end so you can use here begin (near end) to improve it, or center as eyecandy


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)
-
- Chief Executive
- Posts: 658
- Joined: 11 Nov 2007 12:06
- Contact:
Re: Patch: middle stop(in trunk)
HI all this is in trunk just to say
you can pick were about you want the train to stop
well done for getting it there
you can pick were about you want the train to stop

well done for getting it there
For Community Integrated Version http://code.google.com/p/civopenttd/
Who is online
Users browsing this forum: No registered users and 8 guests