Creation Sharing Tsw 5 - Editor Cooking And Paking V2.1

Discussion in 'PC Editor Discussion' started by trainsimcz, Sep 28, 2024.

  1. rex#8068

    rex#8068 New Member

    Joined:
    Jun 1, 2023
    Messages:
    4
    Likes Received:
    0
    Thanks for the tips. I did find a workaround for the tsw5 editor on this forum somewhere. To cook timetables using other dlc with the cz tsw5 editor, I create a new layer which references the required dlc. Add the services to that layer and boom, you're away.

    I also find sometimes the cz tsw5 editor doesn't link the simulated datatracks to the timetable, but if I open the editor with the standard launcher it does. So after running simulation, I'd open in the vanilla editor, close and then open the .bat launched editor to cook.
     
  2. trainsimcz

    trainsimcz Well-Known Member

    Joined:
    Dec 12, 2016
    Messages:
    505
    Likes Received:
    2,019
    What are you talking about ? There is nothing like cz tsw 5 editor... if you are talking about my cooking mod then its just extra module for the editor and its has nothing to do with data tracks. Data tracks are added automatically to the timetable once the simulation is finished.
    And then there is already new version which is not adding own DLL files but its using original editor ones. Sometimes you should really check the czech page: https://www.trainsim.cz/?mod=article&showid=2820 as i dont post every update here.

    And chance that something is skipped and not added -> in that cooking editor zip file there is some plugins, if you own some of those DLCs then you dont copy those plugins into the plugin folder because sometimes the .pak is ignored, showing wrong path and its using the one from plugin folder in editor... those plugins are there only for proper cooking because there was sometimes error that some plugin is missing.
     
  3. RobertSchulz

    RobertSchulz Well-Known Member

    Joined:
    Oct 10, 2023
    Messages:
    1,863
    Likes Received:
    2,615
    So I came to the point, where I needed to reinstall my Editor because of some problems caused before and now my decision to finally upgrade your cooking mod from version 2.0 was it I think to the latest one and also I want to try your our newly released Timetable Decooker.

    Now I noticed that quite a lot did happen and somehow information got missed here in the forum as I took a closer look at your webpage trainsim.cz.

    For example, that you apparantly combined your new timetable decooker with cooking and distribution tools to alltogether version 2.3. But even before that, there was patch version 2.2 (which was not mentioned in this thread), which has 2 (but in fact even 3) very significant changes for your Editor cooking and distribution mod, which should make it so much better than before but noone really mentioned and I don't why.

    1. It seems you solved the problem that the cooking and distribution buttons disappeared after Editor update by Epic Games. This would really be great, since I had a lot of problems with that.

    2. The annoying process of removing all custom created plugins from the Editor and removing all mod paks from the Game files in order to generate the AssetRegistry.bin file. I always hated that process and before I was unsure whether I need to generate new AssetRegistry file after Editor update problem as described in 1. or installing new game DLC content. I'm still unsure about that. However, if AssetRegistry file creation would not be necessary anymore, this is a huge improvement.

    3. Size of the zipped folders has now shrinked from 110 MBytes (version 2.1) to 6.2 MBytes (version 2.2/2.3), which is not only a huge reducement but also quite astounding since it even should have added the Timetable Decooker files. How is that possible?

    Can you confirm that the TSW Editor cooking tools now will work in the same way as before?

    Also a few tips. Might be worth to update this thread with information about the new versions. Don't think it's good idea to continue information about Editor Cooking and Distrubion now only on Timetable & Simugraph decooker thread, as both being to complex and people would mess up threads with questions regard either of them that others couldn't look over.
     
    Last edited: Mar 15, 2025
  4. trainsimcz

    trainsimcz Well-Known Member

    Joined:
    Dec 12, 2016
    Messages:
    505
    Likes Received:
    2,019
    1. i dont think it solve the problems that cooking and distribution button disappeared after editor update. Maybe its not vanishing but you still need to copy the whole cooking mod over the editor after every udpate, because some uplugin and uproject files got XSX and other platforms which are not for PC and cooking will not start if they are not replaced.

    2. yeah you dont need to generate AssetRegistry.bin anymore, i added nulled file there just so editor can check its there but you dont have to regenerate it over and over again. So no more removing all mods before regenerating. Thats why i even remove those .bat files.

    3. size dropped because cooking is now using original editor .dll files so i dont have to include extra .dll files which makes the zip file before bigger. Now it just include .dll for cooking and .dll for decooking.
     
    • Like Like x 1
  5. shuisoi

    shuisoi New Member

    Joined:
    Mar 11, 2025
    Messages:
    1
    Likes Received:
    0
    Hello!
    When I cook, I get the following error message:

    UATHelper: Cooking DB612Reamp (Windows): LogInit: Display: LogCook: Error: Engine or Game content ../../../TS2Prototype/Plugins/DLC/DCZ_DB_BR612/Content/Data/RailVehicleDefinition/RVD_DCZ_DB_BR612_B.uasset is being referenced by DLC!

    What`s the problem?
     

    Attached Files:

    • Log.txt
      File size:
      103.8 KB
      Views:
      1
  6. classthrash#2930

    classthrash#2930 Active Member

    Joined:
    Jan 13, 2024
    Messages:
    113
    Likes Received:
    27
    Hi, I've been trying to cook with TSW 5 Editor with Czechsim 2.3 a test timetable due to the problems i was having with my original timetable.
    i've made a UK test timetable that has one item of stock from every UK route (even electric as static items)

    Listed all UK DLCs as dependency's when packaging Test Timetable Class 08 options.jpg Leeds-Man 08.jpg Tees Valley 08.jpg Test Timetable Class 08 options.jpg Leeds-Man 08.jpg Tees Valley 08.jpg SimulatedTT01.jpg SimulatedTT02.jpg :

    BRClass700,BRHeavyFreightPack,CrossCityLine,DarlingtonSaltburn,DSNClass20,DSNClass31,EastCoastMainline,EastCoastway,ECWClass313,GlasgowCathcart,GlossopLine,LeedsManchester,LondonBrighton,LondonFaversham,MMLLeicesterDerbyNottingham,PeakForestRailway,PenzanceTruro,PrestonBlackpool,TSW2PaddingtonReading

    In my test timetable i have a class 08 service which is using standard class 08 (that comes with the route, leeds-manchester) , if i select to drive this version of the Class08 the only services that show are 2 Blackpool services (class 142 / intercity 47)?

    if i select to drive the Tees Valley 08, now i have 2 x Tee valley assets, Class 31 and Class 37 trains populate as well!!!!

    I'm not a coding expert but it seems to be a issue with the dependency interaction / recall /loading process?????

    None of the other UK dependency's are visible.

    All of the selected trains are standard with the exception of a MML Class 43.

    I've included screen shots of game and simulated versions of the timetable

    Can someone please help!
     
  7. ben#6357

    ben#6357 Active Member

    Joined:
    Feb 14, 2024
    Messages:
    144
    Likes Received:
    84
    I always get the following error message:

    (Windows): ERROR: The platform name XSX is not a valid platform name. Valid names are (Win32,Win64,HoloLens,Mac,XboxOne,PS4,IOS,Android,HTML5,Linux,LinuxAArch64,AllDesktop,TVOS,Switch,Lumin)


    Does anyone know how to fix this?
     
  8. classthrash#2930

    classthrash#2930 Active Member

    Joined:
    Jan 13, 2024
    Messages:
    113
    Likes Received:
    27
    Have you selected the platform for the timetable ?
     
  9. ben#6357

    ben#6357 Active Member

    Joined:
    Feb 14, 2024
    Messages:
    144
    Likes Received:
    84
    Where do I do that?
     
  10. trainsimcz

    trainsimcz Well-Known Member

    Joined:
    Dec 12, 2016
    Messages:
    505
    Likes Received:
    2,019
    You probably dont copy the cooking patch over the editor again, which you have to do after every editor update because DTG dont released editor .dlls for other platforms and they keep those platforms inside uproject and uplugin files
     
  11. ben#6357

    ben#6357 Active Member

    Joined:
    Feb 14, 2024
    Messages:
    144
    Likes Received:
    84
    I only copied all the files again after the last update. I don't know if it would have worked before the update, though, since I only tried it now.
     
  12. jpbxengine#2917

    jpbxengine#2917 New Member

    Joined:
    Dec 10, 2021
    Messages:
    21
    Likes Received:
    5
    Thanks for all you do, I am curious, anyone know how to fix this error?
    ERROR: Missing C:\Program Files\Epic Games\TrainSimWorld5Mod\TS2Prototype\Binaries\Win64\TS2Prototype\Binaries\Win64\TrainSimWorldPublicEditor-Cmd.exe executable. Needs to be built first.
    I tried cooking a route, and this came up
     
  13. CFTFC

    CFTFC Active Member

    Joined:
    Apr 18, 2020
    Messages:
    195
    Likes Received:
    225
     
    • Helpful Helpful x 1
  14. jpbxengine#2917

    jpbxengine#2917 New Member

    Joined:
    Dec 10, 2021
    Messages:
    21
    Likes Received:
    5
    So, I did try that, but I wont load. It goes REALLY slowly, but then around 75%, it dies and says something like "Cannot find game install location". I overwrote the files in the Epic Games folder in Program Files. Am I putting the install stuff in the wrong folder?
     
  15. CFTFC

    CFTFC Active Member

    Joined:
    Apr 18, 2020
    Messages:
    195
    Likes Received:
    225
    After installing the cooking patch did you open the game before opening the editor.
     
  16. jpbxengine#2917

    jpbxengine#2917 New Member

    Joined:
    Dec 10, 2021
    Messages:
    21
    Likes Received:
    5
    I ran the game, and the editor, and it still didnt work from the start editor file. I also tried running it as admin, but still didnt work. Heres a photo of my problem.
     

    Attached Files:

  17. classthrash#2930

    classthrash#2930 Active Member

    Joined:
    Jan 13, 2024
    Messages:
    113
    Likes Received:
    27
    ok lets go from the start,

    1) TSW editor folder, delete everything (backup any plugin's you've created before deletion)
    2) Install the editor via the epic games launcher
    3) Start editor from "official desktop shortcut"
    4) if editor crashes on lunching, this usually means there's been an update and you need to run the game first, then go back to editor.
    5) apply Czech Sim cooking patches if using
     
  18. playerjg

    playerjg New Member

    Joined:
    Jun 2, 2025
    Messages:
    2
    Likes Received:
    0
    Worked fine for me until opening up the route in game...

    It's interesting, cooking with the cz mod throws "Referenced by DLC"-Errors and says it failed to cook, distribution does still work and gives a 4 GB pakfile
    When only cooking with cz and afterwards switching to the "official" guide, creating own .ulc file and pak via UnrealPak it creates an 11 GB pakfile

    Timetable and everything (Stations in free roam, etc) are correctly imported in the game, in the main menu everything is displayed correctly. Trying to start the route in Free Roam gives me a blank blue space where i can not input anything (not even pause), trying to play a timetable Service gets me stuck in the loading screen... Anyone has any ideas why?
     
  19. classthrash#2930

    classthrash#2930 Active Member

    Joined:
    Jan 13, 2024
    Messages:
    113
    Likes Received:
    27
    DLC Errors mean nothing in the cook, just ignore them, the DLC's are handled by the plugin creation tool after cooking.

    the loading error that you mention is a result of the incorrect DLC being referenced in the packing dialog box, for example:

    PrestonBlackpool,TSW2WestSomersetRailway,DSNClass20,DarlingtonSaltburn,EastCoastMainline,

    this is my list of DLC's for my current project, only add DLCs by route name with the exception of the stand a lone addon's such as Class 20 for example, so in the PrestonBlackpool route the 142 comes with this route so i originally listed the route and the train DLC, no need, that's when i came up with loading error you have. re-cook, and package (omitting any Route bundled DLC's) and you should be good to go!
     
    • Helpful Helpful x 1
  20. niceaux

    niceaux New Member

    Joined:
    Jun 29, 2025
    Messages:
    7
    Likes Received:
    0
    I've done both of this now as I was either getting spawned on foot/no actual services spawning except one service that was native with the route I'm using (Niddertalbahn), and then I suddenly couldn't cook it anymore. Lets hope that layering the DLC content + making triple-sure the correct DLC is referenced will finally get this to work... I wish there was a decent, comprehensive tutorial from start to finish explaining how to create a custom timetable and what to look out for.
     
  21. classthrash#2930

    classthrash#2930 Active Member

    Joined:
    Jan 13, 2024
    Messages:
    113
    Likes Received:
    27
    DTG have updated the editor last friday, since then the cooking process hasn't worked, I'm hoping Mr Czech Train sim will push out an cooking update soon!, here's hoping !!!! fingers crossed!
     
  22. trainsimcz

    trainsimcz Well-Known Member

    Joined:
    Dec 12, 2016
    Messages:
    505
    Likes Received:
    2,019
    Well it has nothing to do with cooking, problem is that DTG break someting else in editor and when it start cooking formations and RVD files then it crash, so those are not cooked. On TSC discord i publish dll patcher which is patching that problem in .dll file, its just temporary fix until DTG fix it (they will probably just wait till TSW 6 editor), Im not going to share that patch here.
     
    • Like Like x 2
  23. spikeyorks

    spikeyorks Well-Known Member

    Joined:
    May 31, 2023
    Messages:
    1,298
    Likes Received:
    2,077
    I haven't been able to use the Unofficial Editor properly in either TSW4 or TSW5 since upgrading to TSW5.

    In my case, in TSW4, it won't allow me to update any existing mods. What it now does is to only produce a pak of the newest files (ie since the TSW5 upgrade) and ignores anything 'older'. At the Cooking stage I get an everything is complete message and no error messages but when I check the files behind the scenes then only the newest 2-3% have been cooked???
    Mind you the TSW4 version will allow me to create a brand new mod and will correctly cook and pak it. It is just pre-existing files that it won't let me touch. (So I'm guessing something was added to my files in TSW4 when I upgraded(?) to TSW5).

    Using the TSW5 version then the packing for a Manc Airport paths mod seems to be running OK but it always fails with the error message referring to "begin:stack for UAT", then running through numerous Callstack errors and ending with a "end:stackforUAT" message. The whole process running for 163 seconds. (So no immediate failure here). Afterwards, when I look behind the scenes, the correct folder structure is formed but only a Metadata folder appears. Nothing at all appears re my mod (Scenario Designer and Formation files).

    I think I have set the TSW5 Editor correctly and I have run it from the correct .bat file. Also I have sync'd it with TSW5 itself and, obviously, was able to see all the various files needed for me to create my revised mod in the first place. So what am I doing wrong?
    Any helpful suggestions will be gratefully received. Thanks.
     
    Last edited: Jul 15, 2025 at 11:45 PM
  24. classthrash#2930

    classthrash#2930 Active Member

    Joined:
    Jan 13, 2024
    Messages:
    113
    Likes Received:
    27

    Many thanks (as always for excellent help), it would be nice if DTG could test these updates before releasing them?
     
  25. classthrash#2930

    classthrash#2930 Active Member

    Joined:
    Jan 13, 2024
    Messages:
    113
    Likes Received:
    27
    Rule 1 - You can't edit / cook anything that's already cooked (all pre-existing DLC's in the content folder)
    Rule 2 - If you want to create a new timetable / scenario you have to create your own plugin and create your own content for the route you want to play.

    I was in the same camp as you when TSW 5 editor came out, before in TSW 4 , whilst cooking your own plugin there was NO red at all and it said "cook command completed successfully" in friendly green writing. TSW 5 cooking is an entirely difference process due to the handling of the UGC / DLCs, you will see MANY MANY read lines and it will complete with cook failed (do not worry), you will need separate plugins for Trains & Timetable

    once the cook command has been completed then you will to press the "distribute" button, Tick TSW5 plugin (even if its for an older route), tick "original plugin" , when entering required DLCs enter the name by the (ONLY PACKNAME) .PAK file in the content / DLC folder for example my timetable: :DSNClass31,BRHeavyFreightPack,LeedsManchester,MMLLeicesterDerbyNottingham,PenzanceTruro,TSW2PaddingtonReading,PrestonBlackpool,TSW2WestSomersetRailway,DSNClass20,DarlingtonSaltburn,EastCoastMainline,
    then hit distribute and your PAK file should be generated. good luck!
     
    • Like Like x 1
  26. classthrash#2930

    classthrash#2930 Active Member

    Joined:
    Jan 13, 2024
    Messages:
    113
    Likes Received:
    27
    have you posted it on TSC discord yet, as i cant see it.

    Thanks
     
  27. trainsimcz

    trainsimcz Well-Known Member

    Joined:
    Dec 12, 2016
    Messages:
    505
    Likes Received:
    2,019
    Of course i did, at least 2 - 3 weeks ago
     

Share This Page