Page 4 of 8

Re: Distant-join-stations (rev12684)

Posted: 15 Apr 2008 16:50
by PhilSophus
@Trond: And now try this with an unpatched trunk version. See? It behaves the same.
However, you might argue that with distant-join it should ask which of the two stations to join instead of giving an error message.

Re: Distant-join-stations (rev12684)

Posted: 15 Apr 2008 16:57
by Trond
Thats what I ment too.. I think it should be like that, but I agree it could pop up a message asking wich you wanted to join, instead it behaves like it does without the patch. It's probably possible to make it behave like that, but not for me I'm afraid.

However, if you need 1 more tile wide station you can build on left or right of one of the existing ones... As I mentioned in a very bad wording in my previous post: I have never needed to make an existing station use a tile between two others, so the problem never been a problem for me, and it still isnt really ;)

However, the name of the patch is DISTANT join stations, and two stations in three tiles... You can't put a joint one inbetween the two and claim it to be distant ;)

Re: Distant-join-stations (rev12684)

Posted: 15 Apr 2008 17:13
by PhilSophus
Trond wrote:Thats what I ment too.. I think it should be like that, but I agree it could pop up a message asking wich you wanted to join, instead it behaves like it does without the patch. It's probably possible to make it behave like that, but not for me I'm afraid.
I might have a look at this, but probably not today.
Trond wrote:However, if you need 1 more tile wide station you can build on left or right of one of the existing ones... As I mentioned in a very bad wording in my previous post: I have never needed to make an existing station use a tile between two others, so the problem never been a problem for me, and it still isnt really ;)
For me not, either. But to build ABC, why should you be able to build A, B, C but not A, C, B to reach this layout (for whatever reason).
Trond wrote:However, the name of the patch is DISTANT join stations, and two stations in three tiles... You can't put a joint one inbetween the two and claim it to be distant ;)
On the other hand, the patch allows you to select the station to join, which would be quite useful in this case. So, maybe rename it to "Select Join Station" which would match both cases :P

Re: Distant-join-stations (rev12684)

Posted: 15 Apr 2008 19:48
by Ammler
One of the missing TTDPatch features is possibilty to build stations like that: http://www.tt-forums.net/viewtopic.php?p=681467#p681467

Almost impossible with OTTD atm.

Greets
Ammler

Re: Distant-join-stations (rev12684)

Posted: 15 Apr 2008 20:39
by XeryusTC
Ammler wrote:One of the missing TTDPatch features is possibilty to build stations like that: http://www.tt-forums.net/viewtopic.php?p=681467#p681467

Almost impossible with OTTD atm.

Greets
Ammler
It's not that hard, you just have to know how to remove station tiles ;).

Re: Distant-join-stations (rev12684)

Posted: 15 Apr 2008 22:41
by Ammler
XeryusTC wrote:
Ammler wrote: Almost impossible with OTTD atm.
It's not that hard, you just have to know how to remove station tiles ;).
Thats the most difficult, because you can't remove a tile and readd something else, because you will have 2 different adjacent stations around. That would need TTDPatch feature, which isn't in Trunk and not in that patch.

Just tried, its impossible to have 2 docks adjacent with rail. I would be happy to see how you do it. ;-)
Image (the rail belongs half to dock and other half to the other dock)

Re: Distant-join-stations (rev12684)

Posted: 16 Apr 2008 00:38
by DaleStan
Those two docks look pretty adjacent to me.

Re: Distant-join-stations (rev12684)

Posted: 16 Apr 2008 00:52
by Yexo
DaleStan wrote:Those two docks look pretty adjacent to me.
The problem was to create a rail station that was seperated from both docks.

Re: Distant-join-stations (rev12684)

Posted: 16 Apr 2008 01:44
by vwspeedracer
Never tried it before... Is this what you're talking about?

Re: Distant-join-stations (rev12684)

Posted: 16 Apr 2008 06:23
by Trond
PhilSophus wrote:I might have a look at this, but probably not today.
That would be really nice PhilSophus, I'm guessing you just have to add some sort of hook when the 'error' message pops up, so maybe not such a hard task for someone who can actually code c++ :) Good luck with it.

Re: Distant-join-stations (rev12684)

Posted: 16 Apr 2008 06:32
by Roujin
That would be too late, Trond ;) The right place to look would be CmdPlaceStation or something similar.

edit: it's actually CmdBuildRailroadStation in station_cmd.cpp

Re: Distant-join-stations (rev12684)

Posted: 16 Apr 2008 06:39
by Trond
Not to hard to figure out for someone who can actually code c++ then :P So I was sortoff right, hehe

Re: Distant-join-stations (rev12684)

Posted: 16 Apr 2008 10:55
by Ammler
Maybe the screen with the railstation wasn't clear enough. (the station was split into 2, 1 per dock, check the symbols in the station names)

An other screen with roadstops should be clear now:
Image


Greets
Ammler

Re: Distant-join-stations (rev12684)

Posted: 19 Apr 2008 17:07
by MrMox
An updated version of this patch to r12791:
distant_join_stations_r12791.patch
(24.02 KiB) Downloaded 145 times

Re: Distant-join-stations (rev12684)

Posted: 19 Apr 2008 20:43
by PhilSophus
As promised, a patch version with improved adjacent station handling. It should now behave as follows (if it doesn't it's my mistake :wink:):

If adjacent stations patch setting is off the newly built station will always join adjacent stations and if there are multiple ones it will give an error message. Of course, you may still join distant stations with CTRL if there are no adjacent stations.

With adjacent stations patch setting on it will behave as follows:
  • Without CTRL pressed: As without distant join (1 adjacent station: join it, more adjacent stations: error)
  • With CTRL pressed:
    • Exactly 1 adjacent station and no other station nearby: Build separate station
    • Otherwise: Show selector window
I tested only very shortly, so please report bugs here!


@Frostregen: Do you mind if I suggest this patch version for the Community Integrated Version Build 1?

Re: Distant-join-stations (rev12684)

Posted: 19 Apr 2008 21:14
by Ammler
Thanks PhilSophus and Frostregen

Just compiled and it works. :-)
Now, this patch is really helpful for eyecandy games.

Greets
Ammler

Re: Distant-join-stations (rev12684)

Posted: 20 Apr 2008 01:55
by Frostregen
@Philosophus: Thanks for asking ;)
Just use it for anything you want.
This patch is maintained by the community anyway,
(which i like)
so it is perfect for beeing integrated into a community pack :)

Greetings,
Frostregen

Re: Distant-join-stations (rev12684)

Posted: 07 May 2008 04:50
by Trond
Any chance for an update to latest trunk?

Re: Distant-join-stations (rev12684)

Posted: 10 May 2008 14:50
by planetmaker
Trond wrote:Any chance for an update to latest trunk?
I gave it a try (first ottd code modification for me, first c code for at least 5 years) in order to check how far I get as a noob to patching. The whole day work succeeded, here is a patch to r13031, probably coding style needs a cleanup and a look through by a more competent person certainly will help. Comments and critizism welcome.

Note: it appears that tile info doesn't work, but it didn't work for plain trunk either for me.

Re: Distant-join-stations (rev12684)

Posted: 10 May 2008 18:50
by MJS
Tough work, but compliments! (For the fact that you did it - I haven't been able to check the result yet.)