x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Open Level not working on mobile launch

Hey, I am using Unreal Engine 4 with a custom gamemode instance of a c++ gamemode class, wich calls to GameState c++ class, to open a specific level. This Function - However if i build on android and try to travel to the next level it loads my current level again and my player character spawns at the player start. When i start in the editor everything works fine. Here is another post with maybe the same problem. In my GameState Constructor i print a message to the screen. But if i start the game (level) it prints 2 lines. Is it possible that i need another function to load the next level on mobile?

Product Version: UE 4.12
Tags:
more ▼

asked Jul 22 '16 at 10:47 AM in Packaging & Deployment

avatar image

Yangus
1 1 1 3

avatar image Sean L ♦♦ STAFF Jul 22 '16 at 05:06 PM

Hey Yangus,

Could you post the full code that you are using to execute your travel to the next level?

Does this issue also occur if you play the game on windows (i.e. package it out for Win64)?

avatar image XADIFY Oct 03 '16 at 05:51 PM

I've encountered the same issue ! ... works fine in editor or when I package the game ... loads same level when launched on mobile. But, I had a menu level, loading level and playing level. If I launch each individual level once, the level transition works. Otherwise it loads the previous level again

avatar image Sean L ♦♦ STAFF Jul 26 '16 at 06:17 PM

Hello,

I am marking this topic as resolved for tracking purposes, as we have not heard from you in a few days. If this issue persists, feel free to respond to this thread. For any new issues, please create a new Answerhub topic.

Have a great day

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

The reason is because when you launch the game it only cooks the default map. You can try adding the map to the Additional Asset Directories to Cook section of Edit->Project Settings->Packaging, or just test by packaging the game in order to prevent this from happening.

Have a great day

more ▼

answered Oct 03 '16 at 06:45 PM

avatar image

Sean L ♦♦ STAFF
44k 485 149 438

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question