OpenTTD

Tasklist

FS#5006 - Hide rail type flag

Attached to Project: OpenTTD
Opened by George (George) - Monday, 23 January 2012, 13:05 GMT
Type Feature Request
Category NewGRF
Status New
Assigned To No-one
Operating System All
Severity Medium
Priority Normal
Reported Version Version?
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 3
Private No

Details

To create trains, that can run on several electrified railway types, it is required to create the new "combo" rail type, that is available in menu.
It is required to have a flag to have "hidden" rail type for combo rail type.

[16:09:24] <George> RailTypes querstion. Is it possible to create a 2 electrified rail types and 3 types of trains, that can run on first, second and both rail types?
[16:10:19] <George> If I carte a new 3-d rail type, that has trains that can use first and second rail types, I also get it in the list.
[16:10:37] <George> But there should be only 2 rail types for trains
[16:11:17] <George> How to solve it?
[16:19:46] <George> For example, Eurostar can run on electrified and 3-d rail rayl types. How to code it?
[16:21:03] <andythenorth> compatibility with other labels?
[16:21:15] andythenorth hasn't tested
[16:21:28] <andythenorth> pikka has done it afaik in UKRS 2
[16:21:53] <George> Because a train can have only one rail type, there should be provided some new rail type "combo". It has to specify compatibility with both electrified rails and 3-d rail types
[16:22:46] <George> But in this case there would be a new rail type "combo", that is not intended
[16:23:17] <George> andythenorth: pikka has done it afaik in UKRS 2> How did he do it?
[16:28:35] <Eddi|zuHause> George: when the problem appeared for the voltage systems in the ToE set, the discussed solution was to allow a "combo" railtype, because especially on some platforms, the voltage systems might be switchable
[16:28:56] <Eddi|zuHause> George: just make it overly expensive
[16:30:53] <George> Eddi|zuHause: I came to the same, but this sounds not a good solution. Would it be possible to hide this combo type?
[16:31:26] <Eddi|zuHause> George: no, as soon as a vehicle uses it, it becomes available
This task depends upon

Comment by Ingo von Borstel (planetmaker) - Monday, 23 January 2012, 16:34 GMT
What's missing when using railtype properties 17 and 18?

As for vehicles, you need to make use of a railtype translation table. Use an action7 chain, testing availability of railtypes in sequence of your preference. NML offers a nice shorthand: http://newgrf-specs.tt-wiki.net/wiki/NML:Railtypetable
Comment by George (George) - Monday, 23 January 2012, 17:31 GMT
How can it help?

Introduction date (17)
Introduction required rail type list (18)

electrified rails and 3-d rail are available at the same time. The question is how to make a Eurostar train, that can run both on electrified rail and on 3-d rail. But other trains can only run on electrified rails or on 3-d rail.
As it was discussed, in this case we need a "combo" rail type, specify Eurostar as combo rails type, and make combo rail compatible with electrified and 3-d rail. Eurostar is coded as combo. The problem is that there is a combo rail type appears, and combo type depot has one vehicle - Eurostar, that is not intended. this combo rail type should be hidden.
Comment by andythenorth (andythenorth) - Tuesday, 27 December 2016, 14:05 GMT
Similar issue for NotRoadTypes. Not sure if it should be fixed though, maybe it's a useful constraint.
Comment by Peter Nelson (peter1138) - Sunday, 02 April 2017, 17:57 GMT
Attached patch adds a flag to hide a railtype from construction. Untested.
Comment by frosch (frosch) - Sunday, 02 April 2017, 21:07 GMT
It would be nice if the non-buildable types would not count towards the max-railtypes limit.
Comment by Peter Nelson (peter1138) - Tuesday, 04 April 2017, 13:29 GMT
Aww that sounds hard

Loading...