New Railtype Label Scheme

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

McZapkie
Tycoon
Tycoon
Posts: 1199
Joined: 18 Jan 2014 18:10

Re: New Railtype Label Scheme

Post by McZapkie »

I'm little bit confused with proper naming of track label. How should be properly named tracks with 25 kV catenary and speed limits 160 and 300 km/h?
SDAA and SEAA (there are also track lower than 160km/h in my newgrf, but not electrified) ?
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, preindustrial houses, wired, ECS industry extension, V4 CEE train set.
Addicted to freeciv longturn.

User avatar
Erato
Route Supervisor
Route Supervisor
Posts: 487
Joined: 25 May 2015 09:09
Location: The Netherlands

Re: New Railtype Label Scheme

Post by Erato »

McZapkie wrote:
29 Sep 2020 10:08
I'm little bit confused with proper naming of track label. How should be properly named tracks with 25 kV catenary and speed limits 160 and 300 km/h?
SDAA and SEAA (there are also track lower than 160km/h in my newgrf, but not electrified) ?
Probably, yes. Make sure to include `SAAA` in the `compatible_railtype_list`, though.
No pics no clicks. Seriously. Also stop using Modern Maglev Trains. Use RIMS instead.
ImageImageImageImageImageImage

McZapkie
Tycoon
Tycoon
Posts: 1199
Joined: 18 Jan 2014 18:10

Re: New Railtype Label Scheme

Post by McZapkie »

Assume that there are 3 different voltage systems: SAAA (25kV AC), SAAa (15kV AC), SAAD (3 kV DC) and additionally multisystem track - just generic ELRL.
I want to allow 25 KV locotomove to be powered by 25kV or multisystem track, etc, while multisystem locomotives can go everywhere.

How to correctly define it?
powered_railtype_list in track nml file should have only native catenary, or both native and multisystem, while locomotive track_type is defined as 25kV only,
or alternative multisystem should be defined in vehicle section?
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, preindustrial houses, wired, ECS industry extension, V4 CEE train set.
Addicted to freeciv longturn.

Transportman
Tycoon
Tycoon
Posts: 2746
Joined: 22 Feb 2011 18:34

Re: New Railtype Label Scheme

Post by Transportman »

McZapkie wrote:
30 Sep 2020 13:42
Assume that there are 3 different voltage systems: SAAA (25kV AC), SAAa (15kV AC), SAAD (3 kV DC) and additionally multisystem track - just generic ELRL.
I want to allow 25 KV locotomove to be powered by 25kV or multisystem track, etc, while multisystem locomotives can go everywhere.

How to correctly define it?
powered_railtype_list in track nml file should have only native catenary, or both native and multisystem, while locomotive track_type is defined as 25kV only,
or alternative multisystem should be defined in vehicle section?
SAAA should have ELRL in its powered_railtype_list, SAAa+SAAD+ELRL+RAIL in its compatible_railtype_list, and RAIL should have SAAA+SAAa+SAAD+ELRL in both compatible_ and powered_railtype_list, and ELRL should have SAAA+SAAa+SAAD in both compatible_ and powered_railtype_list and additionally RAIL in compatible_railtype_list. Then on the locomotive you set tracktype to SAAA for 25kV AC locs and to ELRL for multisystem locomotives and RAIL for wagons.
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML

McZapkie
Tycoon
Tycoon
Posts: 1199
Joined: 18 Jan 2014 18:10

Re: New Railtype Label Scheme

Post by McZapkie »

Thanks for reply. But why unelectrified RAIL should have catenary tracks in powered railtype list?
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, preindustrial houses, wired, ECS industry extension, V4 CEE train set.
Addicted to freeciv longturn.

User avatar
Erato
Route Supervisor
Route Supervisor
Posts: 487
Joined: 25 May 2015 09:09
Location: The Netherlands

Re: New Railtype Label Scheme

Post by Erato »

McZapkie wrote:
03 Oct 2020 10:42
Thanks for reply. But why unelectrified RAIL should have catenary tracks in powered railtype list?
The powered railtype list indicates what tracks a train with railtype RAIL can run on. RAIL vehicles can run on catenary tracks, so they should be in the powered railtype list.
No pics no clicks. Seriously. Also stop using Modern Maglev Trains. Use RIMS instead.
ImageImageImageImageImageImage

Transportman
Tycoon
Tycoon
Posts: 2746
Joined: 22 Feb 2011 18:34

Re: New Railtype Label Scheme

Post by Transportman »

McZapkie wrote:
03 Oct 2020 10:42
Thanks for reply. But why unelectrified RAIL should have catenary tracks in powered railtype list?
I assumed you want vehicles that run on tracks without catenary to also be able to run on tracks with catenary. By default RAIL has only ELRL in its lists, but as you are introducing additional tracks, you also need to update RAIL to also allow running on those tracks if that is needed.
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML

McZapkie
Tycoon
Tycoon
Posts: 1199
Joined: 18 Jan 2014 18:10

Re: New Railtype Label Scheme

Post by McZapkie »

Oh, I see, it is just to ensure that steam/diesel can run on electrified tracks.

Transportman
Tycoon
Tycoon
Posts: 2746
Joined: 22 Feb 2011 18:34

Re: New Railtype Label Scheme

Post by Transportman »

McZapkie wrote:
03 Oct 2020 19:58
Oh, I see, it is just to ensure that steam/diesel can run on electrified tracks.
Steam, diesel, but also wagons, to ensure they can run on your tracks. That is also why you add RAIL to the compatible_railtype_list of your tracks, so that engines can be push/pulled on those tracks. Because you are also reusing ELRL as a multisystem track that can also run on your tracks, you need to add RAIL explicitly in the compatible_railtype_list of ELRL so that it behaves as default OpenTTD again.
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML

Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 3 guests