Gameplay Pc Editor - Correctly Setting Up For Missing Dlc.

Discussion in 'PC Editor Discussion' started by greggryan2, Oct 1, 2023.

  1. greggryan2

    greggryan2 Active Member

    Joined:
    Dec 21, 2018
    Messages:
    420
    Likes Received:
    179
    Hi,

    I was just wondering and understand there will probably be a tutorial on this. Is there anything specific we need to be doing when making scenarios to ensure that if someone doesn't have Class 158 for instance, and the scenario uses Class 158 for AI that the player won't get a crash?

    I know layers are mainly used for this but for us when we simulate, we seem to only get one master data track and not a data track for each layer that the timetable has. Simulating the TT is a good way for me to ensure the timetable part of my scenario works so I feel this is a good question to ask :).
     
  2. DTG Matt

    DTG Matt Executive Producer Staff Member

    Joined:
    Nov 17, 2016
    Messages:
    3,424
    Likes Received:
    19,428
    When you simulate you should get a data track per layer, if you're not then something isn't right.

    You protect against the missing content by ensuring the layer requirements are set up. Note that you must have that in order to simulate it - you can't make layers for content you don't have, without the train it can't simulate it - and that might be why you're not seeing the data track?
     
  3. 2martens

    2martens Well-Known Member

    Joined:
    Oct 6, 2020
    Messages:
    389
    Likes Received:
    487
    How to exactly set up the requirements? As in: what String must be put in the field for the respective DLC? I tried using the name of the plugins as visible in the plugins window but does not seem to be correct and it won't simulate the layers even though I obviously have the rolling stock.
     
  4. DTG Matt

    DTG Matt Executive Producer Staff Member

    Joined:
    Nov 17, 2016
    Messages:
    3,424
    Likes Received:
    19,428
    Just the name of the plugin is fine.

    upload_2023-10-2_17-8-48.png

    This example from one of the layers on the ECML timetable.

    Note: you dont have to set the data track, that will happen automatically once it's generated.

    Dont set the master layer name up, that wont work the way you expect - trust me, i've never actually found a good reason to use that so far.

    Matt.
     
  5. greggryan2

    greggryan2 Active Member

    Joined:
    Dec 21, 2018
    Messages:
    420
    Likes Received:
    179
    Hi Matt,

    So I believe I set up the layer correctly but the simulate cmd used to do the data track just never seemed to create the data track for the layer. Not sure if this might be worth testing DTG side just to see if there anything not quite right. Also, at some stage I will try again to see if there was something I missed but that screenshot you have done will help a lot thank you.

    Also, is there anychance that as I am doing a scenario that maybe that has anything to do with it.
     
  6. josh_the_tech

    josh_the_tech Active Member

    Joined:
    Dec 9, 2016
    Messages:
    256
    Likes Received:
    158
    I manage to generate a data track for my scenario TT but then it crashes at the end. The file is generated though and appears to work. You just have to leave it until it's done. If you're not getting anything, make sure your command is correct and you're referencing the timetable properly. Maybe share your command here and maybe the UE path to the TT file so we can check it's 100% correct
     
  7. greggryan2

    greggryan2 Active Member

    Joined:
    Dec 21, 2018
    Messages:
    420
    Likes Received:
    179
    "E:\TSWEditor\TrainSimWorld4MOD\TS2Prototype\Binaries\Win64\TrainSimWorldPublicEditor.exe" TS2Prototype -run=SimulateTimetable Timetable=RouteTimetableDefinition'/PBD_RG_Scenarios/Scenarios/TestScenario/PBD_ScenarioTest_TT.PBD_ScenarioTest_TT'

    The above is the command I'm using, the master data track is working fine, I wait for the crash load editor and data track is there and assigned.

    the Data track though which should appear in the layer thing for the layer doesn't seem to appear so not sure if I'm missing something maybe when I tried doing Layers the first time.
     
  8. josh_the_tech

    josh_the_tech Active Member

    Joined:
    Dec 9, 2016
    Messages:
    256
    Likes Received:
    158
    Ah I see the issue, when you right click the TT file and get the reference, it gives you some extra stuff you need to get rid of. I'll post the correct command and then your one below, with what needs deleting in bold italics


    "E:\TSWEditor\TrainSimWorld4MOD\TS2Prototype\Binaries\Win64\TrainSimWorldPublicEditor.exe" TS2Prototype -run=SimulateTimetable Timetable=/PBD_RG_Scenarios/Scenarios/TestScenario/PBD_ScenarioTest_TT


    "E:\TSWEditor\TrainSimWorld4MOD\TS2Prototype\Binaries\Win64\TrainSimWorldPublicEditor.exe" TS2Prototype -run=SimulateTimetable Timetable=RouteTimetableDefinition'/PBD_RG_Scenarios/Scenarios/TestScenario/PBD_ScenarioTest_TT.PBD_ScenarioTest_TT'
     
  9. greggryan2

    greggryan2 Active Member

    Joined:
    Dec 21, 2018
    Messages:
    420
    Likes Received:
    179
    Hi, I have altered the cmd with the bits removed that you've mentioned. When I simulate the timetable, it still isn't generating the data tracks for the two layers I have that are ontop of the master layer per-say images below.

    You'll notice the timetable has master data track but the two layers do not have any data track. Also in the data tracks folder there is only the master one in there.

    Any ideas what is wrong or not correct. As I said to Matt this is for a scenario and currently using data tracks to ensure everything runs correct. Obvs they will be removed for when playing the scenario.

    upload_2023-10-2_19-54-33.png upload_2023-10-2_19-54-46.png upload_2023-10-2_19-55-2.png upload_2023-10-2_19-56-7.png
     
  10. hebertar

    hebertar Member

    Joined:
    May 5, 2022
    Messages:
    40
    Likes Received:
    49
    Did you ever find out how to get the data track to be created for your layers? Same problem here, I'm getting the track for the master but nothing for the layer, I have DLC installed and the log has good info about the services in the layer.
    I'm thinking it maybe has to do with labeling the layer. I think you may need to use an "_" rather than spaces?
     
    Last edited: Jan 31, 2024
  11. Isaak

    Isaak Well-Known Member

    Joined:
    Aug 5, 2019
    Messages:
    384
    Likes Received:
    451
    Yes, you cannot use spaces in the layer name. I'd found that out too (it actually prints a naming error at the end of your log file if you have spaces in a layer name). It will only generate layer Data tracks if you name them correctly. Use underscores instead of spaces.
     

Share This Page