I'm trying to package my game for a friend to test but it keeps failing.

Seems like there’s an issue with a plugin i’m using. I’ve packaged the game with the plugin and haven’t changed anything related to it since then so idk what’s happening.

UATHelper: Packaging (Windows): ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Windows): Running: C:\Program Files\Epic Games\UE_5.1\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\dotnet.exe “C:\Program Files\Epic Games\UE_5.1\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” Project_Pasta Win64 Development -Project=C:\Users\willt\Perforce\Deedls_COMPENDIUM_PP\Project_Pasta\Project_Pasta.uproject C:\Users\willt\Perforce\Deedls_COMPENDIUM_PP\Project_Pasta\Project_Pasta.uproject -NoUBTMakefiles -remoteini=“C:\Users\willt\Perforce\Deedls_COMPENDIUM_PP\Project_Pasta” -skipdeploy -Manifest=C:\Users\willt\Perforce\Deedls_COMPENDIUM_PP\Proje
ct_Pasta\Intermediate\Build\Manifest.xml -NoHotReload -log=“C:\Users\willt\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.1\UBT-Project_Pasta-Win64-Development.txt”
UATHelper: Packaging (Windows): Log file: C:\Users\willt\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.1\UBT-Project_Pasta-Win64-Development.txt
UATHelper: Packaging (Windows): Expecting to find a type to be declared in a module rules named ‘KawaiiPhysics’ in UE5Rules, Version=, Culture=neutral, PublicKeyToken=null. This type must derive from the ‘ModuleRules’ type defined by Unreal Build Tool.
UATHelper: Packaging (Windows): Took 0.6518545s to run dotnet.exe, ExitCode=6
UATHelper: Packaging (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\willt\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.1\UBT-Project_Pasta-Win64-Development.txt)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 2s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Windows): BUILD FAILED
PackagingResults: Error: Unknown Error

Hi Dedlus, the issue that I can see from this UE_LOG is basically Expecting to find a type to be declared in a module rules named ‘KawaiiPhysics’ in UE5Rules which means it is expecting KawaiiPhysics to be declared in Unreal5Rules . So you either disable this module and then try to package again or you can add it to UE5Rules.