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

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

  1. trainsimcz

    trainsimcz Well-Known Member

    Joined:
    Dec 12, 2016
    Messages:
    498
    Likes Received:
    1,981
    TSW 5 Editor Cooking and Paking v2.1

    so after figuring out how to do multiple original plugins into one pak file i decided to release update for my cooking and paking :)
    This new version support cooking for TSW 4 and TSW 5 in TSW 5 editor. You just need to check the chekbox if you want TSW 5 or not. Difference is only which file is generated for .pak file because TSW 4 is still using .dlc while TSW 5 is using new .ugc (they work with .dlc too of course. And of course new version support adding multiple original plugins into one .pak file - while you can add multiple original plugins into the version 2.0 but in the game its not working because it can read only one AssetRegistry file per .pak file. So i made a little tool to make that work.

    You can download it here: https://www.trainsim.cz/?mod=article&showid=2803

    -----------------------------

    While everybody trusted DTG that they will release editor finally with cooking, i was working on version 2.0 of my mod. Changes which i did are mostly for the distribution part because TSW 5 is using .ugc file to see the user generate content. And because my first version was just quickly made i decide to completely rework it. Now its looking better, it can detect cooked stuff so if you dont see your plugin in distribution part then its not really cooked. It got text field to type require DLCs (if you are creating for example route and you are using assets from different routes then you suppose to type DLCs there so the game know which DLCs are required and if user dont have them the assets will not load. Another think is that you can only add one original plugin into the .pak file (you can add a lot of not your original plugins) because the game can read only one AssetRegistry.bin file from the .pak. Im working on solution so you will be able to add more original plugins - but that solution will take some time and i dont want to keep the utility unreleased until i figure that part out... so here is your cooking and paking for TSW 5 Editor... enjoy version 2.0 :)

    You can download it here: https://www.trainsim.cz/?mod=article&showid=2801
    And of course you can support my work on my page with small donation :)
     
    Last edited: Oct 15, 2024
    • Like Like x 15
    • Helpful Helpful x 3
  2. Daunfr59

    Daunfr59 Active Member

    Joined:
    Dec 8, 2016
    Messages:
    94
    Likes Received:
    148
    Thanks and congratulations for your continuing efforts to develop your mod.
     
  3. its crazy that community creators, who are working for completely nothing at all and purely out of their love for the game they play, do a better job than the multi million pound company that made the game in the first place.
     
    • Like Like x 3
  4. Spikee1975

    Spikee1975 Guest

    Surely not everybody. :)

    That's for many reasons. In big companies, the knowledge is distributed over many people, each only knowing a piece of the whole puzzle. I'm sure Muff knows the game better than TSW's Executive Producer.

    The other reason is modders are driven by their desire to make content and improve the experience, and are not required to keep to company policies. DTG has no financial benefit from adding the features properly - they think they'd not benefit from freeware being released - their doctrine was to treat everyone, console or PC, the same. Hence letting PC users only play with the editor, checking out project threads and recruiting talented creators, but not more. You got exactly what they wanted you to get.

    Thanks for your work.
     
    Last edited by a moderator: Sep 28, 2024
  5. Xander1986

    Xander1986 Well-Known Member

    Joined:
    Mar 20, 2018
    Messages:
    2,337
    Likes Received:
    1,841
    Thats why they call it "beta"! And they give many warnings that the Editor is an unstable product and not fully up and running is to use. What did you expect otherwise?!
     
  6. Except the editor isn't the only example of the community being left to fix something! A lot of the mods on trainsimcommunity.com are there to either fix bugs that were promised to be fixed years ago, or to improve the situation with some routes that were left abandoned (WCL, ik its rivet but still)!
    You don't see any routes advertised as BETA, even though most of them are barely even alpha! Stop defending DTG when they have done something wrong!
     
    • Like Like x 1
  7. Perks390

    Perks390 Well-Known Member

    Joined:
    Dec 8, 2016
    Messages:
    352
    Likes Received:
    432
    Thank you for getting this fix out, been waiting to cook my updated Niddertalbahn timetable. I'm having an issue with the 642 which is prevening it cooking. It seems the 642 folder included in the patch is preventing the 642 from being read by the editor once the zip file has been extracted.
     
  8. trainsimcz

    trainsimcz Well-Known Member

    Joined:
    Dec 12, 2016
    Messages:
    498
    Likes Received:
    1,981
    You copy only from zip stuff which you dont have. If you own 642 then you dont copy that. Users who dont own that cant cook because they dont own 642 so solution is to have empty plugin for not owners. If you own some other plugins then you dont use them from the zip. Important from the zip are the ones which are overwriting DTG stuff because in their settings is even consoles.
     
  9. KTL_Rob Powell

    KTL_Rob Powell Well-Known Member

    Joined:
    Aug 18, 2018
    Messages:
    231
    Likes Received:
    296
    I'm probably being an idiot here. I'm trying to cook my scenario and it fails, I'll attach the error log because it's probably something I've done wrong, like I've missed a step or something.

    (doing a complete clear out and reinstall of TSW5 then the editor just in case I had rogue files lying about!)
     

    Attached Files:

    Last edited: Oct 4, 2024
  10. KTL_Rob Powell

    KTL_Rob Powell Well-Known Member

    Joined:
    Aug 18, 2018
    Messages:
    231
    Likes Received:
    296
    Fixed it. I had to unblock a lot of files to do with the automation in Windows :) Thanks for the work trainsimcz
     
  11. 2martens

    2martens Well-Known Member

    Joined:
    Oct 6, 2020
    Messages:
    378
    Likes Received:
    476
    With this version, I always get this error: "The platform name XSX is not a valid platform name."
    While this platform is listed in the original uplugin file for TS2Prototype, it isn't contained in the modified one from this zip.
     
  12. trainsimcz

    trainsimcz Well-Known Member

    Joined:
    Dec 12, 2016
    Messages:
    498
    Likes Received:
    1,981
    TSW 5 Editor Cooking and Paking v2.1

    so after figuring out how to do multiple original plugins into one pak file i decided to release update for my cooking and paking :)
    This new version support cooking for TSW 4 and TSW 5 in TSW 5 editor. You just need to check the chekbox if you want TSW 5 or not. Difference is only which file is generated for .pak file because TSW 4 is still using .dlc while TSW 5 is using new .ugc (they work with .dlc too of course. And of course new version support adding multiple original plugins into one .pak file - while you can add multiple original plugins into the version 2.0 but in the game its not working because it can read only one AssetRegistry file per .pak file. So i made a little tool to make that work.

    You can download it here: https://www.trainsim.cz/?mod=article&showid=2803
     
    • Like Like x 6
    • Helpful Helpful x 1
  13. IMMY

    IMMY New Member

    Joined:
    Feb 5, 2024
    Messages:
    19
    Likes Received:
    7
    I‘m too stupid to install this whatever i try
     
  14. trainsimcz

    trainsimcz Well-Known Member

    Joined:
    Dec 12, 2016
    Messages:
    498
    Likes Received:
    1,981
    Update 2.1.1
    last version 2.1 dont generate correct .ugc file for TSW 5, now its fixed.
    You can download fix here: https://www.trainsim.cz/?mod=article&showid=2803, look for the file named TSW5_Cooking_and_EditorTools_2.1.1.zip, its just a fix, so you will still need to download version 2.1 if you dont download it before.
     
    • Like Like x 3
  15. KTL_Rob Powell

    KTL_Rob Powell Well-Known Member

    Joined:
    Aug 18, 2018
    Messages:
    231
    Likes Received:
    296
    Not sure if that is working. My package has cooked as it should. I'm setting the plugin to TSW5, and it isn't showing in the game despite the pak being in the correct DLC folder. All was working fine until you updated. Do you have any ideas? I can grab a log of the cook and the packing if necessary

    EDIT: User error my end, all working now :)
     
    Last edited: Oct 17, 2024
  16. spikeyorks

    spikeyorks Well-Known Member

    Joined:
    May 31, 2023
    Messages:
    1,180
    Likes Received:
    1,878
    Having a bit of trouble with this and hoping someone can point me in the right direction.

    I have been using Trainsimcz's successfully for most of the year and have been building up a collection of formations and extra paths mods. I was starting to hit problems with older versions of this mod (asset upgrade delays....or something similar) so I thought I would update both my EPIC games files and this mod. Everything seems to have upgraded correctly but I have one issue but, for me, it is a vital one that is stopping me from doing any more work.

    The problem is that I can't now drag and drop files in to the editor. I believe that this is a known problem as the read-me that comes with the download mentions dragging and dropping issues. Apparently the solution is to use Explorer as an Administrator but. for me, I can't seem to get that bit of the process to work. Also, when I fire up the editor, I now get a warning pop up that never used to happen before. Yes I can quick through it, and I could even permanently hide it, but worry about doing this if I can't drag my files in.
    Bearing in mind the work that I am doing requires me to move files around it is a big issue for me. So if anyone can give me any help, including simple steps to fix the problem, then I will be very grateful. Thanks.

    PS - I am still working in TSW4.

    Here's an example of what I have been up to. Unique formations on new pieces of track all placed using the normal scenario editor.
    788d3d7c-bb32-4c83-89d3-79788dc2048a.jpg
     
    • Like Like x 1
  17. Cygnific

    Cygnific Well-Known Member

    Joined:
    May 26, 2018
    Messages:
    248
    Likes Received:
    342
    Can't get it to work as in; Running Explorer.exe in elevated mode or drag and drop still not working?
    You can use this link to enable elevated mode if that's the problem. https://www.thewindowsclub.com/run-explorer-elevated-in-administrator-mode
     
  18. spikeyorks

    spikeyorks Well-Known Member

    Joined:
    May 31, 2023
    Messages:
    1,180
    Likes Received:
    1,878
    Ah yes. It would help if I was a bit clearer. :) I'll start with making sure I have the elevated mode bit correct first.
    I'll let you know how I get on. (Windows 11).
     
  19. trainsimcz

    trainsimcz Well-Known Member

    Joined:
    Dec 12, 2016
    Messages:
    498
    Likes Received:
    1,981
    Thats known problem because of distribution button it require admin rights to work correctly. So if you want to drag and drop i recommend you some file manager (im using for example Total Commander) which you can run with admin rights and you dont have to mess with explorer. And its easy to just drag and drop files from file managet to Content browser.
     
  20. spikeyorks

    spikeyorks Well-Known Member

    Joined:
    May 31, 2023
    Messages:
    1,180
    Likes Received:
    1,878
    Hi There. Can I first say "Thanks very much for your Editor mod" it has given great pleasure and, as a result, I am nearly ready to release a mod that will add a very large amount of formations to the game for everyone to use. Without your efforts I would have given up on the game ages ago.

    I have tried to solve the problem by running Explorer in elevated mode but that hasn't made any difference so far. To be honest I'm not too bothered with the Distribution Button as Easypak always worked well for me. Is it possible to roll back to an earlier version of the editor or might that be problematic now?

    I'll have a look at Total Commander. Is it easy to use as, to be honest, I'm pretty hopeless at this sort of thing and I don't want to get myself in a bigger muddle. :D
     
  21. Spikee1975

    Spikee1975 Guest

    FreeCommander is also very handy.
     
  22. Perks390

    Perks390 Well-Known Member

    Joined:
    Dec 8, 2016
    Messages:
    352
    Likes Received:
    432
    I think if you download one of the older versions and use just the bat file from one of them to start the editor it should work like before, it's what I used to do and it seemed to work but that was on TSW 4 editor.
     
  23. spikeyorks

    spikeyorks Well-Known Member

    Joined:
    May 31, 2023
    Messages:
    1,180
    Likes Received:
    1,878
    Hi Everyone,

    I have good news. Total Commander seems to work for me. Not only have I been able to get my files back in to the editor but I have split a number off from one of my mods, cooked them under a new name and everything seems OK. The new pak file worked as intended. So I'm a happy bunny again :D

    Thanks to everyone who offered help. It is appreciated. Onwards and, hopefully, upwards :cool:
     
    • Like Like x 2
  24. spikeyorks

    spikeyorks Well-Known Member

    Joined:
    May 31, 2023
    Messages:
    1,180
    Likes Received:
    1,878
    Well I'm pleased to say that despite my PC still acting a bit strange I have been able to do what I wanted to. :)
    So "Voila" here is a Peak hauling a pair of dead kettles in a formation that can be used in both Scenarios and Free Roam and that can, also, have community liveries applied to it. :cool:

    59211515-1430-4963-b927-088521a47b7a.jpg
     
    • Like Like x 2
  25. reddeviln#2935

    reddeviln#2935 New Member

    Joined:
    May 29, 2024
    Messages:
    5
    Likes Received:
    3
    Hi everyone. Thanks for the mod. I have been using it successfully for quite a while now. After the recent update from the EPIC store however, it isnt cooking for me. I get the error
    I never had this before. Any hints? Obviously i generated the asset registry as always
     
  26. reddeviln#2935

    reddeviln#2935 New Member

    Joined:
    May 29, 2024
    Messages:
    5
    Likes Received:
    3
    Still having this issue. Any ideas trainsimcz or anyone else?
     
  27. 2martens

    2martens Well-Known Member

    Joined:
    Oct 6, 2020
    Messages:
    378
    Likes Received:
    476
    I have the same issue and can't cook my plugin anymore.

    Update: It turns out that these "errors" don't actually prevent cooking. I was able to cook the plugin and then pak it with trainsimcz tools. It loaded fine in the game with the changes I made.
     
    Last edited: Dec 8, 2024
  28. A Brailsford

    A Brailsford New Member

    Joined:
    Sep 4, 2018
    Messages:
    6
    Likes Received:
    0
    I have tried this and can get my scenario into the game (i.e. .Pak file loads) however no trains exist in the scenario despite running OK in the editor. Am I specifying the required DLC correctly? Also I noticed that the mod requires me to create my plugin in the editors Plugin folder rather than DLC\Plugins, is this correct? Any help would be appreciated as reading this forum suggests that this mod should work to get self created scenarios into the game.
     
  29. isaachs#8903

    isaachs#8903 New Member

    Joined:
    Aug 17, 2024
    Messages:
    16
    Likes Received:
    12
    Hello my cook fails with this log if anyone can help? Screenshot 2024-12-20 192431.png
     
  30. Lulon

    Lulon Active Member

    Joined:
    Dec 3, 2017
    Messages:
    111
    Likes Received:
    120
    When you download the zip file, right click it then click on properties then at the bottom of the window it says something about security and that its from another computer, select the checkbox next to it that says something like unblock.
    Afterwards you should reinstall the zip file again and overwrite all files.
     
  31. jebaraanas

    jebaraanas Member

    Joined:
    Sep 21, 2020
    Messages:
    60
    Likes Received:
    77
    Lulon

    After cooking successfully and distributing, I have a message saying that the pak was save, but I can't find it in my folder. Any clues as to why?

    Screenshot 2024-12-20 214026.png

    Screenshot 2024-12-20 214033.png
     
  32. Lulon

    Lulon Active Member

    Joined:
    Dec 3, 2017
    Messages:
    111
    Likes Received:
    120
    Try looking into the TrainSimWorld5Mod folder
     
    • Like Like x 1
  33. jebaraanas

    jebaraanas Member

    Joined:
    Sep 21, 2020
    Messages:
    60
    Likes Received:
    77
    Oh haha. Wow ok. what should be the next step?

    upload_2024-12-20_21-48-44.png
     
  34. Lulon

    Lulon Active Member

    Joined:
    Dec 3, 2017
    Messages:
    111
    Likes Received:
    120
    Put it either in

    steamapps\common\Train Sim World 5\WindowsNoEditor\TS2Prototype\Content\DLC\

    or

    Documents\My Games\TrainSimWorld5\Saved\UserContent\
    (you need to create the folder)

    The just start the game and your content should get loaded
     
    • Like Like x 1
  35. jebaraanas

    jebaraanas Member

    Joined:
    Sep 21, 2020
    Messages:
    60
    Likes Received:
    77
    Thank you so much Lulon. Very much appreciated :)
     
    • Like Like x 1
  36. emil#3734

    emil#3734 Well-Known Member

    Joined:
    Sep 25, 2023
    Messages:
    363
    Likes Received:
    274
    I am getting this error:
    UATHelper: Cooking BR442_EP (Windows): ERROR: Missing D:\Programme\TrainSimWorld5Mod\TS2Prototype\Binaries\Win64\TS2Prototype\Binaries\Win64\TrainSimWorldPublicEditor-Cmd.exe executable. Needs to be built first.
     
  37. CFTFC

    CFTFC Active Member

    Joined:
    Apr 18, 2020
    Messages:
    139
    Likes Received:
    139
    You need to open the Editor with the StartEditor.bat file located in TrainSimWorld5Mod folder and not thru
     
    • Like Like x 1
  38. emil#3734

    emil#3734 Well-Known Member

    Joined:
    Sep 25, 2023
    Messages:
    363
    Likes Received:
    274
    Completly forgot that, thanks
     
  39. josh_the_tech

    josh_the_tech Active Member

    Joined:
    Dec 9, 2016
    Messages:
    256
    Likes Received:
    158
    Great to see the cooking and paking mod for TSW5 editor. I've installed as per the instructions, including unblocking the zip files as described in this thread, as well as removing the plugin from the editor and the mods from the game files.

    I'm getting a successful cook message but when I check my cook content I don't have any cooked files and when I distribute, my final pak is 2KB.

    I had this working fine in the TSW4 editor with the mod so not sure what's happening. I've inspected the log and nothing stands out to me. I've attached.

    I moved this plugin from the TSW4 Editor to the TSW5 one when the editor came out. Not sure if that's had any impact?

    Please could I get some assistance as I want to get my mod cooked and test in the game (as PIE doesn't always reflect the game itself I find)?
     

    Attached Files:

  40. josh_the_tech

    josh_the_tech Active Member

    Joined:
    Dec 9, 2016
    Messages:
    256
    Likes Received:
    158
    Sorry to bump but still having no joy in getting this working and completely confused as to why it's not. Any help would be much appreciated.
     
  41. MJCKP

    MJCKP Well-Known Member

    Joined:
    Jul 14, 2023
    Messages:
    334
    Likes Received:
    435
    Do you have an already cooked version of the mod in TSW5's DLC folder? If you do you might need to delete it first
     
  42. josh_the_tech

    josh_the_tech Active Member

    Joined:
    Dec 9, 2016
    Messages:
    256
    Likes Received:
    158
    I do, but I'd removed it during the asset registry generation. I'll try this when I'm next on the computer :)
     
  43. josh_the_tech

    josh_the_tech Active Member

    Joined:
    Dec 9, 2016
    Messages:
    256
    Likes Received:
    158
    Just gave this a go making sure my cooked version of the mod was removed from TSW5's DLC folder, then ran the game, then ran the editor. Unfortunately, still no cooked content being produced.

    I ended up creating a new plugin and copied the contents in the editor to the new one and that seemingly worked. Should have tried that first! Thanks for the help :)
     
    Last edited: Jan 17, 2025
  44. josh_the_tech

    josh_the_tech Active Member

    Joined:
    Dec 9, 2016
    Messages:
    256
    Likes Received:
    158
    So I found out the issue. My folder name for the plugin (not the plugin itself) had a hyphen - in the folder name. It didn't like that. So if anyone else has issues, make sure your folder name and files don't have any special characters in them
     
  45. dmn#9219

    dmn#9219 New Member

    Joined:
    Feb 13, 2025
    Messages:
    3
    Likes Received:
    0
    i am now using version 2.2. unfortunately i always get the same error message when “Cooking” no matter which plugin i try. See pictures.
    Can anyone help me? That would be super nice.
     

    Attached Files:

    • f2.PNG
      f2.PNG
      File size:
      20.1 KB
      Views:
      24
    • f1.PNG
      f1.PNG
      File size:
      94.4 KB
      Views:
      20
  46. CFTFC

    CFTFC Active Member

    Joined:
    Apr 18, 2020
    Messages:
    139
    Likes Received:
    139
    f2 means you have a mod in your DLC folder the Editor can not read. It shouldn't affect the cooking process but I recommend removing all mods before cooking to be on the safe side. f1 is normal and is how the cooking process finishes. Both won't affect the cooking process.
     
  47. dmn#9219

    dmn#9219 New Member

    Joined:
    Feb 13, 2025
    Messages:
    3
    Likes Received:
    0
    thanks for the help! Seems to be, that the mod in the DLC folder, i forgot to delete, caused the problem!
     
  48. rex#8068

    rex#8068 New Member

    Joined:
    Jun 1, 2023
    Messages:
    4
    Likes Received:
    0
    Hi all. I'm trying to cook a scenario that uses a train from another route. So far I appear to have the mod and it's timetable working in the main game. The trains that are native to the route I created the scenario for seem to work fine but the train from another route just doesn't appear! What am I missing??

    So to provide more detail, I created a simple scenario for the Peak Forest route that has a couple of custom formations that include the Peak Forest 8F and coaches as well a custom formation which includes just the LMC_BR_Class08 from the Leeds-Manchester route. I filled in the "required dlc" box in all the custom formations.

    This all plays out fine in the play-in-editor window.

    I then cook this mod and although I get the long parade of warnings and errors, the saved/cooked folder populates with the required files

    I then cluck the "distribute" button, select the mod, check the tsw5 box and add the dlc name LMC_BR_Class08 to the required dlcs box and click distribute.

    The .pak get imported to the game fine, scenario opens up, the native Peak Forest trains are running their timetables but no class 8 appears.

    So yeah, I feel I've missed something. Any advice would be much appreciated.
     
  49. classthrash#2930

    classthrash#2930 Member

    Joined:
    Jan 13, 2024
    Messages:
    97
    Likes Received:
    25
    I'm was using TSW5 editor for a timetable creation, but unfortunately you can't cook with TSW5 editor at the moment. Download TSW 4 and TSW 4 editor and copy and paste your project into TSW4 editor (don't forgot to download and install the Czechsim cooking mod 1.3 for TSW4) the you will be able to cook without errors in TSW4 editor and manually pak the files after a successful cook!
     
  50. classthrash#2930

    classthrash#2930 Member

    Joined:
    Jan 13, 2024
    Messages:
    97
    Likes Received:
    25
    Download TSW4
    Download TSW4 PC editor
    Download Czechsim 1.3 cooking mod

    Cook on TSW4 editor !
     

Share This Page