tomlooman / EpicSurvivalGame

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

Unable to open project after project is now version is 4.24. ("Missing SurvivalGame Modules") #66

Closed Contestant0star closed 4 years ago

Contestant0star commented 4 years ago

I downloaded the new version of the project for unreal engine 4.24 and when I try to open it I get the message "Missing SurvivalGame Modules, The following modules are missing or built with a different engine version: SurvivalGame. Would you like to rebuild them now?" When I press yes it says starting build but then says "SurvivalGame could not be compiles. Try rebuilding from source manually."

tomlooman commented 4 years ago

You'll have to compile from Visual Studio to see what the compile errors are, it might be simply a missing #include (if so please let me know which changes you made)

Contestant0star commented 4 years ago

You'll have to compile from Visual Studio to see what the compile errors are, it might be simply a missing #include (if so please let me know which changes you made)

Okay, I'll try that also can I ask you a couple questions about some other problems I was having in the project before?

cdbattags commented 4 years ago
Severity    Code    Description Project File    Line    Suppression State
Error (active)  E0145   member "FBulkDataStreamingToken::InvalidOffset" may not be initialized  SurvivalGame    C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime\CoreUObject\Public\Serialization\BulkData.h   196 
Error (active)  E0145   member "FBulkDataBase::InvalidToken" may not be initialized SurvivalGame    C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime\CoreUObject\Public\Serialization\BulkData2.h  109 
Error (active)  E1574   static assertion failed with "TAtomic is only usable with trivial types"    SurvivalGame    C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime\Core\Public\Templates\Atomic.h    537 
Error (active)  E0145   member "FName::StringBufferSize" may not be initialized SurvivalGame    C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime\Core\Public\UObject\NameTypes.h   466 
Error (active)  E0145   member "FNavigationLinkBase::InvalidUserId" may not be initialized  SurvivalGame    C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime\Engine\Classes\AI\Navigation\NavLinkDefinition.h  40  
Error (active)  E0145   member "Chaos::FImplicitObject::D" may not be initialized   SurvivalGame    C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime\Experimental\Chaos\Public\Chaos\ImplicitObject.h  121 
Error (active)  E0145   member "FShaderParameterBindings::kInvalidBufferIndex" may not be initialized   SurvivalGame    C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime\RenderCore\Public\Shader.h    574 
Error (active)  E0265   member "AActor::bAutoDestroyWhenFinished" (declared at line 259 of "C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime\Engine\Classes\GameFramework\Actor.h") is inaccessible    SurvivalGame    C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Private\Items\SImpactEffect.cpp  15  
Error (active)  E0147   declaration is incompatible with "<error-type> *ASImpactEffect::GetImpactSound(EPhysicalSurface SurfaceType) const" (declared at line 18 of "C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Public\Items\SImpactEffect.h")  SurvivalGame    C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Private\Items\SImpactEffect.cpp  85  
Error (active)  E0020   identifier "USoundCue" is undefined SurvivalGame    C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Public\Items\SImpactEffect.h 18  
Error (active)  E0020   identifier "USoundCue" is undefined SurvivalGame    C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Public\Items\SImpactEffect.h 37  
Error (active)  E0020   identifier "USoundCue" is undefined SurvivalGame    C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Public\Items\SImpactEffect.h 40  
Error (active)  E0020   identifier "USoundCue" is undefined SurvivalGame    C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Public\Items\SImpactEffect.h 43  
Warning C4996   'APlayerState::bIsABot': This member will be made private. Use IsABot or SetIsABot instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. SurvivalGame    C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Private\AI\SZombieCharacter.cpp  82  
Error   C2248   'AActor::bAutoDestroyWhenFinished': cannot access private member declared in class 'AActor' SurvivalGame    C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Private\Items\SImpactEffect.cpp  15  
Warning C4996   'APlayerState::bIsSpectator': This member will be made private. Use IsSpectator or SetIsSpectator instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.  SurvivalGame    C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Private\Player\SPlayerController.cpp 51  
Warning C4996   'APlayerState::Score': This member will be made private. Use GetScore or SetScore instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.  SurvivalGame    C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Private\Player\SPlayerState.cpp  24  
Warning C4996   'APlayerState::Score': This member will be made private. Use GetScore or SetScore instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.  SurvivalGame    C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Private\Player\SPlayerState.cpp  39  
Warning C4996   'APlayerState::Score': This member will be made private. Use GetScore or SetScore instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.  SurvivalGame    C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Private\Player\SPlayerState.cpp  74  
Warning C4996   'APlayerState::bIsABot': This member will be made private. Use IsABot or SetIsABot instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. SurvivalGame    C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Private\World\SCoopGameMode.cpp  30  
Warning C4996   'APlayerState::bIsSpectator': This member will be made private. Use IsSpectator or SetIsSpectator instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.  SurvivalGame    C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Private\World\SCoopGameMode.cpp  114 
Warning C4996   'APlayerState::bIsABot': This member will be made private. Use IsABot or SetIsABot instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. SurvivalGame    C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Private\World\SCoopGameMode.cpp  142 
Warning C4996   'APlayerState::bIsABot': This member will be made private. Use IsABot or SetIsABot instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. SurvivalGame    C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Private\World\SCoopGameMode.cpp  148 
Warning C4996   'APlayerState::bIsABot': This member will be made private. Use IsABot or SetIsABot instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. SurvivalGame    C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Private\World\SCoopGameMode.cpp  169 
Warning C4996   'APlayerState::bIsABot': This member will be made private. Use IsABot or SetIsABot instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. SurvivalGame    C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Private\World\SGameMode.cpp  250 
Warning C4996   'APlayerState::bIsABot': This member will be made private. Use IsABot or SetIsABot instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. SurvivalGame    C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Private\World\SGameMode.cpp  285 
Warning C4996   'APlayerState::bIsABot': This member will be made private. Use IsABot or SetIsABot instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. SurvivalGame    C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Private\World\SGameMode.cpp  322 
Error   MSB3073 The command ""C:\Program Files\Epic Games\UE_4.25\Engine\Build\BatchFiles\Build.bat" SurvivalGameEditor Win64 Development -Project="C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\SurvivalGame.uproject" -WaitMutex -FromMsBuild" exited with code 6.  SurvivalGame    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets   44  

Lemme know if you have a better suggestion for copypasta from VS.

So I guess the first glaring one is:

Severity    Code    Description Project File    Line    Suppression State
Error   C2248   'AActor::bAutoDestroyWhenFinished': cannot access private member declared in class 'AActor' SurvivalGame    C:\Users\chris\projects\EpicSurvivalGameSeries-master\SurvivalGame\Source\SurvivalGame\Private\Items\SImpactEffect.cpp  15  

I'm decently new to C++ so thoughts? And Unreal's C++ is something like version 11, right?


Edit:

Ok, easy fix. A couple of modifications to deprecated vars/functions. PR incoming.

tomlooman commented 4 years ago

PR for 4.25 has been merged into master.