Distant-join-stations (in trunk)

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

Splatman
Engineer
Engineer
Posts: 31
Joined: 31 Jul 2005 16:08
Location: United Kingdom

Re: Distant-join-stations (rev12684)

Post by Splatman »

Any chance of getting a patch against the latest trunk?
Tiberius
Engineer
Engineer
Posts: 86
Joined: 17 Sep 2004 03:15

Re: Distant-join-stations (rev12684)

Post by Tiberius »

Here it goes, updated to latest GUI framework ... :D

(2008-07-24): Now it closes station-selecting window after you selected a station.

EDIT: change to svn-diff style (actual code not altered at all)
Last edited by Tiberius on 24 Jul 2008 06:29, edited 2 times in total.
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 8)
User avatar
Thief^
Route Supervisor
Route Supervisor
Posts: 469
Joined: 10 Oct 2004 00:11

Re: Distant-join-stations (rev13374)

Post by Thief^ »

It would be much easier to apply all these updated patches you're posting if you were using svn diff.
Melt with the Shadows,
Embrace your destiny...
Tiberius
Engineer
Engineer
Posts: 86
Joined: 17 Sep 2004 03:15

Re: Distant-join-stations (rev13374)

Post by Tiberius »

Fix the bug that prevents AI players to build a station.
Thanks makbeth, author of RCPP, for kindly providing the fix :D
Attachments
distant-join_r13810.patch
(24.19 KiB) Downloaded 178 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 8)
PhilSophus
Chairman
Chairman
Posts: 776
Joined: 20 Jan 2007 12:08
Location: Germany

Re: Distant-join-stations (rev13374)

Post by PhilSophus »

Little update to current trunk.
Attachments
distant-join_r14121.patch
(24.44 KiB) Downloaded 251 times
"The bigger the island of our knowledge, the longer the shore of our ignorance" - John A. Wheeler, Physicist, 1911-2008
MJS
Director
Director
Posts: 540
Joined: 28 Jul 2005 09:31

Re: Distant-join-stations (rev13374)

Post by MJS »

Very good - maybe the topic title might be changed as well?
User avatar
nulio
Traffic Manager
Traffic Manager
Posts: 157
Joined: 23 Aug 2007 21:20
Location: Portugal

Re: Distant-join-stations (r14121)

Post by nulio »

Wow this is really great.

I really don't know how all this stuff works but I'll ask anyway. How long till this stuff is included in a stable release? (I would extend the question to copy&paste also)
PhilSophus
Chairman
Chairman
Posts: 776
Joined: 20 Jan 2007 12:08
Location: Germany

Re: Distant-join-stations (r14121)

Post by PhilSophus »

nulio wrote:I really don't know how all this stuff works but I'll ask anyway. How long till this stuff is included in a stable release?
That's indeed a good question. The devs had some objections, but the patch was changed according to their comments back in April (it was in fact me, who did it). Since quite some revisions have gone by since then, I don't know in how good shape the code still is.

