tomlooman / EpicSurvivalGame

Third-person Survival Game for Unreal Engine (Sample Project)
https://www.tomlooman.com/unreal-engine-cpp-survival-sample-game/
MIT License
3.24k stars 1.18k forks source link

Cannot compile #19

Closed jonny2027 closed 8 years ago

jonny2027 commented 8 years ago

I have just downloaded this branch and I cannot compile with 4.9.2, 4.10.2 or 4.11.0

Can someone tell me if i need a lower version and also where i would find a log of the error when trying to compile UE4Editor-SurvivalGame.dylib as when it fails the log disapears. I managed to get a little bit of the log

[2016.01.28-16.52.42:862][ 0] [2016.01.28-16.52.42:862][ 0]Running Mono... [2016.01.28-16.52.42:862][ 0] [2016.01.28-16.52.43:168][ 0]Setting up Mono [2016.01.28-16.52.43:168][ 0]/Users/Shared/UnrealEngine/4.9/Engine /Users/Shared/UnrealEngine/4.9/Engine/Binaries/Mac [2016.01.28-16.52.44:397][ 0]Compiling with MacOSX SDK 10.11 [2016.01.28-16.52.50:425][ 0]@progress push 5% [2016.01.28-16.52.51:144][ 0]@progress pop [2016.01.28-16.52.51:556][ 0]Generating dSYM file for UE4Editor-SurvivalGame.dylib - this will add some time to your build... [2016.01.28-16.52.51:661][ 0]Performing 19 actions (8 in parallel) [2016.01.28-16.52.51:663][ 0][1/19] Compile SurvivalGame.generated.cpp [2016.01.28-16.52.51:663][ 0][4/19] Compile SZombieAIController.cpp [2016.01.28-16.52.51:663][ 0][2/19] Compile BTTask_FindBotWaypoint.cpp [2016.01.28-16.52.51:664][ 0][3/19] Compile BTTask_FindPatrolLocation.cpp [2016.01.28-16.52.51:664][ 0][6/19] Compile SCharacter.cpp [2016.01.28-16.52.51:664][ 0][5/19] Compile SZombieCharacter.cpp [2016.01.28-16.52.51:664][ 0][7/19] Compile SWeapon.cpp [2016.01.28-16.52.51:664][ 0][8/19] Compile SWeaponPickup.cpp [2016.01.28-16.52.55:264][ 0]In file included from /Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/SCharacter.cpp:4: [2016.01.28-16.52.55:264][ 0]../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SCharacter.h:93:39: error: only virtual member functions can be marked 'override' [2016.01.28-16.52.55:264][ 0] void OnLanded(const FHitResult& Hit) override; [2016.01.28-16.52.55:264][ 0] ^~~~~~~~ [2016.01.28-16.52.55:264][ 0]In file included from /Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/SWeapon.cpp:4: [2016.01.28-16.52.55:264][ 0]In file included from ../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SWeapon.h:6: [2016.01.28-16.52.55:264][ 0]../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SCharacter.h:93:39: error: only virtual member functions can be marked 'override' [2016.01.28-16.52.55:264][ 0] void OnLanded(const FHitResult& Hit) override; [2016.01.28-16.52.55:265][ 0] ^~~~~~~~ [2016.01.28-16.52.55:265][ 0]In file included from /Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/SWeaponPickup.cpp:4: [2016.01.28-16.52.55:265][ 0]../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SCharacter.h:93:39: error: only virtual member functions can be marked 'override' [2016.01.28-16.52.55:265][ 0] void OnLanded(const FHitResult& Hit) override; [2016.01.28-16.52.55:265][ 0] ^~~~~~~~ [2016.01.28-16.52.55:265][ 0]/Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/SCharacter.cpp:212:14: warning: 'LineTraceSingle' is deprecated: Use LineTraceSingleByChannel instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [-Wdeprecated-declarations] [2016.01.28-16.52.55:265][ 0] GetWorld()->LineTraceSingle(Hit, TraceStart, TraceEnd, ECC_Visibility, TraceParams); [2016.01.28-16.52.55:265][ 0] ^ [2016.01.28-16.52.55:265][ 0]/Users/Shared/UnrealEngine/4.9/Engine/Source/Runtime/Engine/Classes/Engine/World.h:1153:7: note: 'LineTraceSingle' has been explicitly marked deprecated here [2016.01.28-16.52.55:265][ 0] bool LineTraceSingle(struct FHitResult& OutHit,const FVector& Start,const FVector& End,ECollisionChannel TraceChannel,const FCollisionQueryParams& Params, const FCollisionResponseParams& ResponseParam = FCollisionResponseParams::DefaultResponseParam) const [2016.01.28-16.52.55:265][ 0] ^ [2016.01.28-16.52.55:265][ 0]/Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/SWeapon.cpp:300:14: warning: 'LineTraceSingle' is deprecated: Use LineTraceSingleByChannel instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [-Wdeprecated-declarations] [2016.01.28-16.52.55:265][ 0] GetWorld()->LineTraceSingle(Hit, TraceFrom, TraceTo, COLLISION_WEAPON, TraceParams); [2016.01.28-16.52.55:265][ 0] ^ [2016.01.28-16.52.55:265][ 0]/Users/Shared/UnrealEngine/4.9/Engine/Source/Runtime/Engine/Classes/Engine/World.h:1153:7: note: 'LineTraceSingle' has been explicitly marked deprecated here [2016.01.28-16.52.55:265][ 0] bool LineTraceSingle(struct FHitResult& OutHit,const FVector& Start,const FVector& End,ECollisionChannel TraceChannel,const FCollisionQueryParams& Params, const FCollisionResponseParams& ResponseParam = FCollisionResponseParams::DefaultResponseParam) const [2016.01.28-16.52.55:265][ 0] ^ [2016.01.28-16.52.55:369][ 0]/Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/SWeapon.cpp:446:26: warning: 'PlaySoundAttached' is deprecated: PlaySoundAttached has been renamed SpawnSoundAttached Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [-Wdeprecated-declarations] [2016.01.28-16.52.55:369][ 0] AC = UGameplayStatics::PlaySoundAttached(SoundToPlay, MyPawn->GetRootComponent()); [2016.01.28-16.52.55:369][ 0] ^ [2016.01.28-16.52.55:369][ 0]/Users/Shared/UnrealEngine/4.9/Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h:382:32: note: 'PlaySoundAttached' has been explicitly marked deprecated here [2016.01.28-16.52.55:369][ 0] static class UAudioComponent* PlaySoundAttached(class USoundBase* Sound, class USceneComponent* AttachToComponent, FName AttachPointName = NAME_None, FVector Location = FVector(ForceInit), EAttachLocation::Type LocationType = EAttachLocation::KeepRelativeOffset, bool bStopWhenAttachedToDestroyed = false, float VolumeMultiplier = 1.f, float PitchMultiplier = 1.f, float StartTime = 0.f, class USoundAttenuation* AttenuationSettings = NULL) [2016.01.28-16.52.55:369][ 0] ^ [2016.01.28-16.52.55:369][ 0]/Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/SCharacter.cpp:558:14: warning: 'bNoCollisionFail' is deprecated: bNoCollisionFail is deprecated. Use SpawnCollisionHandlingOverride to override the actor class's spawn collision handling setting. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [-Wdeprecated-declarations] [2016.01.28-16.52.55:369][ 0] SpawnInfo.bNoCollisionFail = true; [2016.01.28-16.52.55:369][ 0] ^ [2016.01.28-16.52.55:369][ 0]/Users/Shared/UnrealEngine/4.9/Engine/Source/Runtime/Engine/Classes/Engine/World.h:458:9: note: 'bNoCollisionFail' has been explicitly marked deprecated here [2016.01.28-16.52.55:369][ 0] uint16 bNoCollisionFail:1; [2016.01.28-16.52.55:369][ 0] ^ [2016.01.28-16.52.55:370][ 0]/Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/SWeaponPickup.cpp:29:14: warning: 'bNoCollisionFail' is deprecated: bNoCollisionFail is deprecated. Use SpawnCollisionHandlingOverride to override the actor class's spawn collision handling setting. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [-Wdeprecated-declarations] [2016.01.28-16.52.55:370][ 0] SpawnInfo.bNoCollisionFail = true; [2016.01.28-16.52.55:370][ 0] ^ [2016.01.28-16.52.55:370][ 0]/Users/Shared/UnrealEngine/4.9/Engine/Source/Runtime/Engine/Classes/Engine/World.h:458:9: note: 'bNoCollisionFail' has been explicitly marked deprecated here [2016.01.28-16.52.55:370][ 0] uint16 bNoCollisionFail:1; [2016.01.28-16.52.55:370][ 0] ^ [2016.01.28-16.52.55:370][ 0]/Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/SCharacter.cpp:783:13: warning: 'bNoCollisionFail' is deprecated: bNoCollisionFail is deprecated. Use SpawnCollisionHandlingOverride to override the actor class's spawn collision handling setting. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [-Wdeprecated-declarations] [2016.01.28-16.52.55:370][ 0] SpawnInfo.bNoCollisionFail = true; [2016.01.28-16.52.55:370][ 0] ^ [2016.01.28-16.52.55:370][ 0]/Users/Shared/UnrealEngine/4.9/Engine/Source/Runtime/Engine/Classes/Engine/World.h:458:9: note: 'bNoCollisionFail' has been explicitly marked deprecated here [2016.01.28-16.52.55:370][ 0] uint16 bNoCollisionFail:1; [2016.01.28-16.52.55:370][ 0] ^ [2016.01.28-16.52.55:472][ 0]In file included from /Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/SZombieCharacter.cpp:5: [2016.01.28-16.52.55:472][ 0]In file included from ../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SZombieAIController.h:6: [2016.01.28-16.52.55:472][ 0]../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SCharacter.h:93:39: error: only virtual member functions can be marked 'override' [2016.01.28-16.52.55:472][ 0] void OnLanded(const FHitResult& Hit) override; [2016.01.28-16.52.55:472][ 0] ^~~~~~~~ [2016.01.28-16.52.55:472][ 0]In file included from /Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/SZombieAIController.cpp:4: [2016.01.28-16.52.55:472][ 0]In file included from ../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SZombieAIController.h:6: [2016.01.28-16.52.55:472][ 0]../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SCharacter.h:93:39: error: only virtual member functions can be marked 'override' [2016.01.28-16.52.55:472][ 0] void OnLanded(const FHitResult& Hit) override; [2016.01.28-16.52.55:472][ 0] ^~~~~~~~ [2016.01.28-16.52.55:674][ 0]In file included from /Users/user/Development/Project-Hatshepsut/Intermediate/Build/Mac/UE4Editor/Inc/SurvivalGame/SurvivalGame.generated.cpp:9: [2016.01.28-16.52.55:674][ 0]In file included from ../../../../../user/Development/Project-Hatshepsut/Intermediate/Build/Mac/UE4Editor/Inc/SurvivalGame/SurvivalGame.generated.dep.h:21: [2016.01.28-16.52.55:674][ 0]../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SCharacter.h:93:39: error: only virtual member functions can be marked 'override' [2016.01.28-16.52.55:674][ 0] void OnLanded(const FHitResult& Hit) override; [2016.01.28-16.52.55:674][ 0] ^~~~~~~~ [2016.01.28-16.52.55:674][ 0]In file included from /Users/user/Development/Project-Hatshepsut/Intermediate/Build/Mac/UE4Editor/Inc/SurvivalGame/SurvivalGame.generated.cpp:9: [2016.01.28-16.52.55:674][ 0]In file included from ../../../../../user/Development/Project-Hatshepsut/Intermediate/Build/Mac/UE4Editor/Inc/SurvivalGame/SurvivalGame.generated.dep.h:36: [2016.01.28-16.52.55:674][ 0]../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SGameMode.h:22:18: error: 'ASGameMode::InitNewPlayer' hides overloaded virtual function [-Werror,-Woverloaded-virtual] [2016.01.28-16.52.55:674][ 0] virtual FString InitNewPlayer(class APlayerController* NewPlayerController, const TSharedPtr<FUniqueNetId>& UniqueId, const FString& Options, const FString& Portal /* = TEXT("") */); [2016.01.28-16.52.55:674][ 0] ^ [2016.01.28-16.52.55:674][ 0]Runtime/Engine/Classes/GameFramework/GameMode.h:691:18: note: hidden overloaded virtual function 'AGameMode::InitNewPlayer' declared here: type mismatch at 2nd parameter ('const TSharedPtr<const FUniqueNetId> &' vs 'const TSharedPtr<FUniqueNetId> &') [2016.01.28-16.52.55:674][ 0] virtual FString InitNewPlayer(class APlayerController* NewPlayerController, const TSharedPtr<const FUniqueNetId>& UniqueId, const FString& Options, const FString& Portal = TEXT("")); [2016.01.28-16.52.55:674][ 0] ^ [2016.01.28-16.52.55:775][ 0]In file included from /Users/user/Development/Project-Hatshepsut/Intermediate/Build/Mac/UE4Editor/Inc/SurvivalGame/SurvivalGame.generated.cpp:9: [2016.01.28-16.52.55:775][ 0]In file included from ../../../../../user/Development/Project-Hatshepsut/Intermediate/Build/Mac/UE4Editor/Inc/SurvivalGame/SurvivalGame.generated.dep.h:48: [2016.01.28-16.52.55:775][ 0]../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/Editor/SoundNodeLocalPlayer.h:28:18: error: virtual function 'GetInputPinName' has a different return type ('FString') than the function it overrides (which has return type 'FText') [2016.01.28-16.52.55:775][ 0] virtual FString GetInputPinName(int32 PinIndex) const override; [2016.01.28-16.52.55:775][ 0] ~~~~~~~ ^ [2016.01.28-16.52.55:775][ 0]Runtime/Engine/Classes/Sound/SoundNode.h:144:16: note: overridden virtual function is here [2016.01.28-16.52.55:775][ 0] virtual FText GetInputPinName(int32 PinIndex) const { return FText::GetEmpty(); } [2016.01.28-16.52.55:775][ 0] ~~~~~ ^ [2016.01.28-16.52.55:775][ 0]In file included from /Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/BTTask_FindPatrolLocation.cpp:6: [2016.01.28-16.52.55:775][ 0]In file included from ../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SZombieAIController.h:6: [2016.01.28-16.52.55:775][ 0]../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SCharacter.h:93:39: error: only virtual member functions can be marked 'override' [2016.01.28-16.52.55:775][ 0] void OnLanded(const FHitResult& Hit) override; [2016.01.28-16.52.55:775][ 0] ^~~~~~~~ [2016.01.28-16.52.55:775][ 0]In file included from /Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/BTTask_FindBotWaypoint.cpp:6: [2016.01.28-16.52.55:776][ 0]In file included from ../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SZombieAIController.h:6: [2016.01.28-16.52.55:776][ 0]../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SCharacter.h:93:39: error: only virtual member functions can be marked 'override' [2016.01.28-16.52.55:776][ 0] void OnLanded(const FHitResult& Hit) override; [2016.01.28-16.52.55:776][ 0] ^~~~~~~~ [2016.01.28-16.52.56:080][ 0]/Users/user/Development/Project-Hatshepsut/Intermediate/Build/Mac/UE4Editor/Inc/SurvivalGame/SurvivalGame.generated.cpp:490:30: error: use of undeclared identifier 'FindExistingEnumIfHotReload' [2016.01.28-16.52.56:080][ 0] static UEnum* ReturnEnum = FindExistingEnumIfHotReload(Outer, TEXT("EBotBehaviorType"), 0, Get_Z_Construct_UEnum_SurvivalGame_EBotBehaviorType_CRC()); [2016.01.28-16.52.56:080][ 0] ^ [2016.01.28-16.52.56:081][ 0]/Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/BTTask_FindPatrolLocation.cpp:30:42: warning: 'GetRandomPointInRadius' is deprecated: GetRandomPointInRadius is deprecated. Use either GetRandomReachablePointInRadius or GetRandomPointInNavigableRadius Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [-Wdeprecated-declarations] [2016.01.28-16.52.56:082][ 0] const FVector Loc = UNavigationSystem::GetRandomPointInRadius(MyController, SearchOrigin, SearchRadius); [2016.01.28-16.52.56:082][ 0] ^ [2016.01.28-16.52.56:082][ 0]Runtime/Engine/Classes/AI/Navigation/NavigationSystem.h:969:17: note: 'GetRandomPointInRadius' has been explicitly marked deprecated here [2016.01.28-16.52.56:083][ 0] static FVector GetRandomPointInRadius(UObject* WorldContext, const FVector& Origin, float Radius, ANavigationData* NavData = NULL, TSubclassOf<UNavigationQueryFilter> FilterClass = NULL); [2016.01.28-16.52.56:083][ 0] ^ [2016.01.28-16.52.56:292][ 0]/Users/user/Development/Project-Hatshepsut/Intermediate/Build/Mac/UE4Editor/Inc/SurvivalGame/SurvivalGame.generated.cpp:513:30: error: use of undeclared identifier 'FindExistingEnumIfHotReload' [2016.01.28-16.52.56:292][ 0] static UEnum* ReturnEnum = FindExistingEnumIfHotReload(Outer, TEXT("EInventorySlot"), 0, Get_Z_Construct_UEnum_SurvivalGame_EInventorySlot_CRC()); [2016.01.28-16.52.56:292][ 0] ^ [2016.01.28-16.52.56:395][ 0]/Users/user/Development/Project-Hatshepsut/Intermediate/Build/Mac/UE4Editor/Inc/SurvivalGame/SurvivalGame.generated.cpp:538:40: error: use of undeclared identifier 'FindExistingStructIfHotReload' [2016.01.28-16.52.56:395][ 0] static UScriptStruct* ReturnStruct = FindExistingStructIfHotReload(Outer, TEXT("TakeHitInfo"), sizeof(FTakeHitInfo), Get_Z_Construct_UScriptStruct_FTakeHitInfo_CRC()); [2016.01.28-16.52.56:396][ 0] ^ [2016.01.28-16.52.56:597][ 0]/Users/user/Development/Project-Hatshepsut/Intermediate/Build/Mac/UE4Editor/Inc/SurvivalGame/SurvivalGame.generated.cpp:2132:30: error: use of undeclared identifier 'FindExistingEnumIfHotReload' [2016.01.28-16.52.56:597][ 0] static UEnum* ReturnEnum = FindExistingEnumIfHotReload(Outer, TEXT("EWeaponState"), 0, Get_Z_Construct_UEnum_SurvivalGame_EWeaponState_CRC()); [2016.01.28-16.52.56:597][ 0] ^ [2016.01.28-16.52.56:597][ 0]/Users/user/Development/Project-Hatshepsut/Intermediate/Build/Mac/UE4Editor/Inc/SurvivalGame/SurvivalGame.generated.cpp:2624:19: error: no member named 'SetPackageFlags' in 'UPackage' [2016.01.28-16.52.56:598][ 0] ReturnPackage->SetPackageFlags(PKG_CompiledIn | 0x00000000); [2016.01.28-16.52.56:598][ 0] ~~~~~~~~~~~~~ ^ [2016.01.28-16.52.58:539][ 0]2 warnings and 1 error generated. [2016.01.28-16.52.58:539][ 0]3 warnings and 1 error generated. [2016.01.28-16.52.58:641][ 0]1 warning and 1 error generated. [2016.01.28-16.52.58:654][ 0][9/19] Compile SWeaponInstant.cpp [2016.01.28-16.52.58:654][ 0][10/19] Compile SHUD.cpp [2016.01.28-16.52.58:755][ 0]1 error generated. [2016.01.28-16.52.58:755][ 0][11/19] Compile SGameMode.cpp [2016.01.28-16.52.58:858][ 0][12/19] Compile SConsumableActor.cpp [2016.01.28-16.52.59:469][ 0]1 error generated. [2016.01.28-16.52.59:469][ 0]1 error generated. [2016.01.28-16.52.59:469][ 0]1 warning and 1 error generated. [2016.01.28-16.52.59:573][ 0][13/19] Compile SFlashlight.cpp [2016.01.28-16.52.59:677][ 0][14/19] Compile SoundNodeLocalPlayer.cpp [2016.01.28-16.52.59:678][ 0][15/19] Compile SCharacterMovementComponent.cpp [2016.01.28-16.53.00:082][ 0]8 errors generated. [2016.01.28-16.53.00:288][ 0][16/19] Compile SPlayerCameraManager.cpp [2016.01.28-16.53.02:223][ 0]In file included from /Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/SHUD.cpp:5: [2016.01.28-16.53.02:223][ 0]../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SCharacter.h:93:39: error: only virtual member functions can be marked 'override' [2016.01.28-16.53.02:223][ 0] void OnLanded(const FHitResult& Hit) override; [2016.01.28-16.53.02:223][ 0] ^~~~~~~~ [2016.01.28-16.53.02:328][ 0]In file included from /Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/SGameMode.cpp:4: [2016.01.28-16.53.02:329][ 0]../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SGameMode.h:22:18: error: 'ASGameMode::InitNewPlayer' hides overloaded virtual function [-Werror,-Woverloaded-virtual] [2016.01.28-16.53.02:329][ 0] virtual FString InitNewPlayer(class APlayerController* NewPlayerController, const TSharedPtr<FUniqueNetId>& UniqueId, const FString& Options, const FString& Portal /* = TEXT("") */); [2016.01.28-16.53.02:329][ 0] ^ [2016.01.28-16.53.02:329][ 0]Runtime/Engine/Classes/GameFramework/GameMode.h:691:18: note: hidden overloaded virtual function 'AGameMode::InitNewPlayer' declared here: type mismatch at 2nd parameter ('const TSharedPtr<const FUniqueNetId> &' vs 'const TSharedPtr<FUniqueNetId> &') [2016.01.28-16.53.02:329][ 0] virtual FString InitNewPlayer(class APlayerController* NewPlayerController, const TSharedPtr<const FUniqueNetId>& UniqueId, const FString& Options, const FString& Portal = TEXT("")); [2016.01.28-16.53.02:329][ 0] ^ [2016.01.28-16.53.02:329][ 0]In file included from /Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/SWeaponInstant.cpp:4: [2016.01.28-16.53.02:329][ 0]In file included from ../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SWeaponInstant.h:5: [2016.01.28-16.53.02:330][ 0]In file included from ../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SWeapon.h:6: [2016.01.28-16.53.02:330][ 0]../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SCharacter.h:93:39: error: only virtual member functions can be marked 'override' [2016.01.28-16.53.02:330][ 0] void OnLanded(const FHitResult& Hit) override; [2016.01.28-16.53.02:330][ 0] ^~~~~~~~ [2016.01.28-16.53.02:430][ 0]/Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/SWeaponInstant.cpp:220:45: warning: 'SpawnActorDeferred<ASImpactEffect>' is deprecated: This version of SpawnActorDeferred is deprecated. Please use the version that takes an FTransform and ESpawnActorCollisionHandlingMethod. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [-Wdeprecated-declarations] [2016.01.28-16.53.02:430][ 0] ASImpactEffect* EffectActor = GetWorld()->SpawnActorDeferred<ASImpactEffect>(ImpactTemplate, Impact.ImpactPoint, Impact.ImpactPoint.Rotation()); [2016.01.28-16.53.02:430][ 0] ^ [2016.01.28-16.53.02:430][ 0]/Users/Shared/UnrealEngine/4.9/Engine/Source/Runtime/Engine/Classes/Engine/World.h:2883:5: note: 'SpawnActorDeferred<ASImpactEffect>' has been explicitly marked deprecated here [2016.01.28-16.53.02:430][ 0] T* SpawnActorDeferred( [2016.01.28-16.53.02:430][ 0] ^ [2016.01.28-16.53.02:532][ 0]In file included from /Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/SConsumableActor.cpp:5: [2016.01.28-16.53.02:532][ 0]../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SCharacter.h:93:39: error: only virtual member functions can be marked 'override' [2016.01.28-16.53.02:532][ 0] void OnLanded(const FHitResult& Hit) override; [2016.01.28-16.53.02:532][ 0] ^~~~~~~~ [2016.01.28-16.53.03:148][ 0]In file included from /Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/SFlashlight.cpp:4: [2016.01.28-16.53.03:148][ 0]In file included from ../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SFlashlight.h:5: [2016.01.28-16.53.03:148][ 0]In file included from ../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SWeapon.h:6: [2016.01.28-16.53.03:148][ 0]../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SCharacter.h:93:39: error: only virtual member functions can be marked 'override' [2016.01.28-16.53.03:148][ 0] void OnLanded(const FHitResult& Hit) override; [2016.01.28-16.53.03:148][ 0] ^~~~~~~~ [2016.01.28-16.53.03:357][ 0]In file included from /Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/SCharacterMovementComponent.cpp:5: [2016.01.28-16.53.03:357][ 0]../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SCharacter.h:93:39: error: only virtual member functions can be marked 'override' [2016.01.28-16.53.03:357][ 0] void OnLanded(const FHitResult& Hit) override; [2016.01.28-16.53.03:357][ 0] ^~~~~~~~ [2016.01.28-16.53.03:461][ 0]In file included from /Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/Editor/SoundNodeLocalPlayer.cpp:5: [2016.01.28-16.53.03:461][ 0]../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/Editor/SoundNodeLocalPlayer.h:28:18: error: virtual function 'GetInputPinName' has a different return type ('FString') than the function it overrides (which has return type 'FText') [2016.01.28-16.53.03:461][ 0] virtual FString GetInputPinName(int32 PinIndex) const override; [2016.01.28-16.53.03:461][ 0] ~~~~~~~ ^ [2016.01.28-16.53.03:461][ 0]Runtime/Engine/Classes/Sound/SoundNode.h:144:16: note: overridden virtual function is here [2016.01.28-16.53.03:461][ 0] virtual FText GetInputPinName(int32 PinIndex) const { return FText::GetEmpty(); } [2016.01.28-16.53.03:461][ 0] ~~~~~ ^ [2016.01.28-16.53.03:868][ 0]In file included from /Users/user/Development/Project-Hatshepsut/Source/SurvivalGame/Private/SPlayerCameraManager.cpp:5: [2016.01.28-16.53.03:868][ 0]../../../../../user/Development/Project-Hatshepsut/Source/SurvivalGame/Public/SCharacter.h:93:39: error: only virtual member functions can be marked 'override' [2016.01.28-16.53.03:868][ 0] void OnLanded(const FHitResult& Hit) override; [2016.01.28-16.53.03:868][ 0] ^~~~~~~~ [2016.01.28-16.53.05:195][ 0]1 error generated. [2016.01.28-16.53.05:401][ 0][17/19] Compile SBaseCharacter.cpp [2016.01.28-16.53.05:401][ 0]1 error generated. [2016.01.28-16.53.05:402][ 0]1 warning and 1 error generated. [2016.01.28-16.53.06:024][ 0]1 error generated. [2016.01.28-16.53.06:129][ 0]1 error generated. [2016.01.28-16.53.06:129][ 0]1 error generated. [2016.01.28-16.53.06:233][ 0]1 error generated. [2016.01.28-16.53.06:443][ 0]1 error generated.

jonny2027 commented 8 years ago

Sorry about the formatting. Also if it helps i can pull the master branch and compile fine

MichaelRDavis commented 8 years ago

What branch did you try to compile this code from, because the log file has many warnings about deprecated code e.g. warning: 'LineTraceSingle' is deprecated: Use LineTraceSingleByChannel instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [-Wdeprecated-declarations] Using deprecated code from an older release of UE4 will not compile in the latest UE4 releases.

jonny2027 commented 8 years ago

It was the branch for section 3

MichaelRDavis commented 8 years ago

Section 3 was compiled from an older version of UE4, to compile from the latest UE4 release(4.10) try compiling from the master branch.

jonny2027 commented 8 years ago

I have managed to compile the master branch but i was hoping to start of with section 3 as i wanted to avoid the networking code. Not a problem though.