UE4SS Code Library

  • by Luex
  • 9 upvotes
  • Downloaded 1,200 times

This mod is a dependency for other mods and not a stand alone mod
UE4SS s a scripting platform and a mod loader for the unreal engine. This makes it possible to load your own C++ and Lua mods. This is not possible with the normal .pak mods from Train Sim World.

This mod is a customized version of UE4SS. Unnecessary standard mods and boilerplate have been removed.
If you want to create your own c++ or lua mod, please visit the github repository of UE4SS.

Build it yourself

If you are familiar with building c++ binaries, you can also build UE4SS yourself. I have made some small changes to UE4SS, but otherwise the source code is the same as UE4SS experimental (because of the new folder structure). All my changes are open source and can be viewed in this repository: https://github.com/vanlueckn/RE-UE4SS-TSW

Build requirements
  • MSVC toolset version >= 14.39.0
  • MSVC version >= 19.39.0
  • Visual Studio version >= 17.9
  • Rust toolchain >= 1.73.0
  • xmake >= 2.9.3

List of mods using UE4SS

Installation Instructions

Steam & Epic Games
The downloaded ZIP archive must be unpacked into the folder \WindowsNoEditor\TS2Prototype\Binaries\Win64\.

XBOX Games on PC
The downloaded ZIP archive must be unpacked into the folder \XBoxGames\Train Sim World- 5\Content\TS2Prototype\Binaries\WinGDK\.

After installation there should be a folder called ue4ss and a file named dwmapi.dll inside Win64 or WinGDK.

Tags: c code lua ue4ss

Files

UE4SS-TSW-0525.zip 8 MB · Added 8 days ago · Downloaded 175×

Updated UE4SS to latest experimental version

Previously uploaded files have been downloaded 1,025 times before being withdrawn.

Comments

Avatar of Marbot
Marbot 11 Jan 2025

Would you be willing to release the source of the fork/modifications to UE4SS? There is also already another mod on here using UE4SS, which I'm sure is modified too, so already probably going to cause issues if people want to use both. Ideally the other mod (https://www.trainsimcommunity.com/mods/c3-train-sim-world/c113-announcements/i4704-automatic-train-announcements) would also release their version, and it could be worked to have one common version, but I doubt we'll get that :(

Also honestly speaking, for me loading DLL files from untrusted sources is already not ideal, so having the source would go a long way.

Avatar of Luex
Luex 11 Jan 2025

Thank you for your feedback. I will create a public github repo and publish instructions on how to build it. Then everyone can decide for themselves whether to download the ready-made binaries or build UE4SS themselves.

I was not aware that a mod based on UE4SS already existed. I have published UE4SS separately from my weather mod so that others can also use UE4SS as a dependency.

Avatar of simblz_yt
simblz_yt 12 Feb 2025

can you help get the mod rto work on my train?

Add a comment

If you wish to leave a comment, please log in .

About this mod

Created
11 Jan 2025
Updated
8 days ago
Game
Train Sim World
Type of content
Other
Train Sim World compatibility
Train Sim World 5