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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

GameMode Override is being Ignored when Travelling

Hey,

So I'm not sure if this is just me not understanding the flow of UE4 correctly, or an actual issue, but I am having a problem with getting my game to load the GameMode override that is set in my level to load.

I have cooked my content, including the level, multiple times, to make sure it wasn't an issue with that, and have been searching through the engine code to figure out what is happening.

In UWorld::SetGameMode(const FURL& InURL), the GameClass in the line

UClass* GameClass = Settings->DefaultGameMode;

the GameClass variable is always being set to NULL, causing the engine to load the DefaultGameMode that is set in the DefaultEngine.ini.

All of the other maps within this project load the correct GameMode, it just seems to be this one map for some reason.

Product Version: UE 4.12
Tags:
more ▼

asked Aug 23 '16 at 10:24 AM in Using UE4

avatar image

Sospitas
1 1 4 4

avatar image Sospitas Aug 23 '16 at 11:53 AM

Swapped out the FString being used to travel to the level with another level within my project. It loads the correct GameMode for that level. It just seems to be this one level that isn't working...

avatar image Sospitas Aug 23 '16 at 03:05 PM

Few hours of testing later.

Switching the GameMode of the level to a different one from the project loads the GameMode correctly. The current, non-working GameMode doesn't work in a build no matter which level it is used in, but does work in the Editor.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

There was a warning in the cook logs about being unable to find the Parent for the Blueprinted GameMode. For some reason, when using UnrealFrontend, the cooker cannot find the parent classes, however if I Cook Content For Windows from within Development Editor, it finds it fine. This isn't really an "answer" so to speak, but it is a temporary solution.

After you cook content from within Development Editor, it seems to work within UnrealFrontend up until I modify the classes that it couldn't find in anyway, at which point it returns to being unable to find the Parents.

more ▼

answered Aug 24 '16 at 03:11 PM

avatar image

Sospitas
1 1 4 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Have you double-checked under Class Defaults of the blueprint that the parent class is set to the base GameMode blueprint?

more ▼

answered Aug 24 '16 at 04:19 PM

avatar image

CleanCut
2.1k 67 84 77

avatar image Sospitas Aug 24 '16 at 04:52 PM

Yep, definitely using the correct Parent class, and the Editor knows about it fully. It just seems to be when using Frontend that it doesn't work.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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