Game mode override not working till i rename the custom game mode

Build Type : 4.12.5 from launcher,
Build Version : 4.12.5-3039270,
Build configuration : Development,
Build Date : 6 July 2016,

When opening a new blank project, and we want to override the game mode to a custom one, editor uses the default game mode even when it shows the custom one is selected in current game mode option. With custom game mode selected in the gamemode override option, after renaming the game mode, editor uses the new game mode.

Reproduction process:

  1. Create Blank project
  2. Create a level.
  3. Make a new Game mode and change the classes to a custom pawn with a camera or something or a custom HUD with some health bars etc.
  4. Play the game. The editor runs the default game mode(i.e when set to None)
  5. Now with that Game mode set in the Game mode override, rename the Game mode we created.
  6. Play the Game and now the game mode is overridden.

here is the DxDiag : DxDiag log

Please lemme know about status of this bug … don’t know if it is bug of content browser or core engine or something but content browser should also needs lot of work I guess. Especially when renaming or deleting files. The game mode or levels used by editor are those which are renamed but editor searches for files with older names and gives an error (i.e ‘unable to load game mode/ level xyz’, where xyz file is already renamed to something else).

1 Like

Hi XADIFY,

Have you tried setting the game mode in both the world settings and the edit>project settings>maps&modes menu? You need to set both to ensure that the default game mode is not used.

1 Like

but isn’t the edit>project settings>maps&modes menu is supposed to change the overall default game mode for engine and the world setting thing is supposed to override it for specific level ? … Why does it work only after we rename stuff … I mean even after I restart the engine the overridden game mode works(after rename of course) … I don’t know if you have misunderstood but i’m trying to override a game mode for custom level and not change default gamemode for the engine. If you didn’t misunderstood m sry :slight_smile: its jus me n my OCD of being specific and make sure ppl get the exact thing … Anyways … i’ll check that and reply in 15 mins ! its not much of a big bug but its kinda annoying first time and I thought I did something wrong.

Ok I tried once again and found that once I override game mode in world setting, the default game mode goes to None in project settings … and unless I change it too or rename the new game mode in content browser it won’t work … Its kinda confusing. I think it should not change to None in project settings. or else lotta newbies will get confused and think they have done something wrong. Its a very minor thing but please take a look at it. I spent hours trying to figure it out when my HUD wasn’t working :slight_smile:

What are the exact steps you are taking to set the game mode? The standard method is to set the game mode in project settings, this is the primary game mode. In the world settings, you set the level’s game mode, which if set to none will set the game mode to none, not to the project settings value. To keep the project settings value, you will have to set it to the same game mode.

Sry my bad … unclear reproduction steps …

  1. I created a new character with some arrow or something so that I can identify
  2. created a new game mode
    (The default game mode after creating a new blank project is set to ‘Gamemode’ in project settings and ‘none’ in world settings.)
  3. playing the game 1st time will obviously play in that game mode(i.e ‘Gamemode’)
  4. Set that new game mode in world settings.
  5. changed pawn class under ‘selected gamemode’ drop down or idk what it is called.(in world settings)
  6. played the game but pawn didn’t change … renamed the new game mode we created and now we can play as the new pawn we have set.
  7. created another gamemode called GM1 and set it in world settings and change the pawn or anything without actually going inside the gamemode blueprint(from that drop down thing).
  8. When I hit play I get the same pawn of ‘Gamemode’ gamemode provided by unreal

This happens if you create a new game mode and just change the pawn or any settings from selected gamemode drop down there and not actually going in the blueprint and change the gamemode settings. Actually never touched project settings the entire time. Lemme know if you found anything

Try this:

Create new game mode

Go to Project Settings>Maps and Modes>Set game mode
Go to World Settings>Set game mode

If you do this, you should be able to override the project settings game mode to the new level specific game mode without causing the error you are seeing occur. If this doesn’t fix it, please let me know and we can continue to look.

I checked and works good from project settings and editing the game mode blueprint by opening it !

i meet the same thing like you.
it cost me a lot of time .
your idea is useful.
maybe,it is a bug?

Yeah its a minor bug mayb, but costs a lot of time figuring out is it a bug or we did something wrong. Was working on UMG for first time and it was jus wasn’t working that time

I just tried this and it didn’t work. Both project and world settings have the same mode :frowning: