Hi, i am coding in ue but when i try to compile it gives me an unspecified error, it just says "Patch could not be activated at the end of compilation without errors or warnings.
I cannot figure out why, but i think it has something to do with the compiler c# files, so i’ll write them here
Note that this project is still pretty small, i just started it.
attritionEditor.Target.cs
using UnrealBuildTool;
using System.Collections.Generic;
public class attritionEditorTarget : TargetRules
{
public attritionEditorTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Editor;
DefaultBuildSettings = BuildSettingsVersion.V2;
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
ExtraModuleNames.AddRange(new string[] { "attrition" });
}
}
attrition.Target.cs
using UnrealBuildTool;
using System.Collections.Generic;
public class attritionTarget : TargetRules
{
public attritionTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Game;
DefaultBuildSettings = BuildSettingsVersion.V2;
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
ExtraModuleNames.AddRange(new string[] { "attrition" });
}
}
attrition.Build.cs
using UnrealBuildTool;
public class attrition : ModuleRules
{
public attrition(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
PublicIncludePaths.AddRange(
new string[] {
"attrition"
}
);
PrivateIncludePaths.AddRange(
new string[] {
}
);
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "HeadMountedDisplay", "ModularGameplay" });
DynamicallyLoadedModuleNames.AddRange(
new string[] {
}
);
// Generate compile errors if using DrawDebug functions in test/shipping builds.
PublicDefinitions.Add("SHIPPING_DRAW_DEBUG_ERROR=1");
}
}
Thanks in advance