I have this strange error in C. What can it be?
Do you have the workspace open? Did you do Tools > Refresh VS Code Project after creating the class?
No I didnât. Whats this and where is it?
In Unreal
maybe I supposed to use Xcode? But if so, the lecturer messed up at this point. Since paying attention on Mac by telling how to download, he forgot to assist people on Mac to how to connect the project with Xcode
You only need to install Xcode to install the compiler, VS Code can be used on macOS with Unreal.
What does More Info tell you from the bottom prompt? You can probably ignore the first one as that is for debugging specifically.
I downloaded something from their website and nothing particular has changed
one my friend says that it can be circular dependency
Iâm a little confused, clicking âMore Infoâ in the screenshot made you download something?
I donât see how that would have anything to do the dialogue boxes you have.
yea, something like âdownload the most suitableâ something. It was vscode 3 for some reason, but I didnât notice that anything changed
anyway, do you have any idea about what can it be? Iâm kinda furious that I canât keep going for that long
Could you show the problems window?
Setting up bundled DotNet SDK
/Users/Shared/Epic Games/UE_5.1/Engine/Build/BatchFiles/Mac/âŚ/âŚ/âŚ/Binaries/ThirdParty/DotNet/6.0.302/mac-x64
Running dotnet Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll -ModuleWithSuffix=ObstacleAssault,0221 ObstacleAssaultEditor Mac Development -Project=/Users/admin/Documents/Unreal Projects/ObstacleAssault/ObstacleAssault.uproject /Users/admin/Documents/Unreal Projects/ObstacleAssault/ObstacleAssault.uproject -IgnoreJunk
Log file: /Users/admin/Library/Application Support/Epic/UnrealBuildTool/Log.txt
Invalidating makefile for ObstacleAssaultEditor (working set of source files changed)
/Applications/Xcode.app/Contents/Developer
Parsing headers for ObstacleAssaultEditor
Running Internal UnrealHeaderTool â/Users/admin/Documents/Unreal Projects/ObstacleAssault/ObstacleAssault.uprojectâ â/Users/admin/Documents/Unreal Projects/ObstacleAssault/Intermediate/Build/Mac/x86_64/ObstacleAssaultEditor/Development/ObstacleAssaultEditor.uhtmanifestâ -WarningsAsErrors -installed
Total of 0 written
Reflection code generated for ObstacleAssaultEditor in 4.1976121 seconds
Building ObstacleAssaultEditorâŚ
[Upgrade]
[Upgrade] Using backward-compatible include order. The latest version of UE has changed the order of includes, which may require code changes. The current setting is:
[Upgrade] IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_0
[Upgrade] Suppress this message by setting âIncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_1;â in ObstacleAssaultEditor.Target.cs.
[Upgrade] Alternatively you can set this to âEngineIncludeOrderVersion.Latestâ to always use the latest include order. This will potentially cause compile errors when integrating new versions of the engine.
[Upgrade]
Determining max actions to execute in parallel (8 physical cores, 8 logical cores)
Executing up to 8 processes, one per physical core
Requested 1.5 GB free memory per action, 4.4 GB available: limiting max parallel actions to 2
Building 4 actions with 2 processesâŚ
[1/4] WriteMetadata ObstacleAssaultEditor.target cancelled
[2/4] Link UnrealEditor-ObstacleAssault-0221.dylib cancelled
[3/4] Compile movingPlatform.cpp
In file included from /Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.cpp:4:
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:31:2: error: unknown type name âUPROPPERTYâ
UPROPPERTY(EditAnywhere)
^
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:31:26: error: expected â;â at end of declaration list
UPROPPERTY(EditAnywhere)
^
;
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:29:28: error: invalid digit âfâ in octal constant
float PlatformDistance = 0f;
^
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:11:2: error: cannot initialize return object of type âUObject *â with an rvalue of type âAmovingPlatform *â
GENERATED_BODY()
^~~~~~~~~~~~~~~~
/Users/Shared/Epic Games/UE_5.1/Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectMacros.h:698:29: note: expanded from macro âGENERATED_BODYâ
#define GENERATED_BODY(âŚ) BODY_MACRO_COMBINE(CURRENT_FILE_ID,_,LINE,_GENERATED_BODY);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Shared/Epic Games/UE_5.1/Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectMacros.h:693:37: note: expanded from macro âBODY_MACRO_COMBINEâ
#define BODY_MACRO_COMBINE(A,B,C,D) BODY_MACRO_COMBINE_INNER(A,B,C,D)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Shared/Epic Games/UE_5.1/Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectMacros.h:692:43: note: expanded from macro âBODY_MACRO_COMBINE_INNERâ
#define BODY_MACRO_COMBINE_INNER(A,B,C,D) A##B##C##D
^~~~~~~~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Intermediate/Build/Mac/x86_64/UnrealEditor/Inc/ObstacleAssault/UHT/movingPlatform.generated.h:85:2: note: expanded from macro âFID_admin_Documents_Unreal_Projects_ObstacleAssault_Source_ObstacleAssault_movingPlatform_h_11_GENERATED_BODYâ
FID_admin_Documents_Unreal_Projects_ObstacleAssault_Source_ObstacleAssault_movingPlatform_h_11_ENHANCED_CONSTRUCTORS
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Intermediate/Build/Mac/x86_64/UnrealEditor/Inc/ObstacleAssault/UHT/movingPlatform.generated.h:60:2: note: expanded from macro âFID_admin_Documents_Unreal_Projects_ObstacleAssault_Source_ObstacleAssault_movingPlatform_h_11_ENHANCED_CONSTRUCTORSâ
DEFINE_VTABLE_PTR_HELPER_CTOR_CALLER(AmovingPlatform);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Shared/Epic Games/UE_5.1/Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectMacros.h:1785:11: note: expanded from macro âDEFINE_VTABLE_PTR_HELPER_CTOR_CALLERâ
return new (EC_InternalUseOnlyConstructor, (UObject*)GetTransientPackage(), NAME_None, RF_NeedLoad | RF_ClassDefaultObject | RF_TagGarbageTemp) TClass(Helper);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.cpp:17:9: error: cannot initialize object parameter of type âAActorâ with an expression of type âAmovingPlatformâ
Super::BeginPlay();
^~~~~~~~~
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.cpp:19:21: error: cannot initialize object parameter of type âconst AActorâ with an expression of type âAmovingPlatformâ
StartingLocation = GetActorLocation();
^~~~~~~~~~~~~~~~
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.cpp:28:9: error: cannot initialize object parameter of type âAActorâ with an expression of type âAmovingPlatformâ
Super::Tick(DeltaTime);
^~~~
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.cpp:31:28: error: cannot initialize object parameter of type âconst AActorâ with an expression of type âAmovingPlatformâ
FVector CurrentLocation = GetActorLocation();
^~~~~~~~~~~~~~~~
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.cpp:33:2: error: cannot initialize object parameter of type âAActorâ with an expression of type âAmovingPlatformâ
SetActorLocation(CurrentLocation);
^~~~~~~~~~~~~~~~
9 errors generated.
[4/4] Compile movingPlatform.gen.cpp
In file included from /Users/admin/Documents/Unreal Projects/ObstacleAssault/Intermediate/Build/Mac/x86_64/UnrealEditor/Inc/ObstacleAssault/UHT/movingPlatform.gen.cpp:8:
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:31:2: error: unknown type name âUPROPPERTYâ
UPROPPERTY(EditAnywhere)
^
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:31:26: error: expected â;â at end of declaration list
UPROPPERTY(EditAnywhere)
^
;
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:29:28: error: invalid digit âfâ in octal constant
float PlatformDistance = 0f;
^
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:11:2: error: cannot initialize return object of type âUObject *â with an rvalue of type âAmovingPlatform *â
GENERATED_BODY()
^~~~~~~~~~~~~~~~
/Users/Shared/Epic Games/UE_5.1/Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectMacros.h:698:29: note: expanded from macro âGENERATED_BODYâ
#define GENERATED_BODY(âŚ) BODY_MACRO_COMBINE(CURRENT_FILE_ID,_,LINE,_GENERATED_BODY);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Shared/Epic Games/UE_5.1/Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectMacros.h:693:37: note: expanded from macro âBODY_MACRO_COMBINEâ
#define BODY_MACRO_COMBINE(A,B,C,D) BODY_MACRO_COMBINE_INNER(A,B,C,D)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Shared/Epic Games/UE_5.1/Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectMacros.h:692:43: note: expanded from macro âBODY_MACRO_COMBINE_INNERâ
#define BODY_MACRO_COMBINE_INNER(A,B,C,D) A##B##C##D
^~~~~~~~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Intermediate/Build/Mac/x86_64/UnrealEditor/Inc/ObstacleAssault/UHT/movingPlatform.generated.h:85:2: note: expanded from macro âFID_admin_Documents_Unreal_Projects_ObstacleAssault_Source_ObstacleAssault_movingPlatform_h_11_GENERATED_BODYâ
FID_admin_Documents_Unreal_Projects_ObstacleAssault_Source_ObstacleAssault_movingPlatform_h_11_ENHANCED_CONSTRUCTORS
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Intermediate/Build/Mac/x86_64/UnrealEditor/Inc/ObstacleAssault/UHT/movingPlatform.generated.h:60:2: note: expanded from macro âFID_admin_Documents_Unreal_Projects_ObstacleAssault_Source_ObstacleAssault_movingPlatform_h_11_ENHANCED_CONSTRUCTORSâ
DEFINE_VTABLE_PTR_HELPER_CTOR_CALLER(AmovingPlatform);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Shared/Epic Games/UE_5.1/Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectMacros.h:1785:11: note: expanded from macro âDEFINE_VTABLE_PTR_HELPER_CTOR_CALLERâ
return new (EC_InternalUseOnlyConstructor, (UObject*)GetTransientPackage(), NAME_None, RF_NeedLoad | RF_ClassDefaultObject | RF_TagGarbageTemp) TClass(Helper);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 errors generated.
You have misspelled UPROPERTY
Also note this wouldnât have anything to do with IntelliSense error in your original post.
Oh yeah, I see, but look what I get after compilation now
Setting up bundled DotNet SDK
/Users/Shared/Epic Games/UE_5.1/Engine/Build/BatchFiles/Mac/âŚ/âŚ/âŚ/Binaries/ThirdParty/DotNet/6.0.302/mac-x64
Running dotnet Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll -ModuleWithSuffix=ObstacleAssault,9900 ObstacleAssaultEditor Mac Development -Project=/Users/admin/Documents/Unreal Projects/ObstacleAssault/ObstacleAssault.uproject /Users/admin/Documents/Unreal Projects/ObstacleAssault/ObstacleAssault.uproject -IgnoreJunk
Log file: /Users/admin/Library/Application Support/Epic/UnrealBuildTool/Log.txt
Invalidating makefile for ObstacleAssaultEditor (working set of source files changed)
/Applications/Xcode.app/Contents/Developer
Parsing headers for ObstacleAssaultEditor
Running Internal UnrealHeaderTool â/Users/admin/Documents/Unreal Projects/ObstacleAssault/ObstacleAssault.uprojectâ â/Users/admin/Documents/Unreal Projects/ObstacleAssault/Intermediate/Build/Mac/x86_64/ObstacleAssaultEditor/Development/ObstacleAssaultEditor.uhtmanifestâ -WarningsAsErrors -installed
Total of 2 written
Reflection code generated for ObstacleAssaultEditor in 3.7608498 seconds
Building ObstacleAssaultEditorâŚ
[Upgrade]
[Upgrade] Using backward-compatible include order. The latest version of UE has changed the order of includes, which may require code changes. The current setting is:
[Upgrade] IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_0
[Upgrade] Suppress this message by setting âIncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_1;â in ObstacleAssaultEditor.Target.cs.
[Upgrade] Alternatively you can set this to âEngineIncludeOrderVersion.Latestâ to always use the latest include order. This will potentially cause compile errors when integrating new versions of the engine.
[Upgrade]
Determining max actions to execute in parallel (8 physical cores, 8 logical cores)
Executing up to 8 processes, one per physical core
Requested 1.5 GB free memory per action, 3.26 GB available: limiting max parallel actions to 2
Building 5 actions with 2 processesâŚ
[1/5] Compile movingPlatform.cpp
In file included from /Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.cpp:4:
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:29:28: error: invalid digit âfâ in octal constant
float PlatformDistance = 0f;
^
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:32:26: error: invalid digit âfâ in octal constant
float DistancePassed = 0f;
^
2 errors generated.
[2/5] Compile movingPlatform.gen.cpp
In file included from /Users/admin/Documents/Unreal Projects/ObstacleAssault/Intermediate/Build/Mac/x86_64/UnrealEditor/Inc/ObstacleAssault/UHT/movingPlatform.gen.cpp:8:
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:29:28: error: invalid digit âfâ in octal constant
float PlatformDistance = 0f;
^
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:32:26: error: invalid digit âfâ in octal constant
float DistancePassed = 0f;
^
2 errors generated.
[3/5] Compile ObstacleAssault.init.gen.cpp
[4/5] Link UnrealEditor-ObstacleAssault-9900.dylib cancelled
[5/5] WriteMetadata ObstacleAssaultEditor.target cancelled
I just noticed that there is an error with typing f in the end of the float number. what a heck? I thought it is literate to do that or its only in c#?
There needs to be a .
between the 0 and f. 0 is the start of an octal number which is what the error is talking about i.e. 010
should be 8
it is done now, all good. you helped me with uproperty, thank you!
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.