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 .
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?
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.
Just the name of the plugin is fine. 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.
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.
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
"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.
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'
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.
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?
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.