How To Add Selection For Multiple Formations For The Same Service?

Discussion in 'PC Editor Discussion' started by frownytob#1358, Oct 19, 2023.

  1. frownytob#1358

    frownytob#1358 Member

    Joined:
    Aug 9, 2022
    Messages:
    43
    Likes Received:
    6
    The timetable creation stream was good and covered a lot of stuff, but there was one thing that was missed off. How do we create a service with multiple formation options that can be selected in-game? There are multiple add-ons out there where you can select different locomotives to run the same service. I tried to do this myself but it only let me select one formation. How could I make a service that can be driven with the TGV Duplex or the ICE 3 for example? (Also can we get the first round of bug fixes please cuz right now this thing is hot garbage)
     

    Attached Files:

  2. mkraehe#6051

    mkraehe#6051 Well-Known Member

    Joined:
    Sep 14, 2022
    Messages:
    1,029
    Likes Received:
    2,277
    That's substitution, which is defined in the formation itself rather than in the service. I believe you can only substitute formations that have the exact same number of vehicles for one another, otherwise instructions like "uncouple the 5th vehicle from the back" wouldn't work anymore. That means that swapping out an ICE and TGV for each other most likely won't work.
     
  3. frownytob#1358

    frownytob#1358 Member

    Joined:
    Aug 9, 2022
    Messages:
    43
    Likes Received:
    6
    How do I define a substitution?
     
  4. mkraehe#6051

    mkraehe#6051 Well-Known Member

    Joined:
    Sep 14, 2022
    Messages:
    1,029
    Likes Received:
    2,277
    It's set up in the formation data asset (not inside the timetable itself -- for some reason the word formation is used in two different places to mean two different things).

    You can look at some of DTG's formations to understand what's happening here. They're in their own folder (or sometimes in the "Timetables" folder) for each route. Here's a formation for a DB class 143 + 3 Dostos as an example:

    upload_2023-10-20_6-36-59.png

    As you can see, this 143 has a 50% chance to be replaced by any other DB Regio locomotive with at least 4 powered axles and 75 mph top speed... which is why we get the class 110 in Dresden even though it doesn't work with the cab car.

    You can look at the Rail Vehicle Definitions for the trains you want to use to figure out which data to put in here to make the game use only the trains you want. In my example, I just looked at the 110 and discovered it has a different "Multiple Working Standard" than the 143 and 146, so if I add that to the formation as a requirement I can probably get rid of the 110s.

    You're going to need to look at DTG's existing content and experiment with this to find out what you can and can't do, there's no tutorial for this yet.
     
    Last edited: Oct 20, 2023
    • Like Like x 1

Share This Page