Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown issue 4.19 #48

Open
skeeta92 opened this issue Jun 25, 2018 · 9 comments
Open

Unknown issue 4.19 #48

skeeta92 opened this issue Jun 25, 2018 · 9 comments

Comments

@skeeta92
Copy link

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
Copy link

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
Copy link
Author

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
Copy link

wisien92 commented Jul 1, 2018

@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
Copy link
Author

skeeta92 commented Jul 2, 2018

class UBehaviorTreeComponent* BehaviorComp;

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

@wisien92 which class do i need to add this?

@wisien92
Copy link

wisien92 commented Jul 2, 2018

@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
Copy link

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
Copy link

pravin1694 commented Dec 21, 2019 via email

@SivenZhang
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants