Skip to content

LabrynthKing/UE4SS-CPP-ModTemplate

Repository files navigation

UE4SS-CPP-ModTemplate

A Simple Mod Template For UE4SS C++ Mods


Usage:-

Requirements:-

Universal Requirements:-

Windows Requirements:-

Linux Requirements:-

Building:-

  1. Clone The Repository
git clone git@github.com:LabrynthKing/UE4SS-CPP-ModTemplate.git
cd UE4SS-CPP-ModTemplate
  1. Update Submodules
git submodule update --init --recursive
  1. IF ON LINUX Make Sure Xwin Is Setup And Set XWIN_DIR Environment Variable As The ~/.xwin-cache Directory
xwin --accept-license splat --output ~/.xwin-cache
  1. Depending On Your Platform, Generate CMake Build Files
# Windows
cmake -G "Visual Studio 19 2026" -DCMAKE_BUILD_TYPE=Game__Shipping__Win64 -S . -B ./cmake_shipping

# Linux
cmake -G Ninja -DCMAKE_BUILD_TYPE=Game__Shipping__Win64 -DCMAKE_MAKE_PROGRAM="$NINJA_PATH" -S . -B ./cmake_shipping
  1. Build Using CMake
# Windows (Adjust Processor Cores According To Your Choice)
cmake --build ./cmake_shipping --config Game__Shipping__Win64 -j 8

# Linux
cmake --build ./cmake_shipping -j (nproc)
  1. Your Mod File Should Be Named main.dll And Available In The cmake_shipping Directory

Adding Your Mod In-Game:-

  1. Make Sure UE4SS Is Installed
  2. Your File Tree Should Look Like This:-
ue4ss/
  |_Mods/
      |_MyMod/
          |_enabled.txt (optional)
          |_dlls/
             |_main.dll
  1. You Can Either Add This Line To ue4ss/Mods/mods.txt
MyMod : 1
  1. Or You Can Use enabled.txt If Your Mod Doesn't Care About Load Order

Credits:-

About

A Simple Mod Template For UE4SS C++ Mods

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors