# Android launch sometimes won't load maps

**URL:** <https://forums.unrealengine.com/t/android-launch-sometimes-wont-load-maps/140154>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [March 21, 2020, 2:20am UTC](https://forums.unrealengine.com/t/android-launch-sometimes-wont-load-maps/140154 "2020-03-21T02:20:34Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![SeldinG](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/selding/32/709346_2.png) [@SeldinG](https://forums.unrealengine.com/u/SeldinG)\
**Post date:** [March 21, 2020, 2:20am UTC](https://forums.unrealengine.com/t/android-launch-sometimes-wont-load-maps/140154/1 "2020-03-21T02:20:34Z")

</div>

This doesn’t happen all the time but when it does it’s annoying. Sometimes when I launch to the phone, the game loads up to the main menu but upon hitting play or any level I get a travel error which is it can’t find the map for some reason so it won’t load. It loads in the editor but not on the phone. The only thing I can think of is data corruption because it only happens once in a while but I have to exit Unreal, delete the app from the phone, relaunch unreal, and relaunch to the phone. And this isn’t always a quick fix. I might have to rinse and repeat a few times. Any thoughts?

Edit:  
This is continuing to happen. Has no one else encountered this?

 ![Capture.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/5/f56c4e02cc2c7f39fdd08a334959d1a52b92c9e1.png)

---

<div class="post-metadata">

**Author:** ![SeldinG](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/selding/32/709346_2.png) [@SeldinG](https://forums.unrealengine.com/u/SeldinG)\
**Post date:** [March 29, 2020, 5:16am UTC](https://forums.unrealengine.com/t/android-launch-sometimes-wont-load-maps/140154/2 "2020-03-29T05:16:04Z")

</div>

For anyone else having this issue, this seems to help. Go to Project Settings and turn on “cook everything” under packaging.

---

<div class="post-metadata">

**Author:** ![FSapio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fsapio/32/1194616_2.png) [@FSapio](https://forums.unrealengine.com/u/FSapio)\
**Post date:** [March 31, 2020, 7:39pm UTC](https://forums.unrealengine.com/t/android-launch-sometimes-wont-load-maps/140154/3 "2020-03-31T19:39:40Z")

</div>

> [@SeldinG](#):
>
> For anyone else having this issue, this seems to help. Go to Project Settings and turn on “cook everything” under packaging.

A slightly better solution is to go onto _Project Settings - \> Packaging_ and then specify the maps you want to cook directly inside “_List of maps to include in a packaged build_”. As a result, you can cook only what you need.

---

<div class="post-metadata">

**Author:** ![SeldinG](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/selding/32/709346_2.png) [@SeldinG](https://forums.unrealengine.com/u/SeldinG)\
**Post date:** [April 24, 2020, 3:39am UTC](https://forums.unrealengine.com/t/android-launch-sometimes-wont-load-maps/140154/4 "2020-04-24T03:39:25Z")

</div>

> [@FSapio](#):
>
> A slightly better solution is to go onto _Project Settings - \> Packaging_ and then specify the maps you want to cook directly inside “_List of maps to include in a packaged build_”. As a result, you can cook only what you need.

Unfortunately neither of these are working for me at the moment. I still get travel errors and Invalid URLs. I can’t fix what I don’t understand and I can’t seem to get any viable information on this. I can’t be the only indie moron out here who has encountered this.

I’ve tried wiping the app from the target device both by the uninstall option and the terminal using adb tool, and then rebuilding - which worked initially but is broken again. Subsequent attempts have failed as has the above mentioned. I’ve tried manually adding the links to the levels as you’ve stated, and checking the cook all button. I’ve looked through the logs to get more insight into the exact error but all it says is invalid url but I don’t know why it’s invalid. It doesn’t give me enough information. And when I trace it back, the path is correct. It runs in the editor, it runs in pie, it runs in standalone but not built to the phone. Something’s getting lost in translation.

---

<div class="post-metadata">

**Author:** ![SeldinG](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/selding/32/709346_2.png) [@SeldinG](https://forums.unrealengine.com/u/SeldinG)\
**Post date:** [April 25, 2020, 4:48pm UTC](https://forums.unrealengine.com/t/android-launch-sometimes-wont-load-maps/140154/5 "2020-04-25T16:48:02Z")

</div>

My problem seems to be that the map name being passed into “Open Level” isn’t the full address of the map. So for instance, if I type in Level1, it will run in the editor but on the package it needs to be /Game/Maps/Level1 for the map name. Now, I say this seems to be the problem because in the data file that stores the list of maps, they are listed with the full address so the name that is grabbed from that list should be the full address. For some reason it isn’t. However, if I type it in manually, it does work on the package. It also needs to be added to the package map list.

Packaged map list  
 ![Capture.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/9/493cd2e8bd8fff151fef4e3dcbd31bf7ffad4de0.png)

Data list

 ![Capture1.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/8/f86034c37d04ba89852b95e7c2c44094ec2e39eb.png)

Open Level

 ![Capture2.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/1/21a9a5ce3659e7676225b87e599ee0703557c248.png)

I will post an update with any changes.

---

<div class="post-metadata">

**Author:** ![SeldinG](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/selding/32/709346_2.png) [@SeldinG](https://forums.unrealengine.com/u/SeldinG)\
**Post date:** [April 25, 2020, 5:16pm UTC](https://forums.unrealengine.com/t/android-launch-sometimes-wont-load-maps/140154/6 "2020-04-25T17:16:08Z")

</div>

I have confirmed that it’s not reading from the data file. I also had it write the level name to the screen when selected and they all report “none” - should I create a new thread for this error?

See below.

 ![Screenshot_20200425130938.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/c/fca09e8ba6869cd89b39f3f942e5485b16a97725.png)

 ![Capture4.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/e/2e929454571302b495b7aeba8a990079b387b384.png)

---

<div class="post-metadata">

**Author:** ![SeldinG](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/selding/32/709346_2.png) [@SeldinG](https://forums.unrealengine.com/u/SeldinG)\
**Post date:** [April 26, 2020, 2:17pm UTC](https://forums.unrealengine.com/t/android-launch-sometimes-wont-load-maps/140154/7 "2020-04-26T14:17:38Z")

</div>

Solved (so it seems)

The data file was failing because there were spaces in the column headings. See below:

[ATTACH=JSON]{“data-align”:“none”,“data-size”:“large”,“data-tempid”:“temp\_189811\_1587910503647\_216”}[/ATTACH]

Coming from a programming background, I almost never use spaces in anything other than strings – I say almost never because Unreal is a little loosy-goosey when it comes to whether it’ll accept spaces or not. As mentioned before, it loaded fine in the editor but failed to read in the packaged game. Removing said spaces from the column headings has solved this issue. For now.

 ![Capture5.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/c/9c19ebf4f117defc0b9a757e291998d352dfccc7.png)

I also, of course, updated the accompanying struct’s member names as well:

 ![Capture6.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/7/17c7d2407087e79a3b4366d6e352873f8a8f094e.png)

---

<div class="post-metadata">

**Author:** ![FSapio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fsapio/32/1194616_2.png) [@FSapio](https://forums.unrealengine.com/u/FSapio)\
**Post date:** [May 17, 2020, 11:55am UTC](https://forums.unrealengine.com/t/android-launch-sometimes-wont-load-maps/140154/8 "2020-05-17T11:55:00Z")

</div>

I am glad you figured it out.  
Just for the record, in case someone else has a similar issue, are you still keeping the maps in the “_List of maps to include in a packaged build_”?

---

<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:** [August 25, 2022, 9:14pm UTC](https://forums.unrealengine.com/t/android-launch-sometimes-wont-load-maps/140154/9 "2022-08-25T21:14:37Z")

</div>

an FYI for dumbos like me, if you move your maps from folder to folder, you MUST go back to the project settings and change the maps the cook path. Doh…
