Cannot package any project in mordhau sdk editor

Trying to package a map i’m building for testing but everytime I try to package it I get the log below,

LogUObjectHash: Compacting FUObjectHashTables data took 2.61ms
UATHelper: Packaging (Windows (64-bit)): Running AutomationTool…
UATHelper: Packaging (Windows (64-bit)): Parsing command line: -ScriptsForProject=C:/EDITORFORTHEMORDHAU/MORDHAUEditor/Mordhau/MordhauSDK.uproject BuildCookRun -nocompileeditor -installed -nop4 -project=C:/EDITORFORTHEMORDHAU/MORDHAUEditor/Mordhau/MordhauSDK.uproject -cook -stage -archive -archivedirectory=“C:/Encirclement copy and release/Early Release” -pa
ckage -ue4exe=C:\EDITORFORTHEMORDHAU\MORDHAUEditor\InstalledBuild\Windows\Engine\Binaries\Win64\UE4Editor-Cmd.exe -clean -ddc=InstalledDerivedDataBackendGraph -pak -prereqs -distribution -nodebuginfo -targetplatform=Win64 -build -CrashReporter -clientconfig=Shipping -utf8output
UATHelper: Packaging (Windows (64-bit)): Setting up ProjectParams for C:\EDITORFORTHEMORDHAU\MORDHAUEditor\Mordhau\MordhauSDK.uproject
UATHelper: Packaging (Windows (64-bit)): ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Windows (64-bit)): Running: C:\EDITORFORTHEMORDHAU\MORDHAUEditor\InstalledBuild\Windows\Engine\Binaries\DotNET\UnrealBuildTool.exe MordhauGame Win64 Shipping -Project=C:\EDITORFORTHEMORDHAU\MORDHAUEditor\Mordhau\MordhauSDK.uproject -Clean -NoHotReload C:\EDITORFORTHEMORDHAU\MORDHAUEditor\Mordhau\MordhauSDK.uproject -NoUBTMakefiles -rem
oteini=“C:\EDITORFORTHEMORDHAU\MORDHAUEditor\Mordhau” -skipdeploy -distribution -nobuilduht -log=“C:\Users\jacob\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+EDITORFORTHEMORDHAU+MORDHAUEditor+InstalledBuild+Windows\UBT-MordhauGame-Win64-Shipping.txt”
UATHelper: Packaging (Windows (64-bit)): Cleaning MordhauGame binaries…
UATHelper: Packaging (Windows (64-bit)): While compiling C:\EDITORFORTHEMORDHAU\MORDHAUEditor\InstalledBuild\Windows\Engine\Intermediate\Build\BuildRules\UE4Rules.dll:
UATHelper: Packaging (Windows (64-bit)): c:\EDITORFORTHEMORDHAU\MORDHAUEditor\InstalledBuild\Windows\Engine\Plugins\Runtime\ApexDestruction\Source\ThirdParty\PhysX\ApexDestructionLib.Build.cs(22,20) : error CS0246: The type or namespace name ‘PhysXLibraryMode’ could not be found (are you missing a using directive or an assembly reference?)
UATHelper: Packaging (Windows (64-bit)): c:\EDITORFORTHEMORDHAU\MORDHAUEditor\InstalledBuild\Windows\Engine\Plugins\Runtime\PhysXVehicles\Source\ThirdParty\PhysX\PhysXVehicleLib.Build.cs(12,20) : error CS0246: The type or namespace name ‘PhysXLibraryMode’ could not be found (are you missing a using directive or an assembly reference?)
UATHelper: Packaging (Windows (64-bit)): ERROR: Unable to compile source files.
PackagingResults: Error: Unable to compile source files.
UATHelper: Packaging (Windows (64-bit)): Took 0.5358558s to run UnrealBuildTool.exe, ExitCode=6
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool failed. See log for more details. (C:\Users\jacob\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+EDITORFORTHEMORDHAU+MORDHAUEditor+InstalledBuild+Windows\UBT-MordhauGame-Win64-Shipping.txt)
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Unknown Error

I assume the issue is derived from this one
UATHelper: Packaging (Windows (64-bit)): ERROR: Unable to compile source files.
PackagingResults: Error: Unable to compile source files.

I have done a complete reinstall already, ■■■■■■ around with my settings and folders and have been unable to fix this issue, if anyone has a fix to this or any input/advice please let me know,

Thanks in advance
-Pickle

Hello, Welcome to the Forums.

This may be a problem specific to Mordhau, so if you don’t find any help here I’d try posting on the game’s community and/or the games discord server.

I agree, Mordhau operates using a modified UE4 version, so it’s probably a particular conflict with said build. However, the log suggest a few possible causes, two lines in particular:

error CS0246: The type or namespace name ‘PhysXLibraryMode’ could not be found

This means that your current setup is having troubles to read or find the plugins from PhysXLibraryMode. These are tied to NVIDIA PhysX systems.

Considering that, I would go for a full driver cleanup and update. Use DDU to clear your current install, then replace it with nVidia’s Studio drivers, instead of the Game Ready ones, as those are more stable for engine work.

Also, make sure that you have all componets installed from VS2019, which can be checked in the UE4 doc below:

LogD3D12RHI: Error: PageFault: PageFault at VA GPUAddress “0x80000000” (GPU 0)

This one shows UE attempted to access a memory address that was either invalid or corrupted. You can address this with the already covered driver update, as well as clearing your project’s cache, to rule out any corrupted elements. To do so, go to your main directory, and delete the followig folders:

  • Intermediate
  • DerivedDataCache
  • Binaries
  • Saved

After that, re-open the project, and allow it to recompile. The other element in the error is the tie to D3D12RHI. Since UE4 is involved, it would be worth testing a switch to DX11. For that, go to Project Settings > Platforms > Windows, look for “Default RHI” and change it from DirectX 12 to DirectX 11:

If the issue remains active, then by all means, reach out to Mordhau’s community for assistance.