@Frostregen, I just noticed this was never posted to flyspray. Would you mind if I posted it there (referencing you as the original author of course) or do it yourself? However, I would recheck the code before (I probably don't get at it before middle of the week, though).
"The bigger the island of our knowledge, the longer the shore of our ignorance" - John A. Wheeler, Physicist, 1911-2008
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Distant-join-stations (r14121)

Post by Eddi »

was the issue with the race condition when stations are changed by another client ever solved? (send station IDs instead of list indices with the build command?)
PhilSophus
Chairman
Chairman
Posts: 776
Joined: 20 Jan 2007 12:08
Location: Germany

Re: Distant-join-stations (r14121)

Post by PhilSophus »

Eddi wrote:was the issue with the race condition when stations are changed by another client ever solved? (send station IDs instead of list indices with the build command?)
Yes, that was what I was referring to in my previous post (see http://www.tt-forums.net/viewtopic.php?p=658205#p658205). Although, it was not in April but even back in January. In April I did some changes related to the adjacent stations setting.
"The bigger the island of our knowledge, the longer the shore of our ignorance" - John A. Wheeler, Physicist, 1911-2008
Frostregen
Transport Coordinator
Transport Coordinator
Posts: 340
Joined: 06 Feb 2006 23:58

Re: Distant-join-stations (r14121)

Post by Frostregen »

PhilSophus wrote:@Frostregen, I just noticed this was never posted to flyspray. Would you mind if I posted it there (referencing you as the original author of course) or do it yourself? However, I would recheck the code before (I probably don't get at it before middle of the week, though).
Thx for asking,
It is ok, just do it ;)

Greetings,
Frostregen
MJS
Director
Director
Posts: 540
Joined: 28 Jul 2005 09:31

Re: Distant-join-stations (r14121)

Post by MJS »

Sounds like a good idea! I can't help but repeat: this was included in Patch a really long time ago, and hampers playability of OTTD by people who have switched recently. Plus, it can't be such a bad idea, can it?

Only thing is, it might be better connected with 'show catchment area' (on right click?), which is very useful; and there should be a way to highlight all stations (esp. bus stops) belonging together.
PhilSophus
Chairman
Chairman
Posts: 776
Joined: 20 Jan 2007 12:08
Location: Germany

Re: Distant-join-stations (r14121)

Post by PhilSophus »

MJS wrote:Only thing is, it might be better connected with 'show catchment area' (on right click?), which is very useful; and there should be a way to highlight all stations (esp. bus stops) belonging together.
I agree that these are nice features to have. However, I disagree that those should be merged into this patch, as these are completely distinct features and a patch should only implement one thing at a time.


EDIT: I added a patch setting to disable the feature and posted the patch to flyspray as FS#2291. Now let's all pray to the gods of the OpenTTD Olympus to accept it for trunk :wink:
"The bigger the island of our knowledge, the longer the shore of our ignorance" - John A. Wheeler, Physicist, 1911-2008
User avatar
Wolf01
Tycoon
Tycoon
Posts: 2016
Joined: 24 Apr 2004 10:43
Location: Venezia - Italia
Contact:

Re: Distant-join-stations (r14121)

Post by Wolf01 »

PhilSophus wrote:@Frostregen, I just noticed this was never posted to flyspray. Would you mind if I posted it there (referencing you as the original author of course) or do it yourself? However, I would recheck the code before (I probably don't get at it before middle of the week, though).
Hey, don't forget about me :D
Frostregen's first post wrote:Credits to Wolf01 for the idea.
PhilSophus
Chairman
Chairman
Posts: 776
Joined: 20 Jan 2007 12:08
Location: Germany

Re: Distant-join-stations (r14121)

Post by PhilSophus »

Wolf01 wrote: Hey, don't forget about me :D
Sorry for having overlooked you (I only checked only the authorship of posted patches not the full five pages of posts). Honor to whom honor is due :wink:, so I added it to the flyspray task.

Anyone else, I forgot?
"The bigger the island of our knowledge, the longer the shore of our ignorance" - John A. Wheeler, Physicist, 1911-2008
TrueTenacity
Traffic Manager
Traffic Manager
Posts: 133
Joined: 28 Feb 2006 15:29
Location: Johannesburg, South Africa

Re: Distant-join-stations (r14121)

Post by TrueTenacity »

With this patch do the station names change to be one big station covering the whole area or do they retain their identities and just share a common pool of pax / cargo
I'm not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself?
PhilSophus
Chairman
Chairman
Posts: 776
Joined: 20 Jan 2007 12:08
Location: Germany

Re: Distant-join-stations (r14121)

Post by PhilSophus »

Neither, as far as I understand your question.

This patch just allows you to build disconnected station tiles, so all of them are the same station from the moment of building them in the same way two neighboring tracks of a station are the same station: One collection of cargo and only one station sign, which can at times be confusing because you don't know which station a bus stop belongs to at first sight (i.e. before clicking it).


Just a notice: I update the patch from time to time in the flyspray task. So, anyone looking for a newer one might have a look there (or set a watch on this task).
"The bigger the island of our knowledge, the longer the shore of our ignorance" - John A. Wheeler, Physicist, 1911-2008
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Distant-join-stations (r14121)

Post by planetmaker »

TrueTenacity wrote:With this patch do the station names change to be one big station covering the whole area or do they retain their identities and just share a common pool of pax / cargo
You cannot build stations larger than you could do anyway. This patch only provides simple means to build a station which has tiles which are not adjacent.
dasy2k1
Transport Coordinator
Transport Coordinator
Posts: 344
Joined: 20 Sep 2006 23:43
Location: UK
Contact:

Re: Distant-join-stations (r14121)

Post by dasy2k1 »

i wish this was added to trunk. i havent got it at the moment as im using clestarr's cargodest at the moment
and im not even sure what svn rev it uses,

im allways budling a station, then building a chain of bussops so i can get one where i want then deleting the gap filling ones
this patch means that you dont have to do this!
Ruudjah
Engineer
Engineer
Posts: 46
Joined: 12 Nov 2007 11:09

Re: Distant-join-stations (r14121)

Post by Ruudjah »

Awesome patch. This makes passengers services on competition servers a whole lot cheaper. What happens right now:

-You start to build a station at town A and town B
-When you have some income, you extend the station so that the catchment area is bigger
-This can cuase problems: trees removed decrease town rating. Sometimes town are really evil and you can forget about station extension.

With the patch:
-building a station with a good catchment area is cheap, and quicker
-you dont loose any rating (or hardly any)
-It allows you to build bigger stations at start since you have more rating to 'waste'.

My question: Is this patch usable on the client only? In other words, does the server need this patch also for it to work?
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 14 guests