Behavior Tree AI won't move after packaging

The AI works just fine when i start the game in editor with behavior trees and etc. but for some reason when i package the game the AI wont move…

Hi Skeeta92,

Thanks for the report. Could you give us some more details about your project? What version are you working in when this occurs? What are you packaging for exactly? Also, please provide some screenshots of your Behavior Tree and Blueprints to help us see what could have happened.

I would suggest setting up a few Print Strings in your task/service/decorator blueprints to see what is and is not being executed. This is a good way to debug if you behavior tree is ever reaching the movement code.

Please let us know that information so that we can further investigate the issue.

Thanks!

Can you check that you have navmesh on level in packaged game too?

Thanks, Sebastian

Well navmesh works when i play in editor. But how do i package navmesh in the level? I dont think i did that… I thought if it worked in editor it would still work.

You can use “show navigation” cheat to render navmesh during a game.

Alright I will look when I get home. But the thing is it works when I play in editor just doesn’t work when I package or use the launch options.

Yea sir will do once I get back from classes :slight_smile: thanks!

It looks like some difference between packaged game and PIE. Can you generate visual logs from packaged game for me? Use “ToggleAILogging” cheat to start logging and once again to stop logging and to save .vlog file. It’ll give me some data to look into :slight_smile:

I use the launcher to start the game and when i click show navigation it does not show nav mesh. I have it working for the editor but the packaged game itself i guess its not running properly …also i see this error :

Can’t find file for asset ‘/Script/BehaviorTreeEditor’ while loading

Im thinking its the navigation …show nav works in editor but not the game when its launched

What UE4 version do you use ? Is it 4.5? can you prepare small repro map or project for us?

Hey i just upgraded to 4.5 still same problem. When a click “Launch” in editor and “Show navigation” in console it doesnt show the navigation at all but when i do “show navigation” in editor it works fine…Any ideas ?

Anything guys ?

Can you post more details? It would be great to get visual logs (from ToggleAILogging command I mentioned earlier) or sample project with repro (this would be best to debug this issue)? Unfortunately without more details it’s hard to help.

Alright so you want me upload the entire log file ?

Everything will be helpful. Right now I’m blind - I’d like to help but I don’t have any information.

I’m marking this post as resolved for tracking purposes. Without more details I can’t help with this issue unfortunately.