[tool] Convert 4.23 Mods To 4.26

Discussion in 'Creators Club' started by Callum B., Aug 6, 2021.

  1. Callum B.

    Callum B. Well-Known Member

    Joined:
    Aug 9, 2018
    Messages:
    1,638
    Likes Received:
    2,844
    This is a simple script that uses UnrealPak to decompile 4.23 paks and recompile them for 4.26. This automates the conversion process that Yuri/Jonah demonstrated on YouTube. Unfortunately, many mods do not convert so easily and may act broken or crash the game. It seems to work best on mods that focus primarily on texture replacements.

    USAGE:
    This script is particularly useful for batch conversion of .pak files from 4.23 to 4.26. I originally made this for myself to batch convert about 100 TSW2 mods quickly.

    REQUIREMENTS:
    You must have the Unreal Engine 4.26 editor installed, available from the Epic Games Launcher. Everything else is included.

    INSTRUCTIONS:
    1. Install UE4.26 Editor from Epic Games Store
    2. Locate the path of UnrealPak.exe, e.g.: "C:\Program Files\Epic Games\UE_4.26\Engine\Binaries\Win64\UnrealPak.exe". Location will vary depending on where you choose to install the Editor.
    3. Open "4.23_to_4.26_converter.ps1" with any text editor and replace the directory specified by $UnrealPak with your own directory. Make sure to save your changes. BY DEFAULT, THE SCRIPT WILL POINT TO "C:\Program Files\Epic Games\UE_4.26\Engine\Binaries\Win64\UnrealPak.exe"
    4. Run "4.23_to_4.26_converter.ps1" with PowerShell. You may need to run with Administrator privileges.
    5. Let the script complete fully, which make take a while. You will find all converted .pak files in a folder called "newpak".


    NOTES:
    There may be unintended consequences by converting mods directly from 4.23 to 4.26, particularly with sound mods, and some may not work at all. If so, they might need to be redone from scratch by the original creator. MANY CONVERTED MODS WILL CRASH THE GAME, so pay attention to which ones do and don't work.

    CREDITS:
    Yuri/Jonah for making a basic YouTube tutorial
    Epic Games for UE4 (UnrealPak)

    DOWNLOAD: https://mods.trainsimcommunity.com/...utilities/i1353-tsw2-423-to-426-mod-converter

    londonmidland's cloud mod in 4.26:
    upload_2021-8-5_17-1-26.png

    Thank you for using this tool.

    Cheers,
    Callum B.
     
    Last edited: Aug 10, 2021
    • Like Like x 7
    • Helpful Helpful x 3
  2. bescot

    bescot Well-Known Member

    Joined:
    Dec 14, 2016
    Messages:
    623
    Likes Received:
    1,098
    Brilliant work, many thanks. It's a shame 4.23 sound and blueprint mods won't work, I hope we don't lose too many of them.
     
  3. Callum B.

    Callum B. Well-Known Member

    Joined:
    Aug 9, 2018
    Messages:
    1,638
    Likes Received:
    2,844
    Updated to remove QuickBMS dependency. Now uses UnrealPak for decompilation.

    Cheers
     
  4. breblimator

    breblimator Guest

    Good job \o/ The Skybox is a must-have. BR o7
     
  5. tsgaming#9345

    tsgaming#9345 Member

    Joined:
    May 27, 2021
    Messages:
    41
    Likes Received:
    24
    Will this work with the GWE PIS mod?
     
  6. tsgaming#9345

    tsgaming#9345 Member

    Joined:
    May 27, 2021
    Messages:
    41
    Likes Received:
    24
    Do I need 4.26.2
     
  7. Callum B.

    Callum B. Well-Known Member

    Joined:
    Aug 9, 2018
    Messages:
    1,638
    Likes Received:
    2,844
    Unlikely since it is a blueprint mod. You will have to wait for the mod author to manually remake it.
    Yes.

    Cheers
     
  8. trainsimgaming1001

    trainsimgaming1001 Well-Known Member

    Joined:
    May 4, 2021
    Messages:
    459
    Likes Received:
    550
    I know this is a stupid question and it probably will not work.

    But do you think we could use this to Recompile NEC: New York for 4.26?
    And if so, how would the game react to it?
    Would it crash entirely?
    Would the route show in Route List?
    Would it play and work?
    Would it get to a Somewhat Playable state?

    I will be trying this over the next few weeks

    I know this is a Stupid Question, but its worth it
     
    Last edited: Aug 29, 2021
  9. ScottN

    ScottN Active Member

    Joined:
    Sep 1, 2020
    Messages:
    202
    Likes Received:
    130
    The link to the file is unavailable
     
  10. trainsimgaming1001

    trainsimgaming1001 Well-Known Member

    Joined:
    May 4, 2021
    Messages:
    459
    Likes Received:
    550
    I have been playing TSW since 2018 and own the NEC New York route + the file is on my computer
     
  11. bescot

    bescot Well-Known Member

    Joined:
    Dec 14, 2016
    Messages:
    623
    Likes Received:
    1,098
    He means the link to the converter mod not the link to NEC and only DTG could make NEC work in TSW2 as you need the original uncooked game files, and theyve said its not going to happen.

    Callum B.
     
    Last edited: Sep 2, 2021
  12. ScottN

    ScottN Active Member

    Joined:
    Sep 1, 2020
    Messages:
    202
    Likes Received:
    130
    Will there be a way to get the converter?
     
  13. WaveyDavey

    WaveyDavey Well-Known Member

    Joined:
    Mar 31, 2020
    Messages:
    891
    Likes Received:
    1,348
    Look at the first post. ;)
     
  14. ScottN

    ScottN Active Member

    Joined:
    Sep 1, 2020
    Messages:
    202
    Likes Received:
    130
    It says it isn’t available anymore
     
    • Like Like x 1
  15. WaveyDavey

    WaveyDavey Well-Known Member

    Joined:
    Mar 31, 2020
    Messages:
    891
    Likes Received:
    1,348
    Sorry I hadn't realised.
     

Share This Page