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

Unknown issue 4.19 #48

Open skeeta92 opened 6 years ago

skeeta92 commented 6 years ago

I am able to compile the code with no problem, but when i try to edit the game mode...

Lets say all i did was added one line with 0 code and i get errors... please review images... image one is normal code from github complie works fine.. image two is one line added with tons of errors..how does this happen? I tried reinstalling VS,,, generating project files again...

works1

broke1

wrzwicky commented 6 years ago

Can't even guess. But the file you're showing has no errors, the problems are in other files. Maybe fix those errors and see what happens.

skeeta92 commented 6 years ago

2>[Adaptive unity build] Disabling PCH for excluded files. Set bAdaptiveUnityDisablesPCH to false in BuildConfiguration.xml to change this behavior. 2>[Adaptive unity build] Excluded from CyberAddiction unity file: SGameMode.cpp

What is this about?

wisien92 commented 6 years ago

@skeeta92 add class keyword

class UBehaviorTreeComponent* BehaviorComp;

FORCEINLINE class UBehaviorTreeComponent* GetBehaviorComp() const { return BehaviorComp; }

This helped me. One last thing was to add SWeapon.h header in GameMode.cpp

skeeta92 commented 6 years ago

class UBehaviorTreeComponent* BehaviorComp;

FORCEINLINE class UBehaviorTreeComponent* GetBehaviorComp() const { return BehaviorComp; }

@wisien92 which class do i need to add this?

wisien92 commented 6 years ago

@skeeta92

SZombieAIController.h - although I experience crashes in PIE on start. Still investigating it though.

This is my crash report of anyone would like to help

https://answers.unrealengine.com/questions/804636/crash-during-pie.html

Edit: There was a hack in SGameMode::Init ... after commentig it out works.

SivenZhang commented 4 years ago

I get the same error. It seems that because I use Git to track the changes of source code, if I modify the code and not commit it, it will report error. But once I commit the code, All are done well. I found something in UE document: Build Configuration the configuration of bUseAdaptiveUnityBuild seems to match this error. But I still don't know how to fix this error……

pravin1694 commented 4 years ago

Hello there,

could you please share the screenshot of the error message.

On Fri, Dec 20, 2019 at 6:59 PM Siven notifications@github.com wrote:

I get the same error. It seems that because I use Git to track the changes of source code, if I modify the code and not commit it, it will report error. But once I commit the code, All are done well. I found something in UE document: Build Configuration https://docs.unrealengine.com/en-US/Programming/BuildTools/UnrealBuildTool/BuildConfiguration/index.html the configuration of bUseAdaptiveUnityBuild seems to match this error. But I still don't know how to fix this error……

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tomlooman/EpicSurvivalGameSeries/issues/48?email_source=notifications&email_token=AKSE7O5Z2YBXD3H6Z4SY7XTQZTCETA5CNFSM4FGVYADKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHM5NPY#issuecomment-567924415, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKSE7OZCSEBJ4WGUOHBPICTQZTCETANCNFSM4FGVYADA .

-- Thanks & Regards Pravin

SivenZhang commented 4 years ago

Hello there, could you please share the screenshot of the error message. On Fri, Dec 20, 2019 at 6:59 PM Siven @.***> wrote: I get the same error. It seems that because I use Git to track the changes of source code, if I modify the code and not commit it, it will report error. But once I commit the code, All are done well. I found something in UE document: Build Configuration https://docs.unrealengine.com/en-US/Programming/BuildTools/UnrealBuildTool/BuildConfiguration/index.html the configuration of bUseAdaptiveUnityBuild seems to match this error. But I still don't know how to fix this error…… — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#48?email_source=notifications&email_token=AKSE7O5Z2YBXD3H6Z4SY7XTQZTCETA5CNFSM4FGVYADKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHM5NPY#issuecomment-567924415>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKSE7OZCSEBJ4WGUOHBPICTQZTCETANCNFSM4FGVYADA . -- Thanks & Regards Pravin

Hello!

Thanks for your reply!

Here is two Log screen shot when archive Android(ETC1) package: Log2

Log1

and the error message is: error_msg

But I only add a comment after one line in the source code: change_code

The steps I reappear this error:

  1. I have an UE4.18 project, which can archive Android(ETC1) package and it is well.
  2. Use git init, add, commit to track source code;
  3. Modify the code;
  4. Archive Android(ETC1) package, the error appear.

My environment is: MacOS: 10.14.6 UE4.18 git version: 2.10.2

roy-sourish commented 3 years ago

probably some #include 's are missing... check the output window (*not the error list) to get a detailed overview of the errors.