# AI not working on loaded levels

**URL:** <https://forums.unrealengine.com/t/ai-not-working-on-loaded-levels/344011>\
**Category:** AI\
**Tags:** level-load, unreal-engine, question\
**Created:** [January 13, 2016, 11:29pm UTC](https://forums.unrealengine.com/t/ai-not-working-on-loaded-levels/344011 "2016-01-13T23:29:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ooOOooGravy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ooOOooGravy](https://forums.unrealengine.com/u/ooOOooGravy)\
**Post date:** [January 13, 2016, 11:29pm UTC](https://forums.unrealengine.com/t/ai-not-working-on-loaded-levels/344011/1 "2016-01-13T23:29:41Z")

</div>

I have my AI working and I am happy with it… This is when i run the level directly through PIE.

However, when deployed and I load the level from my ‘MainMenu’ level, the AI does nothing, no movement at all.

Is there something im not setting after loading a level to get the AI ‘kick-started’ after level loading?

I have deployed this on my mobile phone and on PC and both have the same effect

It is a Standard level load in blue prints not Level Streaming

Thank you

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [January 14, 2016, 2:35pm UTC](https://forums.unrealengine.com/t/ai-not-working-on-loaded-levels/344011/2 "2016-01-14T14:35:36Z")

</div>

Hello,

Could you provide a screenshot of your AI Character blueprint’s Class Defaults tab? Specifically the Pawn section, which contains the Auto Possess AI option.

---

<div class="post-metadata">

**Author:** ![ooOOooGravy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ooOOooGravy](https://forums.unrealengine.com/u/ooOOooGravy)\
**Post date:** [January 14, 2016, 9:10pm UTC](https://forums.unrealengine.com/t/ai-not-working-on-loaded-levels/344011/3 "2016-01-14T21:10:39Z")

</div>

Thank you for replying! Please find attached as requested, I still am having issues, Thanks again! alt text

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [January 15, 2016, 12:57pm UTC](https://forums.unrealengine.com/t/ai-not-working-on-loaded-levels/344011/4 "2016-01-15T12:57:22Z")

</div>

Try changing the Auto Possess AI from Placed in World to Placed in World or Spawned. I’d like to see if this solves your issue.

---

<div class="post-metadata">

**Author:** ![ooOOooGravy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ooOOooGravy](https://forums.unrealengine.com/u/ooOOooGravy)\
**Post date:** [January 15, 2016, 11:15pm UTC](https://forums.unrealengine.com/t/ai-not-working-on-loaded-levels/344011/5 "2016-01-15T23:15:15Z")

</div>

Thank you again for getting back to me Sean.

I tried that but didnt not work either, then AI stopped working in PIE. So I created a very simple new AI Character to see what happened, that one was not working either; turns out the Nav Mesh had stopped working! I removed it added a new one, all AI (old and new) worked in PIE!

I ‘Launched the Game on Android Device’… No AI movement!  
Run in PIE … No AI movement!  
Checked Nav Mesh… broken again!

So Launching game on my phone is ‘braking’ the Nav Mesh. Is this a known issue? I have had a quick check (Google Search) and didnt find anything.

Just so you Know I have edited DefaultEditor.ini to include:  
[AlwaysCookMaps]  
+Map=/Game/Maps/MainMenuMap  
+Map=/Game/Maps/TestMaps

This was a fix I found that would allow loading levels when deploying to Android Devices, as that was not working before.

Thank you for your time

---

<div class="post-metadata">

**Author:** ![ooOOooGravy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ooOOooGravy](https://forums.unrealengine.com/u/ooOOooGravy)\
**Post date:** [January 15, 2016, 11:56pm UTC](https://forums.unrealengine.com/t/ai-not-working-on-loaded-levels/344011/6 "2016-01-15T23:56:32Z")

</div>

UPDATE:  
Got it all working…  
OK,  
-I removed the lines from the DefaultEditor.ini file that I added  
-Deleted the ATC Package  
-Rebuilt the ATC Package  
-Deployed to phone on TestMaps only - Worked!

-Added the lines back into the DefaultEditor.ini file  
-Deleted the ATC Package  
-Rebuilt the ATC Package  
-Deployed to phone to MainMenuMap

All working, loads TestMaps from title menu. and AI it working correctly!

Could it have been something to do with the existing ATC package?  
Something not cooked correctly or corrupt?

Anyway all is working now, hope this post helps anyone else.

Thanks again for your time

---

<div class="post-metadata">

**Author:** ![Snowmane](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Snowmane](https://forums.unrealengine.com/u/Snowmane)\
**Post date:** [February 19, 2016, 4:25pm UTC](https://forums.unrealengine.com/t/ai-not-working-on-loaded-levels/344011/7 "2016-02-19T16:25:14Z")

</div>

Hey!

I’m having exactly the same issue.  
When i load a level with the Open Level Node the AI don’t do anything and your fix don’t work for me… any help, please?

---

<div class="post-metadata">

**Author:** ![ooOOooGravy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ooOOooGravy](https://forums.unrealengine.com/u/ooOOooGravy)\
**Post date:** [February 19, 2016, 5:05pm UTC](https://forums.unrealengine.com/t/ai-not-working-on-loaded-levels/344011/8 "2016-02-19T17:05:39Z")

</div>

Yeah I still had problems… What I do now is package the project and install on the phone from the batch file…

To package go to File → Package → Android → and the format you want to package the project. Pick a file location and allow it to finish…

Then go to that folder in file explorer and run the ‘development’ batch file (not the ‘without OBB’ file) that will then install the game as it would do from playstore etc. Works every time.

It’s a pain as ya can’t run direct from the editor on your phone but don’t take too long. Just check before packaging that the nav mesh still works and is complied properly

---

<div class="post-metadata">

**Author:** ![Snowmane](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Snowmane](https://forums.unrealengine.com/u/Snowmane)\
**Post date:** [February 19, 2016, 8:15pm UTC](https://forums.unrealengine.com/t/ai-not-working-on-loaded-levels/344011/9 "2016-02-19T20:15:17Z")

</div>

Yes, already noticed this… But is a waste of time doing the package process every time we need to test… I hope this will be fixed soon.

Thanks for your reply!

---

<div class="post-metadata">

**Author:** ![HerrVonUnruh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HerrVonUnruh](https://forums.unrealengine.com/u/HerrVonUnruh)\
**Post date:** [June 8, 2023, 3:59pm UTC](https://forums.unrealengine.com/t/ai-not-working-on-loaded-levels/344011/10 "2023-06-08T15:59:54Z")

</div>

Hey there,Try this :

Go to Edit → Project Settings →

Navigation Mesh →

Runtime Generation from Static to → Dynamic  
(I just know the problem in UE5, hope it works)  
You are welcome. 🙂

---

<div class="post-metadata">

**Author:** ![Inngvarr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Inngvarr](https://forums.unrealengine.com/u/Inngvarr)\
**Post date:** [September 23, 2024, 1:08pm UTC](https://forums.unrealengine.com/t/ai-not-working-on-loaded-levels/344011/11 "2024-09-23T13:08:25Z")

</div>

No, its bad idea. The problem is solved by placing RecastNavMesh on the main level (the one from which the game starts), for example, the “Main Menu”. Regardless of how you positioned the NavMeshBoundsVolume. I went to a map where AI movement was not working and deleted RecastNavMesh. Then I generated it in the main menu from which the game was launched. Everything works.
