# Cannot switch game modes between levels

**URL:** <https://forums.unrealengine.com/t/cannot-switch-game-modes-between-levels/1412155>\
**Category:** Blueprint\
**Tags:** gamemode, load-level, Map, open-level, unreal-engine, level, Blueprint, question\
**Created:** [November 22, 2023, 4:01pm UTC](https://forums.unrealengine.com/t/cannot-switch-game-modes-between-levels/1412155 "2023-11-22T16:01:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lowenfas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lowenfas](https://forums.unrealengine.com/u/Lowenfas)\
**Post date:** [November 22, 2023, 4:01pm UTC](https://forums.unrealengine.com/t/cannot-switch-game-modes-between-levels/1412155/1 "2023-11-22T16:01:23Z")

</div>

I have a whole level that is the main menu, and a special gamemode for that.

But once you start a new game and it loads the level, I have the “gamemode override” set to use a different gamemode. Except it continues to use the same menu gamemode.

I have the Project Settings ‘Default gamemode’ set to the menu one because it should always start using that game mode. But then it does not switch game modes whenever you change the level, WHYYYYYYY?

Update: I also noticed that if I open the in-game level \> save \> go back to main-menu level and play the game, it will work properly ONE time. And after that initial play, it will no longer change the game mode whenever it changes to the game level.

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [November 22, 2023, 6:16pm UTC](https://forums.unrealengine.com/t/cannot-switch-game-modes-between-levels/1412155/2 "2023-11-22T18:16:39Z")

</div>

How are you changing game modes?

General method is to simply load level. The level settings define the game mode.

---

<div class="post-metadata">

**Author:** ![Lowenfas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lowenfas](https://forums.unrealengine.com/u/Lowenfas)\
**Post date:** [November 22, 2023, 8:16pm UTC](https://forums.unrealengine.com/t/cannot-switch-game-modes-between-levels/1412155/3 "2023-11-22T20:16:44Z")

</div>

The first picture is inside the game instance, it basically is just the Open Level node.

The second picture is in the settings of the actual Level/Map. That is the only place I know of where you can change the GameMode with the exception of the global project settings.

 ![Screen Shot 2023-11-22 at 3.09.20 PM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/1/e41a79c69ae4a477d5ff8255456bb156f2e939b6.png)  
 ![Screen Shot 2023-11-22 at 3.10.26 PM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/0/f/60f51a9f9e5e701323c68d0c97c487a8d2182555.png)

Thoughts?

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [November 22, 2023, 9:08pm UTC](https://forums.unrealengine.com/t/cannot-switch-game-modes-between-levels/1412155/4 "2023-11-22T21:08:06Z")

</div>

You need to define the game mode in the level settings for each level.

e.g.  
Lvl-TDM, GM\_TeamDeathmatch  
Lvl-CTF, GM\_CaptureFlag

When the level loads it reads the game mode from the settings and creates an instance of that mode.

* * *

Works correctly on my end.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/e/13ef5c915296d452b03c28283fa8694b5dce8f6a.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/e/abecec1876f4d0b7f1d006b82e4137b9075fa0ba.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/6/c/a6c5d17b2af77cd1d9a7502fccccd354ade2ed68.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/d/4ad8c27abf6796bb988f8f635c662860ab004e8c.png)

In Lvl\_CTF level blueprint I have the following:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/c/1cc61b501af53c8aa93efd910690b208e9d2f67f.png)

In Lvl\_TDM level blueprint I have the following:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/9/6d958c567bfe6e5958bcd8825964bfce86b5c4ee.png)

In my character class, used for both levels, I have the following on Begin Play:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/7/8/b7893535f31ca4e1f704914c1976bc6d183fc995.png)

Tapping key 1 changes the map and the character prints the current game mode.

* * *

Optionally you can change the Game Mode for the given map with a parameter in the “Options”.

`?game=/Game/Path-to-Gamemode/MyGameMode.MyGameMode_C`

Downside is the new GM will use the previous GM’s character class and you will be forced to manually handle spawning.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [December 31, 2023, 5:03pm UTC](https://forums.unrealengine.com/t/cannot-switch-game-modes-between-levels/1412155/5 "2023-12-31T17:03:22Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
