About this mod
Helping make this available to us here in vortex, brought over from github only for use on compatible games, Your mileage may verry it is the experimental-release
I am testing it currently but will publicly release it let others know what worked or didn't work for you. should be able to replace UE4SS .
I will help where I can.
- Requirements
- Permissions and credits
- Mirrors
- Donations
Lua scripting system platform, C++ Modding API, SDK generator, blueprint mod loader, live property editor and other dumping utilities for UE4/5 games.
Major features
- Lua Scripting API: Write lua mods based on the UE object system
- Blueprint Modloading: Spawn blueprint mods automatically without editing/replacing game files
- C++ Modding API: Write C++ mods based on the UE object system
- Live Property Viewer and Editor: Search, view, edit & watch the properties of every loaded object, great for debugging mods or figuring out how values are changed during runtime
- UHT Dumper: Generate Unreal Header Tool compatible C++ headers for creating a mirror .uproject for your game
- C++ Header Dumper: Generate standard C++ headers from reflected classes and blueprints, with offsets
- Universal UE Mods: Unlock the game console and other universal mods
- Dumpers for File Parsing: Generate
.usmap
mapping files for unversioned properties - UMAP Recreation Dumper: Dump all loaded actors to file to generate
.umaps
in-editor - Other Features, including Experimental features at times
The goal of UE4SS is not to be a plug-n-play solution that always works with every game. The goal is to have an underlying system that works for most games. You may need to update AOBs on your own, and there's a guide for that below.
Basic Installation
The easiest installation is via downloading the non-dev version of the latest non-experimental build from Releases and extracting the zip content to
{game directory}/GameName/Binaries/Win64/
.If your game is in the custom config list, extract the contents from the relevant folder to
Win64
as well.If you are planning on doing mod development using UE4SS, you can do the same as above but download the zDEV version instead.
Links
Full installation guide
Fixing compatibility problems
Lua API - Overview
Generating UHT compatible headers
Custom Game Configs
Creating Compatible Blueprint Mods
UE4SS Discord Server Invite
Unreal Engine Modding Discord Server Invite
Build requirements
- A computer running Windows.
- Linux support might happen at some point but not soon.
- Linux support might happen at some point but not soon.
- A version of MSVC that supports C++23:
- MSVC toolset version >= 14.39.0
- MSVC version >= 19.39.0
- Visual Studio version >= 17.9
- More compilers will hopefully be supported in the future.
- Rust toolchain >= 1.73.0
- xmake >= 2.9.3
- Clone the repo.
- Execute this command:
git submodule update --init --recursive
Make sure your Github account is linked to your Epic Games account for UE source access. Do not use the--remote
option because that will force third-party dependencies to update to the latest commit, and that can break things. You will need your github account to be linked to an Epic games account to pull the Unreal pseudo code submodule.
Building from cli
Configuration settings
xmake
allows you to flexibly configure some build options to suit your specific needs. The following is a non-comprehensive list of configuration settings you might find useful.Important
All configuration changes are made by using the
xmake config
command. You can also use xmake f
as an alias for config.After configuring
xmake
with any of the following options, you can build the project with xmake
or xmake build
.Mode
The build modes are structured as follows:
<Target>__<Config>__<Platform>
Currently supported options for these are:
Target
Game
- for regular games on UE versions greater than UE 4.21LessEqual421
- for regular games on UE versions less than or equal to UE 4.21CasePreserving
- for games built with case preserving enabled
Config
Dev
- development buildDebug
- debug buildShipping
- shipping(release) buildTest
- build for tests
Platform
Win64
- 64-bit windows
Configure the project using this command:
xmake f -m "<BuildMode>"
. -m
is an alias for --mode=<BuildMode>.Patternsleuth (Experimental)
By default, the patternsleuth tool installs itself as an xmake package. If you do not intend on modifying the patternsleuth source code, then you don't have to configure anything special. If you want to be able to modify the patternsleuth source code, you have to supply the
--patternsleuth=local
option to xmake config
in order to recompile patternsleuth as part of the UE4SS build.Proxy Path
By default, UE4SS generates a proxy based on
C:\Windows\System32\dwmapi.dll
. If you want to change this for any reason, you can supply the --ue4ssProxyPath=<path proxy dll>
to the xmake config
command..Profiler Flavor
By default, UE4SS uses Tracy for profiling. You can pass
--profilerFlavor=<profiler>
to the xmake config
command to set the profiler flavor. The currently supported flavors are Tracy
, Superluminal
, and None
.Version Check
By default, xmake will check if you have the minimum required version of Rust or MSVC installed (if you are using the MSVC toolchain). If you do not, it will throw an error on the configure step. If you want to ignore this check, you can pass
--versionCheck=n
to the xmake config
command.Once you set the flag, the option value be set until you specify otherwise.
Therefore, to not check versions when running
xmake project -k vsxmake2022
, you must first run the xmake config --versionCheck=n
command, then run the xmake project -k vsxmake2022
command.Helpful
xmake
commandsYou may encounter use for the some of the more advanced
xmake
commands. A non-comprehensive list of some useful commands is included below.SyntaxAliasesUsesOpening in an IDE
Visual Studio / Rider
To generate Visual Studio project files, run the
xmake project -k vsxmake2022 -m "Game__Shipping__Win64"
command.Afterwards open the generated
.sln
file inside of the vsxmake2022
directoryNote that you should also commit & push the submodules that you've updated if the reason why you updated was not because someone else pushed an update, and you're just catching up to it.
Warning
The vs. build plugin performs the compile operation by directly calling the xmake command under vs, and also supports intellisense and definition jumps, as well as breakpoint debugging. This means that modifying the project properties within Visual Studio will not affect which flags are passed to the build when VS executes
xmake
. XMake provides some configurable project settings which can be found in VS under the Project Properties -> Configuration Properties -> Xmake
menu.Caution
If you have multiple Visual Studio versions installed, run
xmake f --vs=2022
, otherwise you may encounter issues with the project generation.Configuring additional modes
Tip
Additional modes can be generated by running
xmake project -k vsxmake2022 -m "Game__Shipping__Win64,Game__Debug__Win64"
. Further explanation can be found in the xmake
command table.Regenerating solution best practices
Caution
If you change your configuration with
xmake config
, you may need to regenerate your Visual Studio solution to pick up on changes to your configuration. You can simply re-run the xmake project -k vsxmake2022 -m "<modes>"
command to regenerate the solution.Building Windows binaries on Linux
We only officially support msvc-wine for cross-compiling.
Make sure you have winbind (libwbclient & samba on Arch) installed.
Caution
You must use xmake v2.9.7 or later, and as of early December 2024, this version is not yet released which means you must install the dev version of xmake.
You need to install the
x86_64-pc-windows-msvc
target (not the windows-gnu
target) with rustup.When invoking
xmake f
, you must set --plat
, --arch
, and --sdk
.You must also use
--ue4ssCross=msvc-wine
, and disable the version check.The following projects are not supported when cross-compiling and are automatically disabled:
proxyproxy_generator
UVTD
When invoking the
xmake
build command, patternsleuth will automatically be built without xmake.The binary files are available in
deps/first/patternsleuth_bind/target/x86_64-pc-windows-msvc
.They are automatically used by xmake when
--ue4ssCross
is set to msvc-wine
.Here's an example of a full command that will build Windows binaries on a Linux machine:
xmake f -m "Game__Shipping__Win64" -p windows -a x64 --sdk=/home/<username>/my_msvc/opt/msvc --versionCheck=n --ue4ssCross=msvc-wine
Debugging under wine
Debugging can be done using
winedbg
.You can also debug minidumps:
winedbg crash_2024_12_26_07_39_15.dmp
Keep in mind that debugging symbols are not stored in the dmp file, and you must have the exact same symbol file (PDB) that your UE4SS.dll was built with.
The easiest way to make sure that you have the correct symbols is to build the exact commit that the dmp file was generated from.
Updating git submodules
If you want to update git submodules, you do so one of three ways:
- You can execute
git submodule update --init --recursive
to update all submodules. - You can also choose to update submodules one by one, by executing
git submodule update --init --recursive deps/<first-or-third>/<Repo>
. Do not use the--remote
option unless you actually want to update to the latest commit. - If you would rather pick a specific commit or branch to update a submodule to then
cd
into the submodule directory for that dependency and executegit checkout <branch name or commit>
. The main dependency you might want to update from time to time isdeps/first/Unreal
.
All contributors since the project became open source: https://github.com/UE4SS-RE/RE-UE4SS/graphs/contributors
- Original Creator The original creator no longer wishes to be involved in or connected to this project. Please respect their wishes, and avoid using their past usernames in connection with this project.
- Archengius
- UHT compatible header generator
- UHT compatible header generator
- CasualGamer
- Injector code & aob scanner is heavily based on his work, 90% of that code is his.
- Injector code & aob scanner is heavily based on his work, 90% of that code is his.
- SunBeam
- Extra signature for function 'GetFullName' for UE4.25.
- Regex to check for proper signature format when loaded from ini.
- Lots and lots of work on signatures
- tomsa
- const char* to vector<int> converter
- tomsa: Idea & most of the code
- Original Creator: Nibblet support
- const char* to vector<int> converter
- boop / usize
- New UFunction hook method
- New UFunction hook method
- RussellJ
- Blueprint Modloader inspiration
- Blueprint Modloader inspiration
- Narknon
- Certain features and maintenance/rehosting of the project
- Certain features and maintenance/rehosting of the project
- DeadMor0z
- Certain features and Lua updates/maintenance
- Certain features and Lua updates/maintenance
- OutTheShade
- Unreal Mappings (USMAP) Generator
- Unreal Mappings (USMAP) Generator
- DmgVol
- Inspiration for map dumper
- Inspiration for map dumper
- Buckminsterfullerene
- Rewriting the documentation, various fixes
- Rewriting the documentation, various fixes
- trumank
- Lua bindings generator, various fixes, automation & improvements
- Lua bindings generator, various fixes, automation & improvements
- localcc
- C++ API
- C++ API
- GreenHouse
- Otis_Inf
- SunBeam
- Motoson
- hooter
- Synopis
- Buckminsterfullerene