ERROR: Expecting to find a type to be declared in a module rules named ‘AdvancedSessions’ in UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null. This type must derive from the ‘ModuleRules’ type defined by Unreal Build Tool.
so i have tried;
migrating project 3 times
cloning project 2 times
moving plugin from porject folder to general unreal plugins folder and vice versa
coudnt find any solution please help! i am using verision 5.01 emphasized text
using UnrealBuildTool;
public class YourGameName : ModuleRules
{
public YourGameName(ReadOnlyTargetRules Target) : base(Target)
{
bLegacyPublicIncludePaths = false;
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
PublicIncludePaths.Add("YourGameName");
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore" });
// Uncomment if you are using Slate UI
PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });
// Uncomment if you are using online features
// PrivateDependencyModuleNames.Add("OnlineSubsystem");
// To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true
}
}
@c0r37py I have the same issue as him, and your Build.cs isn’t working.
My exact error log:
UATHelper: Packaging (Windows): Cleaning SurvivalGame binaries…
UATHelper: Packaging (Windows): Took 1.99s to run dotnet.exe, ExitCode=0
UATHelper: Packaging (Windows): Running: D:\Program Files\Epic Games\UE_5.3\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\dotnet.exe “D:\Program Files\Epic Games\UE_5.3\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” SurvivalGame Win64 DebugGame -Project=“C:\Users\ninja\Documents\Unreal Projects\SurvivalGame\SurvivalGame.uproject” -Manifest=“C:\Users\ninja\Documents\Unreal Projects\SurvivalGame\Intermediate\Build\Manifest.xml” -remoteini=“C:\Users\ninja\Documents\Unreal Projects\SurvivalGame” -skipdeploy -log=“C:\Users\ninja\AppData\Roaming\Unreal Engine\AutomationTool\Logs
D+Program+Files+Epic+Games+UE_5.3\UBT-SurvivalGame-Win64-DebugGame_2.txt”
UATHelper: Packaging (Windows): Log file: C:\Users\ninja\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Program+Files+Epic+Games+UE_5.3\UBT-SurvivalGame-Win64-DebugGame_2.txt
UATHelper: Packaging (Windows): Creating makefile for SurvivalGame (no existing makefile)
UATHelper: Packaging (Windows): Total execution time: 0.63 seconds
UATHelper: Packaging (Windows): Expecting to find a type to be declared in a module rules named ‘AdvancedSessions’ in UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null. This type must derive from the ‘ModuleRules’ type defined by Unreal Build Tool.
UATHelper: Packaging (Windows): Took 0.72s to run dotnet.exe, ExitCode=6
UATHelper: Packaging (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\ninja\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Program+Files+Epic+Games+UE_5.3\UBT-SurvivalGame-Win64-DebugGame_2.txt)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 5s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Windows): BUILD FAILED
you need to check the module rules for ‘AdvancedSessions’ in your project and ensure that it is correctly defined and derived from the ‘ModuleRules’ type as expected by UHT