[Patch] Catenary on third rail-type

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

maquinista
Tycoon
Tycoon
Posts: 1828
Joined: 10 Jul 2006 00:43
Location: Spain

Re: [Patch] Catenary on third rail-type

Post by maquinista »

OpenTTD has advantages and disadvantages over TTDPatch. This is one of the disadvantages.

Maybe railtypes could fix this in the future.
Sorry if my english is too poor, I want learn it, but it isn't too easy.[/list][/size]
User avatar
stevenh
TTDPatch Developer
TTDPatch Developer
Posts: 759
Joined: 24 Jul 2005 05:07
Location: Canberra, Australia
Contact:

Re: [Patch] Catenary on third rail-type

Post by stevenh »

We could go on forever about this.
Let's just hope that once railtypes is done that it supports the misc grf flags (like this one) instead of rewriting the rulebooks.
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1729
Joined: 30 Mar 2005 09:43

Re: [Patch] Catenary on third rail-type

Post by peter1138 »

Well no it won't, because the 3rd rail type will always only ever be the 3rd rail type, i.e. monorail.
He's like, some kind of OpenTTD developer.
dandan
Route Supervisor
Route Supervisor
Posts: 414
Joined: 17 Feb 2008 23:01

Re: [Patch] Catenary on third rail-type

Post by dandan »

Here is a modified version of this patch that will make catenary appear over monorail tracks instead of maglev. It will be useful for the new version of the Japanese Train Set, where Shinkansen tracks will replace monorail instead of maglev.

(As has been discussed above, the inability to choose between monorail and maglev is the major drawback of this patch and the whole "catenary over third rail type" feature as it is at the moment. Still, for us Japan Set players (and possibly some others), this is better than nothing.)
Attachments
CatenaryOverMonorail.diff
(598 Bytes) Downloaded 128 times
User avatar
lawton27
Tycoon
Tycoon
Posts: 1418
Joined: 03 Aug 2009 14:29
Location: Manchester

Re: [Patch] Catenary on third rail-type

Post by lawton27 »

You don't suppose someone could upload a compiled build of this patch in a .zip for me please?
dandan
Route Supervisor
Route Supervisor
Posts: 414
Joined: 17 Feb 2008 23:01

Re: [Patch] Catenary on third rail-type

Post by dandan »

Maybe someone will, but I can't unfortunately, unless you want it for Mac OS X.

There might be more Japan Set players though who would appreciate a Windows build. Not sure if anyone on our team can compile for Windows. (Steven?)
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: [Patch] Catenary on third rail-type

Post by planetmaker »

lawton27 wrote:You don't suppose someone could upload a compiled build of this patch in a .zip for me please?
I suppose one could. Enjoy.
Attachments
openttd-r17902M-catanery.zip
OpenTTD r17902 with catanery for 3rd rail
(3.91 MiB) Downloaded 126 times
User avatar
lawton27
Tycoon
Tycoon
Posts: 1418
Joined: 03 Aug 2009 14:29
Location: Manchester

Re: [Patch] Catenary on third rail-type

Post by lawton27 »

planetmaker wrote:
lawton27 wrote:You don't suppose someone could upload a compiled build of this patch in a .zip for me please?
I suppose one could. Enjoy.
Thanks a bunch. :bow:
You should put this on the first post so that its easily accessible.
User avatar
SwissFan91
Tycoon
Tycoon
Posts: 2395
Joined: 08 Feb 2009 18:36
Location: Alberta, Canada

Re: [Patch] Catenary on third rail-type

Post by SwissFan91 »

This is a bump, GRANTED. But I have downloaded that .zip file, and its all working dandy, but I cannot change the language. Any support on that would be great :)
Total Alpine Replacement Set: Industry, Town, Objects
User avatar
lawton27
Tycoon
Tycoon
Posts: 1418
Joined: 03 Aug 2009 14:29
Location: Manchester

Re: [Patch] Catenary on third rail-type

Post by lawton27 »

jake.grimshaw wrote:This is a bump, GRANTED. But I have downloaded that .zip file, and its all working dandy, but I cannot change the language. Any support on that would be great :)
Have you copied over language files from another version of OTTD, in not sure if that contains them.
User avatar
SwissFan91
Tycoon
Tycoon
Posts: 2395
Joined: 08 Feb 2009 18:36
Location: Alberta, Canada

Re: [Patch] Catenary on third rail-type

Post by SwissFan91 »

AFAIK, I have done it all correctly. See attached.
Attachments
Support.png
Support.png (16.22 KiB) Viewed 2480 times
Support2.png
Total Alpine Replacement Set: Industry, Town, Objects
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: [Patch] Catenary on third rail-type

Post by Rubidium »

Hmm.. only Pig Latin works, which has been removed ages ago? Looks like you're actually running an old binary and not the recompiled one. Anyhow, Pig Latin shouldn't be there at all; something has really messed up your install.
User avatar
SwissFan91
Tycoon
Tycoon
Posts: 2395
Joined: 08 Feb 2009 18:36
Location: Alberta, Canada

Re: [Patch] Catenary on third rail-type

Post by SwissFan91 »

I only used the .zip file above. Should I just try the whole thing again ?

[EDIT] I tried it again, and noticed that it says "No valid language packs" when trying to run the executable, even though the /lang folder is full ?
Total Alpine Replacement Set: Industry, Town, Objects
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: [Patch] Catenary on third rail-type

Post by Rubidium »

Language packs not compiled for the version of OpenTTD you're running are automatically deemed invalid if one of the strings in English is different. This includes adding and removing strings.
User avatar
SwissFan91
Tycoon
Tycoon
Posts: 2395
Joined: 08 Feb 2009 18:36
Location: Alberta, Canada

Re: [Patch] Catenary on third rail-type

Post by SwissFan91 »

Is this likely to be the problem then? Any ideas how to get around this, or shall I just get used to Pig Latin ?
Total Alpine Replacement Set: Industry, Town, Objects
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: [Patch] Catenary on third rail-type

Post by Gremnon »

AFAIK just compiling it yourself should fix it... It applies cleanly to trunk, CargoDist... pretty much anything.

I'm going to suggest this mainly because otherwise I'll forget it.
Can this be turned into a toggle-switch option? So people who use the Japan (and Swiss too, jake.grimshaw tells me) sets can have their Catenary, but when it's not wanted, it can just be disabled.
User avatar
SwissFan91
Tycoon
Tycoon
Posts: 2395
Joined: 08 Feb 2009 18:36
Location: Alberta, Canada

Re: [Patch] Catenary on third rail-type

Post by SwissFan91 »

I seemed to have fixed the language problem, although the Catenary isn't actually appearing :x But yes, I would like to promote Gremnon's idea :)
Total Alpine Replacement Set: Industry, Town, Objects
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Ahrefs [Bot] and 9 guests