To ensure your mod is loaded by the game, it needs to be in a .pak
file, and if our game has IOStore enabled then 3 files; .pak
, .utoc
, and .ucas
.
To get UnrealPak scripts, download it from UnrealPak
Create a folder that will contain the scripts, raw mod folder and output pak files, similar to this:
(Extract the provided UnrealPak zip file)
For every mod, a mod folder with the exact folder structure is required.
Modname_P\GameName\Content\...
Structure
- Replace the modname with your actual mod name.
- Ensure the folder ends with
_P
(important). - Replace GameName with the binary name of your game.
Depending on the mod and which files it overrides, it will have the same folder hierarchy followed by the original game folder hierarchy, which is visible in FModel and UModel.
Examples
A mod folder for a mod that replaces textures in Ghostrunner;
\NewTex_P\Ghostrunner\Content\Visual\Characters\Hero_Swords\Mat\Tex
A mod folder for a mod that replaces a weapon model in Trepang2;
\newPistol_P\CPPFPS\Content\Weapon\Pistol
Once the folder structure is created, copy the necessary files, that needs to be overwritten or added.
If you compiled the project content within UE editor - copy the files you want to be included in the mod.
In order to modify/overwrite the game's files with your custom files, you have to have the same folder structure and the same file names for the files, matching the original file paths/files.
For example
In an example of a texture mod, the following folder stucture is used:
\modname_P\Ghostrunner\Content\Visual\Characters\Hero_Swords\Mat\Tex\
The content of the following folder is:
Simple, just drag the mod folder onto the UnrealPak-With-compression.bat
to begin packaging the mod folder.
Shortly after, a pak file with the same name will be created.
- Navigate to the Paks folder of the game.
Usually it's following this pattern:
...\GameName\GameName\Content\Paks
For example, Ghostrunner game:
...\Ghostrunner\Ghostrunner\Content\Paks
- Copy the generated pak file into the game's Paks folder.
- Rename the pak file to suit your mod purpose.
- Make sure the name ends with
_P
(IMPORTANT).
For example:myMod_P.pak