# AI doesn't move in packaged game

**URL:** <https://forums.unrealengine.com/t/ai-doesnt-move-in-packaged-game/327887>\
**Category:** AI\
**Tags:** navigation-mesh, Navigation, unreal-engine, packaging-projects, question\
**Created:** [August 6, 2015, 9:33pm UTC](https://forums.unrealengine.com/t/ai-doesnt-move-in-packaged-game/327887 "2015-08-06T21:33:40Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabor\_D](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gabor\_D](https://forums.unrealengine.com/u/Gabor_D)\
**Post date:** [August 6, 2015, 9:33pm UTC](https://forums.unrealengine.com/t/ai-doesnt-move-in-packaged-game/327887/1 "2015-08-06T21:33:40Z")

</div>

Hello guys. I’ve recently upgraded my project to 4.8 from 4.7 and now my ai character just doesn’t want to move in the packaged game. There is no problem when playing in the editor. I tried to visualize the navmesh in the packaged game by executing the blueprint node “Execute Console Command” with command “show navigation” but doesn’t show anything (btw I don’t know if this is available in a game packaged with shipping configuration).

Thanks,

Gabor

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [August 7, 2015, 3:28pm UTC](https://forums.unrealengine.com/t/ai-doesnt-move-in-packaged-game/327887/2 "2015-08-07T15:28:36Z")

</div>

Hey EasternWize,

Thank you for bringing this to our attention. Are you using custom AI or are you using AI from one of the templates or learning projects we have available? Are you able to replicate this AI issue with a regular Unreal Engine 4 template? Have you tried copying your project to a 4.9 Preview 2 version to see if the same issue persists?

Looking forward to hearing back from you, thanks!

---

<div class="post-metadata">

**Author:** ![Gabor\_D](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gabor\_D](https://forums.unrealengine.com/u/Gabor_D)\
**Post date:** [August 7, 2015, 8:08pm UTC](https://forums.unrealengine.com/t/ai-doesnt-move-in-packaged-game/327887/3 "2015-08-07T20:08:06Z")

</div>

Hi ,

Thanks for the quick response! I’m using custom AI. Tried it with 4.9 preview 2 with same results. Works in editor, doesn’t work in packaged game. I also tried packaging the example project posted here: [Behaviour trees support stream][1] and it seems that it’s fine. I think I’m gonna check my behaviour tree.

[Support Stream – Behavior Trees – March 10th, 2015 - Announcements - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?59449-Support-Stream-%E2%80%93-Behavior-Trees-%E2%80%93-March-10th-2015)

---

<div class="post-metadata">

**Author:** ![Gabor\_D](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gabor\_D](https://forums.unrealengine.com/u/Gabor_D)\
**Post date:** [August 7, 2015, 9:13pm UTC](https://forums.unrealengine.com/t/ai-doesnt-move-in-packaged-game/327887/4 "2015-08-07T21:13:57Z")

</div>

So, in the project settings under Navigation Mesh I checked Forced Rebuild on Load and changed Runtime Generation to Dynamic (same as in my RecastNavMesh-Default) and tadaaaa… now my AI started to move in the packaged project.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [August 11, 2015, 6:08pm UTC](https://forums.unrealengine.com/t/ai-doesnt-move-in-packaged-game/327887/5 "2015-08-11T18:08:57Z")

</div>

Glad to see that your AI is finally working. If you happen to have any further questions, let us know!

Have a great day!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6199addd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6199addd](https://forums.unrealengine.com/u/anonymous_user_6199addd)\
**Post date:** [October 24, 2018, 3:51am UTC](https://forums.unrealengine.com/t/ai-doesnt-move-in-packaged-game/327887/6 "2018-10-24T03:51:50Z")

</div>

I might have a similar issue, AI moves fine on editor, but when I launch the game the issue comes, sometimes in the first level, but sometimes the first level works, then the AI will be freezed on the second level, if I change the project settings, Runtime Generation to Dynamic and check forced rebuild on load, the AI moves, but spinning like crazy, with difficult to continue towards the player as it does fine in the editor. I need help!

---

<div class="post-metadata">

**Author:** ![DaGaffer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DaGaffer](https://forums.unrealengine.com/u/DaGaffer)\
**Post date:** [November 24, 2018, 7:36pm UTC](https://forums.unrealengine.com/t/ai-doesnt-move-in-packaged-game/327887/7 "2018-11-24T19:36:05Z")

</div>

There is apparently a bug with Navmeshes in packaged builds in 4.21.0 that may be what you are seeing.

There are gaps on the edges of every tile that the AIs cannot path over. One hopes this will get fixed rapidly - unfortunately there is apparently no way to see the bugs that have been submitted on this right now, but you can see the problem discussed here:

> **[Dynamic Navmesh Different in Packaged than Editor](https://forums.unrealengine.com/questions/847685/view.html)**
>
> I’ve run into a new problem in 4.21. Having some serious difficulties generating navigation meshes on dynamic terrain. The biggest problem is that after some tuning things seem to work fine in the editor but when packaged, there are seams in the...

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4627da8a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4627da8a](https://forums.unrealengine.com/u/anonymous_user_4627da8a)\
**Post date:** [December 18, 2018, 6:09pm UTC](https://forums.unrealengine.com/t/ai-doesnt-move-in-packaged-game/327887/8 "2018-12-18T18:09:30Z")

</div>

I did the sam ething but did’nt worked for me and I’m using UE4 4.21

---

<div class="post-metadata">

**Author:** ![PVTBeanyBoyy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PVTBeanyBoyy](https://forums.unrealengine.com/u/PVTBeanyBoyy)\
**Post date:** [October 8, 2020, 9:45am UTC](https://forums.unrealengine.com/t/ai-doesnt-move-in-packaged-game/327887/9 "2020-10-08T09:45:25Z")

</div>

2020 and still having this issue. Thanks for coming back and leaving your resolution Gabor D. This just fixed it for me also…

---

<div class="post-metadata">

**Author:** ![SlayerGoury](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/slayergoury/32/979976_2.png) [@SlayerGoury](https://forums.unrealengine.com/u/SlayerGoury)\
**Post date:** [February 6, 2021, 1:37pm UTC](https://forums.unrealengine.com/t/ai-doesnt-move-in-packaged-game/327887/10 "2021-02-06T13:37:42Z")

</div>

2021 and it’s broken again

---

<div class="post-metadata">

**Author:** ![CastillaStudio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CastillaStudio](https://forums.unrealengine.com/u/CastillaStudio)\
**Post date:** [April 28, 2023, 12:42pm UTC](https://forums.unrealengine.com/t/ai-doesnt-move-in-packaged-game/327887/11 "2023-04-28T12:42:33Z")

</div>

2023 and it’s still broken…

---

<div class="post-metadata">

**Author:** ![SlaughterOfSoul5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SlaughterOfSoul5](https://forums.unrealengine.com/u/SlaughterOfSoul5)\
**Post date:** [May 1, 2023, 7:16am UTC](https://forums.unrealengine.com/t/ai-doesnt-move-in-packaged-game/327887/12 "2023-05-01T07:16:51Z")

</div>

I ran into this same issue using 5.1. In the editor everything works fine. In packaged builds the AI movement “rubber bands” on the clients.

I was calling UGameplayStatics::OpenLevel and passing in the host’s IP to join in packaged builds and I was get the rubber band movement on AI controlled characters.

If I use the OnlineSubsystems (I have only tested Steam) the problem goes away and the AI controlled characters move as intended. In the long run this works for my particular situation by does slow down the development process.

---

<div class="post-metadata">

**Author:** ![Galvanicus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Galvanicus](https://forums.unrealengine.com/u/Galvanicus)\
**Post date:** [October 24, 2023, 4:06am UTC](https://forums.unrealengine.com/t/ai-doesnt-move-in-packaged-game/327887/13 "2023-10-24T04:06:13Z")

</div>

This is the first hit on google so I will type my solution:  
So the issue was that in a packaged build my behavior tree wasn’t working sometimes but always failed the move to.  
It had a service to determine a random location.  
The navmesh existed and worked with non BT ai move to nodes.  
When testing if the air existed and possessed it was true.  
Afterwards I checked if the BTS fired. It did.  
However the blackboard values were all floatmax.  
It turns out that since one of the value failed to get registered correctly, it would all fail. ONLY IN PACKAGED BUILDS. IT WORKED FINE IN PIE.

So the solution was to set the values in the BTS by casting to the owner and getting the blackboard all set first before using them.  
I also had to create a service to figure out my enums in the first selector as well.  
Again, no issues in editor; fails in packaged build.

---

<div class="post-metadata">

**Author:** ![qualliaa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@qualliaa](https://forums.unrealengine.com/u/qualliaa)\
**Post date:** [July 15, 2024, 12:57am UTC](https://forums.unrealengine.com/t/ai-doesnt-move-in-packaged-game/327887/14 "2024-07-15T00:57:51Z")

</div>

Thank You SO MUCH GABOR!! my ai now finally move letsgoooo
