Issue with packaging project with OmegaGameFramework plugin
Description
I added the OmegaGameFramework plugin to an empty project and tried to package it, but I got some errors related to missing #pragma once in some header files. I tried different solutions, such as converting the project to C++, deleting and regenerating the intermediate and binaries project folders, and deleting and regenerating the intermediate and binaries folders in the plugin, deleting and regenerating the visual studio folders and files, but none of them worked. The plugin works as expected in the editor, but it fails to package.
Environment
Plugin version: 1.3.1 and 1.3 (both give the same error)
Unreal Engine version: 5.1
Operating system: win10
Visual Studio 2022
Errors
Here are the errors I got when packaging:
PackagingResults: Error: "AsyncAction_ActivateAbility.generated.h already included, missing '#pragma once' in AsyncAction_ActivateAbility.h"
PackagingResults: Error: "AsyncAction_FadeCamera.generated.h already included, missing '#pragma once' in AsyncAction_FadeCamera.h"
PackagingResults: Error: "AsyncAction_GameplaySystem.generated.h already included, missing '#pragma once' in AsyncAction_GameplaySystem.h"
PackagingResults: Error: "AttributeModifierContainer.generated.h already included, missing '#pragma once' in AttributeModifierContainer.h"
PackagingResults: Error: "CombatantComponent.generated.h already included, missing '#pragma once' in CombatantComponent.h"
PackagingResults: Error: "DamageFormula.generated.h already included, missing '#pragma once' in DamageFormula.h"
PackagingResults: Error: "DataInterface_AttributeModifier.generated.h already included, missing '#pragma once' in DataInterface_AttributeModifier.h"
PackagingResults: Error: "DataInterface_General.generated.h already included, missing '#pragma once' in DataInterface_General.h"
PackagingResults: Error: "GamePreference.generated.h already included, missing '#pragma once' in GamePreference.h"
PackagingResults: Error: "GamePreferenceScript.generated.h already included, missing '#pragma once' in GamePreferenceScript.h"
PackagingResults: Error: "GameplayTagsInterface.generated.h already included, missing '#pragma once' in GameplayTagsInterface.h"
PackagingResults: Error: "GeneralDataObject.generated.h already included, missing '#pragma once' in GeneralDataObject.h"
PackagingResults: Error: "OmegaSaveSubsystem.generated.h already included, missing '#pragma once' in OmegaSaveSubsystem.h"
PackagingResults: Error: "VolumeUtils.generated.h already included, missing '#pragma once' in VolumeUtils.h"
PackagingResults: Error: "WidgetInterface_Input.generated.h already included, missing '#pragma once' in WidgetInterface_Input.h"
Expected behavior
The project should package successfully with the plugin enabled.
Actual behavior
The project fails to package with the plugin enabled and gives errors related to missing #pragma once in some header files.
Steps to reproduce
Create a new project with the OmegaGameFramework plugin installed.
Try to package the project for any platform.
Observe the errors.
Additional information
The #pragma once does exist in these header files already !!!
I also tried to package for android as I did with older versions of the plugin in ue4.27 but still got the same error.
logs
Building 251 actions with 3 processes...
[1/251] Resource Default.rc2
[2/251] Copy boost_chrono-vc142-mt-x64-1_70.dll
[3/251] Copy tbb.pdb
[4/251] Copy boost_regex-vc142-mt-x64-1_70.dll
[5/251] Copy boost_atomic-vc142-mt-x64-1_70.dll
[6/251] Copy boost_iostreams-vc142-mt-x64-1_70.dll
[7/251] Copy boost_system-vc142-mt-x64-1_70.dll
[8/251] Copy OpenImageDenoise.dll
[9/251] Copy boost_thread-vc142-mt-x64-1_70.dll
[10/251] Copy D3D12Core.dll
[11/251] Copy boost_python39-vc142-mt-x64-1_70.dll
[12/251] Copy tbb.dll
[13/251] Copy tbb12.dll
[14/251] Copy boost_program_options-vc142-mt-x64-1_70.dll
[15/251] Compile SharedPCH.Core.ShadowErrors.InclOrderUnreal5_0.cpp
[16/251] Compile MyProject.cpp
[17/251] Compile SharedPCH.Engine.ShadowErrors.InclOrderUnreal5_0.cpp
[18/251] Compile OmegaDataParserSubsystem.cpp
[19/251] Compile ActorInterface_Combatant.gen.cpp
[20/251] Compile TurnManagerBase.cpp
[21/251] Compile ActorTagEvent.cpp
[22/251] Compile SoftPropertiesInterface.cpp
[23/251] Compile EquipmentComponent.cpp
[24/251] Compile ActorTagEvent.gen.cpp
[25/251] Compile GamePreferenceTag.gen.cpp
[26/251] Compile GamePreferenceTag.cpp
[27/251] Compile WidgetInterface_Input.cpp
[28/251] Compile EventSequenceNode.gen.cpp
[29/251] Compile GeneralDataObject.gen.cpp
[30/251] Compile Menu.cpp
[31/251] Compile GamePreference.gen.cpp
[32/251] Compile OmegaGameManager.cpp
[33/251] Compile CombatantExtensionComponent.gen.cpp
[34/251] Compile OmegaMessageSubsystem.cpp
[35/251] Compile CombatantExtensionComponent.cpp
[36/251] Compile DataList.gen.cpp
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\WidgetInterface_Input.generated.h(14): fatal error C1189: #error: "WidgetInterface_Input.generated.h already included, missing '#pragma once' in WidgetInterface_Input.h"
[37/251] Compile GamePreferenceBool.cpp
[38/251] Compile CombatantFilter.cpp
[39/251] Compile OmegaDamageType.cpp
[40/251] Compile OmegaDataTraitCollection.cpp
[41/251] Compile GamePreferenceInt.gen.cpp
[42/251] Compile DataInterface_SkillSource.cpp
[43/251] Compile DataInterface_ContextAV.cpp
[44/251] Compile AdvancedVolume.cpp
[45/251] Compile DataInterface_Skill.gen.cpp
[46/251] Compile DataAssetCollectionInterface.gen.cpp
[47/251] Compile Menu.gen.cpp
[48/251] Compile OmegaGameplayEffect.gen.cpp
[49/251] Compile OmegaDamageType.gen.cpp
[50/251] Compile SoftEventInterface.gen.cpp
[51/251] Compile OmegaSaveInterface.gen.cpp
[52/251] Compile OmegaSaveGame.cpp
[53/251] Compile GamePreferenceScript.gen.cpp
[54/251] Compile WidgetInterface_Combatant.cpp
[55/251] Compile OmegaInputMode.gen.cpp
[56/251] Compile FileSDKBPLibrary.cpp
[57/251] Compile OmegaEffectPopup.cpp
[58/251] Compile OmegaZoneGameInstanceSubsystem.cpp
[59/251] Compile CombatantComponent.cpp
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Source\OmegaGameFramework\Private\Gameplay\CombatantComponent.cpp(187): warning C4996: 'UKismetTextLibrary::Conv_FloatToText': This method has been deprecated and will be removed. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Source\OmegaGameFramework\Private\Gameplay\CombatantComponent.cpp(204): warning C4996: 'UKismetTextLibrary::Conv_FloatToText': This method has been deprecated and will be removed. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
[60/251] Compile OmegaPlayerSubsystem.cpp
[61/251] Compile OmegaSaveCondition.gen.cpp
[62/251] Compile Module.Flow.1_of_3.cpp
[63/251] Compile InstanceActorComponent.cpp
[64/251] Compile FileSDKCopyFileAsync.gen.cpp
[65/251] Compile OmegaGameMode.gen.cpp
[66/251] Compile OmegaDataTraitCollection.gen.cpp
[67/251] Compile EventTriggerComponent.cpp
[68/251] Compile DataWidgetElement.gen.cpp
[69/251] Compile OmegaDataSubsystem.gen.cpp
[70/251] Compile OmegaSettings.gen.cpp
[71/251] Compile DataAssetCollectionComponent.gen.cpp
[72/251] Compile OmegaGeneralUtils.gen.cpp
[73/251] Compile TurnManagerBase.gen.cpp
[74/251] Compile OmegaSaveSubsystem.cpp
[75/251] Compile OmegaZoneSubsystem.gen.cpp
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Zone\OmegaZonePoint.h(12): error C2143: syntax error: missing ';' before '<class-head>'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Zone\OmegaZonePoint.h(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Zone\OmegaZonePoint.h(14): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
[76/251] Compile OmegaInputMode.cpp
[77/251] Compile OmegaGameplaySystem.cpp
[78/251] Compile DataInterface_ContextAV.gen.cpp
[79/251] Compile GamePreference.cpp
[80/251] Compile GeneralDataObject.cpp
[81/251] Compile LevelingComponent.cpp
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Source\OmegaGameFramework\Private\Attributes\LevelingComponent.cpp(150): warning C4996: 'UKismetTextLibrary::Conv_FloatToText': This method has been deprecated and will be removed. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Source\OmegaGameFramework\Private\Attributes\LevelingComponent.cpp(167): warning C4996: 'UKismetTextLibrary::Conv_FloatToText': This method has been deprecated and will be removed. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
[82/251] Compile DataInterface_Skill.cpp
[83/251] Compile LevelingComponent.gen.cpp
[84/251] Compile CombatantFilter.gen.cpp
[85/251] Compile DataInterface_Combatant.gen.cpp
[86/251] Compile OmegaZone.gen.cpp
[87/251] Compile OmegaSoftPropertyInterface.cpp
[88/251] Compile HUDLayer.gen.cpp
[89/251] Compile CombatantFunctions.gen.cpp
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\DataInterface_AttributeModifier.generated.h(14): fatal error C1189: #error: "DataInterface_AttributeModifier.generated.h already included, missing '#pragma once' in DataInterface_AttributeModifier.h"
[90/251] Compile GamePreferenceFloat.cpp
[91/251] Compile AttributeModifierContainer.gen.cpp
[92/251] Compile SoftEventInterface.cpp
[93/251] Compile OmegaAnimNotify.cpp
[94/251] Compile MenuHandlerComponent.cpp
[95/251] Compile OmegaGameplaySubsystem.cpp
[96/251] Compile OmegaParser.cpp
[97/251] Compile OmegaSaveBase.gen.cpp
[98/251] Compile WidgetInterface_LevelingComponent.gen.cpp
[99/251] Compile OmegaGameFrameworkBPLibrary.cpp
[100/251] Compile OmegaZoneGameInstanceSubsystem.gen.cpp
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Zone\OmegaZoneGameInstanceSubsystem.h(11): error C2143: syntax error: missing ';' before '<class-head>'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Zone\OmegaZoneGameInstanceSubsystem.h(11): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Zone\OmegaZoneGameInstanceSubsystem.h(11): error C3861: 'FOnCompleteZoneLoadOnLevelLoad_DelegateWrapper': identifier not found
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Zone\OmegaZoneGameInstanceSubsystem.h(14): error C2143: syntax error: missing ';' before '<class-head>'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Zone\OmegaZoneGameInstanceSubsystem.h(14): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Zone\OmegaZoneGameInstanceSubsystem.h(16): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\OmegaZoneGameInstanceSubsystem.gen.cpp(43): error C2039: 'StaticRegisterNativesUOmegaZoneGameInstanceSubsystem': is not a member of 'UOmegaZoneGameInstanceSubsystem'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Zone\OmegaZoneGameInstanceSubsystem.h(14): note: see declaration of 'UOmegaZoneGameInstanceSubsystem'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\OmegaZoneGameInstanceSubsystem.gen.cpp(46): error C2509: 'GetPrivateStaticClass': member function not declared in 'UOmegaZoneGameInstanceSubsystem'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Zone\OmegaZoneGameInstanceSubsystem.h(14): note: see declaration of 'UOmegaZoneGameInstanceSubsystem'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\OmegaZoneGameInstanceSubsystem.gen.cpp(131): error C2511: 'UOmegaZoneGameInstanceSubsystem::UOmegaZoneGameInstanceSubsystem(FVTableHelper &)': overloaded member function not found in 'UOmegaZoneGameInstanceSubsystem'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Zone\OmegaZoneGameInstanceSubsystem.h(14): note: see declaration of 'UOmegaZoneGameInstanceSubsystem'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\OmegaZoneGameInstanceSubsystem.gen.cpp(131): error C2550: 'UOmegaZoneGameInstanceSubsystem::{ctor}': constructor initializer lists are only allowed on constructor definitions
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\OmegaZoneGameInstanceSubsystem.gen.cpp(132): error C2600: 'UOmegaZoneGameInstanceSubsystem::~UOmegaZoneGameInstanceSubsystem': cannot define a compiler-generated special member function (must be declared in the class first)
[101/251] Compile DataTooltip.gen.cpp
[102/251] Compile WidgetInterface_LevelingComponent.cpp
[103/251] Compile OmegaGameFramework.cpp
[104/251] Compile ActorStateComponent.cpp
[105/251] Compile GamePreferenceSubsystem.cpp
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Source\OmegaGameFramework\Private\Preferences\GamePreferenceSubsystem.cpp(37): warning C4996: 'IAssetRegistry::GetAssetsByClass': Class names are now represented by path names. Please use a version of this function that uses FTopLevelAssetPath. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
[106/251] Compile OmegaUtilityFunctions.cpp
[107/251] Compile OmegaLevelingAsset.gen.cpp
[108/251] Compile OmegaMessageSubsystem.gen.cpp
[109/251] Compile Module.OmegaSequence.cpp
[110/251] Compile Module.OmegaFlow.cpp
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaFlow\UHT\AsyncAction_ActivateAbility.generated.h(17): fatal error C1189: #error: "AsyncAction_ActivateAbility.generated.h already included, missing '#pragma once' in AsyncAction_ActivateAbility.h"
[111/251] Compile OmegaGameplayEffect.cpp
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Source\OmegaGameFramework\Private\OmegaGameplayEffect.cpp(148): warning C4996: 'UKismetTextLibrary::Conv_FloatToText': This method has been deprecated and will be removed. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
[112/251] Compile OmegaFaction.cpp
[113/251] Compile OmegaData.cpp
[114/251] Compile VolumeUtils.cpp
[115/251] Compile CombatInputUtility.gen.cpp
[116/251] Compile FileAnchor.gen.cpp
[117/251] Compile Module.OmegaMod.cpp
[118/251] Compile DataInterface_AttributeModifier.cpp
[119/251] Compile TimelineActor.cpp
[120/251] Compile WidgetInterface_Combatant.gen.cpp
[121/251] Compile FileSDKFileReader.cpp
[122/251] Compile OmegaAttribute.gen.cpp
[123/251] Compile OmegaSaveGame.gen.cpp
[124/251] Compile OmegaDataSubsystem.cpp
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Source\OmegaData\Private\OmegaDataSubsystem.cpp(24): warning C4996: 'IAssetRegistry::GetAssetsByClass': Class names are now represented by path names. Please use a version of this function that uses FTopLevelAssetPath. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
[125/251] Compile GamePreferenceString.cpp
[126/251] Compile TimelineActor.gen.cpp
[127/251] Compile CombatantFunctions.cpp
[128/251] Compile Module.Omega5_GameFeatures.cpp
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Source\Omega5_GameFeatures\Private\OFunctions_GameFeatures.cpp(12): warning C4996: 'UGameFeaturesSubsystem::GetPluginURLForBuiltInPluginByName': Use GetPluginURLByName instead Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
[129/251] Compile Module.OmegaVisual.cpp
[130/251] Compile DynamicCamera.cpp
[131/251] Compile OmegaEffectPopup.gen.cpp
[132/251] Compile OmegaSettings.cpp
[133/251] Compile CombatantGroupComponent.cpp
[134/251] Compile FileSDKFileInfo.gen.cpp
[135/251] Compile AttributeModifierContainer.cpp
[136/251] Compile OmegaZone.cpp
[137/251] Compile FileSDKCopyFileAsync.cpp
[138/251] Compile OmegaInstanceActor.gen.cpp
[139/251] Compile DataInterface_OmegaEffect.cpp
[140/251] Compile GamePreferenceBool.gen.cpp
[141/251] Compile GamePreferenceString.gen.cpp
[142/251] Compile ActorInterface_Leveling.gen.cpp
[143/251] Compile ActorInterface_Leveling.cpp
[144/251] Compile FileSDKFileReader.gen.cpp
[145/251] Compile OmegaGeneralUtils.cpp
[146/251] Compile FileSDKEncodingOptions.gen.cpp
[147/251] Compile Module.Flow.3_of_3.cpp
[148/251] Compile GamePreferenceInt.cpp
[149/251] Compile OmegaAttribute.cpp
[150/251] Compile MenuHandlerComponent.gen.cpp
[151/251] Compile Module.OmegaUI.cpp
[152/251] Compile OmegaSaveCondition.cpp
[153/251] Compile OmegaZonePoint.cpp
[154/251] Compile GameplaySystemsComponent.cpp
[155/251] Compile FileSDKLineReader.gen.cpp
[156/251] Compile SoftPropertiesInterface.gen.cpp
[157/251] Compile TurnBasedManagerComponent.cpp
[158/251] Compile CombatantTargetIndicator.gen.cpp
[159/251] Compile EventTriggerComponent.gen.cpp
[160/251] Compile OmegaLevelingAsset.cpp
[161/251] Compile OmegaZonePoint.gen.cpp
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Zone\OmegaZonePoint.h(12): error C2143: syntax error: missing ';' before '<class-head>'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Zone\OmegaZonePoint.h(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Zone\OmegaZonePoint.h(14): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\OmegaZonePoint.gen.cpp(21): error C2039: 'StaticRegisterNativesAOmegaZonePoint': is not a member of 'AOmegaZonePoint'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Zone\OmegaZonePoint.h(12): note: see declaration of 'AOmegaZonePoint'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\OmegaZonePoint.gen.cpp(24): error C2509: 'GetPrivateStaticClass': member function not declared in 'AOmegaZonePoint'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Zone\OmegaZonePoint.h(12): note: see declaration of 'AOmegaZonePoint'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\OmegaZonePoint.gen.cpp(68): error C2248: 'AOmegaZonePoint::ShapeMeshRef_sphere': cannot access protected member declared in class 'AOmegaZonePoint'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Zone\OmegaZonePoint.h(27): note: see declaration of 'AOmegaZonePoint::ShapeMeshRef_sphere'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Zone\OmegaZonePoint.h(12): note: see declaration of 'AOmegaZonePoint'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\OmegaZonePoint.gen.cpp(120): error C2511: 'AOmegaZonePoint::AOmegaZonePoint(FVTableHelper &)': overloaded member function not found in 'AOmegaZonePoint'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Zone\OmegaZonePoint.h(12): note: see declaration of 'AOmegaZonePoint'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\OmegaZonePoint.gen.cpp(120): error C2550: 'AOmegaZonePoint::{ctor}': constructor initializer lists are only allowed on constructor definitions
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\OmegaZonePoint.gen.cpp(121): error C2600: 'AOmegaZonePoint::~AOmegaZonePoint': cannot define a compiler-generated special member function (must be declared in the class first)
[162/251] Compile DataInterface_DamageModifier.cpp
[163/251] Compile OmegaGameMode.cpp
[164/251] Compile OmegaDataTrait.gen.cpp
[165/251] Compile OmegaAttributeSet.gen.cpp
[166/251] Compile HUDLayer.cpp
[167/251] Compile EquipmentComponent.gen.cpp
[168/251] Compile CombatantTargetIndicator.cpp
[169/251] Compile OmegaGameplaySubsystem.gen.cpp
[170/251] Compile FileSDKFileType.gen.cpp
[171/251] Compile OmegaSaveGlobal.gen.cpp
[172/251] Compile DataWidget.gen.cpp
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\WidgetInterface_Input.generated.h(14): fatal error C1189: #error: "WidgetInterface_Input.generated.h already included, missing '#pragma once' in WidgetInterface_Input.h"
[173/251] Compile ActorStateComponent.gen.cpp
[174/251] Compile CombatantGroupComponent.gen.cpp
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Gameplay\Combatant\CombatantGroupComponent.h(12): error C2143: syntax error: missing ';' before '<class-head>'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Gameplay\Combatant\CombatantGroupComponent.h(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Gameplay\Combatant\CombatantGroupComponent.h(12): error C3861: 'FOnCombatantSetInGroup_DelegateWrapper': identifier not found
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Gameplay\Combatant\CombatantGroupComponent.h(15): error C2143: syntax error: missing ';' before '<class-head>'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Gameplay\Combatant\CombatantGroupComponent.h(15): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Gameplay\Combatant\CombatantGroupComponent.h(17): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(69): error C2039: 'execSetPrimitiveComponentRegister': is not a member of 'UCombatantGroupComponent'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Gameplay\Combatant\CombatantGroupComponent.h(15): note: see declaration of 'UCombatantGroupComponent'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(75): error C2065: 'ThisClass': undeclared identifier
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(75): error C2059: syntax error: ')'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(78): error C2039: 'execGetCombatants': is not a member of 'UCombatantGroupComponent'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Gameplay\Combatant\CombatantGroupComponent.h(15): note: see declaration of 'UCombatantGroupComponent'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(82): error C2065: 'ThisClass': undeclared identifier
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(82): error C2059: syntax error: ')'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(85): error C2039: 'execSetCombatantInGroup': is not a member of 'UCombatantGroupComponent'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Gameplay\Combatant\CombatantGroupComponent.h(15): note: see declaration of 'UCombatantGroupComponent'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(91): error C2065: 'ThisClass': undeclared identifier
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(91): error C2059: syntax error: ')'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(94): error C2039: 'execGetCombatantOfIndex': is not a member of 'UCombatantGroupComponent'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Gameplay\Combatant\CombatantGroupComponent.h(15): note: see declaration of 'UCombatantGroupComponent'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(99): error C2065: 'ThisClass': undeclared identifier
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(99): error C2059: syntax error: ')'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(102): error C2039: 'execIsGroupFull': is not a member of 'UCombatantGroupComponent'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Gameplay\Combatant\CombatantGroupComponent.h(15): note: see declaration of 'UCombatantGroupComponent'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(106): error C2065: 'ThisClass': undeclared identifier
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(106): error C2059: syntax error: ')'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(109): error C2039: 'StaticRegisterNativesUCombatantGroupComponent': is not a member of 'UCombatantGroupComponent'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Gameplay\Combatant\CombatantGroupComponent.h(15): note: see declaration of 'UCombatantGroupComponent'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(113): error C2039: 'execGetCombatantOfIndex': is not a member of 'UCombatantGroupComponent'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Gameplay\Combatant\CombatantGroupComponent.h(15): note: see declaration of 'UCombatantGroupComponent'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(114): error C2039: 'execGetCombatants': is not a member of 'UCombatantGroupComponent'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Gameplay\Combatant\CombatantGroupComponent.h(15): note: see declaration of 'UCombatantGroupComponent'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(115): error C2039: 'execIsGroupFull': is not a member of 'UCombatantGroupComponent'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Gameplay\Combatant\CombatantGroupComponent.h(15): note: see declaration of 'UCombatantGroupComponent'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(116): error C2039: 'execSetCombatantInGroup': is not a member of 'UCombatantGroupComponent'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Gameplay\Combatant\CombatantGroupComponent.h(15): note: see declaration of 'UCombatantGroupComponent'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(117): error C2039: 'execSetPrimitiveComponentRegister': is not a member of 'UCombatantGroupComponent'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Gameplay\Combatant\CombatantGroupComponent.h(15): note: see declaration of 'UCombatantGroupComponent'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(359): error C2509: 'GetPrivateStaticClass': member function not declared in 'UCombatantGroupComponent'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Gameplay\Combatant\CombatantGroupComponent.h(15): note: see declaration of 'UCombatantGroupComponent'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(505): error C2511: 'UCombatantGroupComponent::UCombatantGroupComponent(FVTableHelper &)': overloaded member function not found in 'UCombatantGroupComponent'
D:\Unreal Engine 4\UE_5.1\Engine\Source\OmegaGameFramework\Public\Gameplay\Combatant\CombatantGroupComponent.h(15): note: see declaration of 'UCombatantGroupComponent'
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(505): error C2550: 'UCombatantGroupComponent::{ctor}': constructor initializer lists are only allowed on constructor definitions
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\CombatantGroupComponent.gen.cpp(506): error C2600: 'UCombatantGroupComponent::~UCombatantGroupComponent': cannot define a compiler-generated special member function (must be declared in the class first)
[175/251] Compile InstanceActorComponent.gen.cpp
[176/251] Compile OmegaSaveGlobal.cpp
[177/251] Compile AdvancedVolume.gen.cpp
[178/251] Compile OmegaSaveSubsystem.gen.cpp
[179/251] Compile OmegaAbility.gen.cpp
[180/251] Compile OmegaZoneSubsystem.cpp
[181/251] Compile DataInterface_SkillSource.gen.cpp
[182/251] Compile DataWidget.cpp
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Source\OmegaGameFramework\Private\Widget\DataWidget.cpp(119): warning C4996: 'UWidget::bIsEnabled': Direct access to bIsEnabled is deprecated. Please use the getter or setter. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
[183/251] Compile OmegaGameplayModule.cpp
[184/251] Compile DamageFormula.cpp
[185/251] Compile FileSDK.init.gen.cpp
[186/251] Compile InputReceiverComponent.gen.cpp
[187/251] Compile DataAssetCollectionInterface.cpp
[188/251] Compile OmegaSoftPropertyInterface.gen.cpp
[189/251] Compile DataInterface_General.cpp
[190/251] Compile DataInterface_AttributeModifier.gen.cpp
[191/251] Compile OmegaBGMSubsystem.gen.cpp
[192/251] Compile FileSDK.cpp
[193/251] Compile OmegaGameplaySystem.gen.cpp
[194/251] Compile OmegaGameSettings.cpp
[195/251] Compile OmegaDataParserSubsystem.gen.cpp
[196/251] Compile CombatInputUtility.cpp
[197/251] Compile OmegaSaveInterface.cpp
[198/251] Compile FileSDKBPLibrary.gen.cpp
[199/251] Compile EventSequence.cpp
[200/251] Compile OmegaData.init.gen.cpp
[201/251] Compile GameplayTagsInterface.gen.cpp
[202/251] Compile VolumeUtils.gen.cpp
[203/251] Compile OmegaDataSettings.cpp
[204/251] Compile OmegaAnimNotify.gen.cpp
[205/251] Compile GameplayTagsInterface.cpp
[206/251] Compile DataWidgetElement.cpp
[207/251] Compile DataItemComponent.cpp
[208/251] Compile GamePreferenceFloat.gen.cpp
[209/251] Compile OmegaFaction.gen.cpp
[210/251] Compile OmegaAbility.cpp
[211/251] Compile DataTooltip.cpp
[212/251] Compile OmegaUtils_General.gen.cpp
[213/251] Compile ActorInterface_TurnOrderCombatant.gen.cpp
[214/251] Compile GameplaySystemsComponent.gen.cpp
[215/251] Compile CombatantComponent.gen.cpp
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\DataInterface_AttributeModifier.generated.h(14): fatal error C1189: #error: "DataInterface_AttributeModifier.generated.h already included, missing '#pragma once' in DataInterface_AttributeModifier.h"
[216/251] Compile OmegaDataSettings.gen.cpp
[217/251] Compile DamageFormula.gen.cpp
[218/251] Compile DataInterface_General.gen.cpp
[219/251] Compile WidgetInterface_Input.gen.cpp
[220/251] Compile DataList.cpp
[221/251] Compile OmegaSaveBase.cpp
[222/251] Compile OmegaGameFramework.init.gen.cpp
[223/251] Compile OmegaDataItem.cpp
[224/251] Compile DynamicCamera.gen.cpp
[225/251] Compile GamePreferenceSubsystem.gen.cpp
[226/251] Compile GamePreferenceScript.cpp
[227/251] Compile TurnBasedManagerComponent.gen.cpp
[228/251] Compile OmegaPlayerSubsystem.gen.cpp
[229/251] Compile OmegaBGMSubsystem.cpp
[230/251] Compile OmegaGameSettings.gen.cpp
[231/251] Compile ActorInterface_Combatant.cpp
[232/251] Compile DataInterface_OmegaEffect.gen.cpp
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\GameplayTagsInterface.generated.h(15): fatal error C1189: #error: "GameplayTagsInterface.generated.h already included, missing '#pragma once' in GameplayTagsInterface.h"
[233/251] Compile InputReceiverComponent.cpp
[234/251] Compile DataInterface_DamageModifier.gen.cpp
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\DataInterface_AttributeModifier.generated.h(14): fatal error C1189: #error: "DataInterface_AttributeModifier.generated.h already included, missing '#pragma once' in DataInterface_AttributeModifier.h"
[235/251] Compile OmegaDataTrait.cpp
[236/251] Compile EventSequenceNode.cpp
[237/251] Compile OmegaGameFrameworkBPLibrary.gen.cpp
[238/251] Compile DataAssetCollectionComponent.cpp
[239/251] Compile Module.OmegaDemo.cpp
D:\Unreal Projects\MyProject5.1\Plugins\OmegaGameFramework\Intermediate\Build\Win64\UnrealGame\Inc\OmegaGameFramework\UHT\OmegaSaveSubsystem.generated.h(23): fatal error C1189: #error: "OmegaSaveSubsystem.generated.h already included, missing '#pragma once' in OmegaSaveSubsystem.h"
[240/251] Compile ActorInterface_TurnOrderCombatant.cpp
[241/251] Compile OmegaAttributeSet.cpp
[242/251] Compile OmegaGameManager.gen.cpp
[243/251] Compile OmegaInstanceActor.cpp
[244/251] Compile OmegaGameplayModule.gen.cpp
[245/251] Compile EventSequence.gen.cpp
[246/251] Compile DataItemComponent.gen.cpp
[247/251] Compile OmegaUtilityFunctions.gen.cpp
[248/251] Compile OmegaDataItem.gen.cpp
[249/251] Compile Module.Flow.2_of_3.cpp
[250/251] Link MyProject-Win64-Shipping.exe cancelled
[251/251] WriteMetadata MyProject-Win64-Shipping.target cancelled
Took 734.3851419s to run dotnet.exe, ExitCode=6
AutomationTool executed for 0h 12m 17s
AutomationTool exiting with ExitCode=6 (6)
BUILD FAILED
Issue with packaging project with OmegaGameFramework plugin
Description
I added the OmegaGameFramework plugin to an empty project and tried to package it, but I got some errors related to missing
#pragma once
in some header files. I tried different solutions, such as converting the project to C++, deleting and regenerating the intermediate and binaries project folders, and deleting and regenerating the intermediate and binaries folders in the plugin, deleting and regenerating the visual studio folders and files, but none of them worked. The plugin works as expected in the editor, but it fails to package.Environment
Errors
Here are the errors I got when packaging:
Expected behavior
The project should package successfully with the plugin enabled.
Actual behavior
The project fails to package with the plugin enabled and gives errors related to missing
#pragma once
in some header files.Steps to reproduce
Additional information
The
#pragma once
does exist in these header files already !!! I also tried to package for android as I did with older versions of the plugin in ue4.27 but still got the same error. logs