# Gauntlet How to use Custom GameMode

**URL:** <https://forums.unrealengine.com/t/gauntlet-how-to-use-custom-gamemode/477858>\
**Category:** C++\
**Tags:** automation-tool, automationtool, gamemode, unreal-engine, test, question\
**Created:** [January 27, 2021, 12:55pm UTC](https://forums.unrealengine.com/t/gauntlet-how-to-use-custom-gamemode/477858 "2021-01-27T12:55:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Helghast](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Helghast](https://forums.unrealengine.com/u/Helghast)\
**Post date:** [January 27, 2021, 12:55pm UTC](https://forums.unrealengine.com/t/gauntlet-how-to-use-custom-gamemode/477858/1 "2021-01-27T12:55:32Z")

</div>

I am using Gauntlet for automated tests.  
But I have come up with launching a map with a clean gamemode, such as the GameModeBase.  
[link text][1]

The problem this is the command to launch maps with a specific gamemode:

```
/Game/Maps/TestLevel?game=/Game/Blueprints/GameModes/BP_CustomGM.BP_CustomGM_C

```

But Gauntlet removes the question mark and opens it with the default gamemode.

```
Pre-formatting Commandline: /Game/Maps/TestLevel?game=/Game/Blueprints/GameModes/BP_CustomGM.BP_CustomGM_C

Post-formatting Commandline: /Game/Maps/TestLevel game=/Game/Blueprints/GameModes/BP_CustomGM.BP_CustomGM_C

```

I have looked at the Gauntlet code that formats the command line and I do not see how to prevent it from removing that symbol in the regular expression:

 ![328205-captura.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/c/c4c94bf8f802830b6b06ee272f23a6ab0e467119.jpeg)

Any ideas?

---

<div class="post-metadata">

**Author:** ![Helghast](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Helghast](https://forums.unrealengine.com/u/Helghast)\
**Post date:** [January 27, 2021, 3:00pm UTC](https://forums.unrealengine.com/t/gauntlet-how-to-use-custom-gamemode/477858/2 "2021-01-27T15:00:37Z")

</div>

Well then, with this more or less ugly parsing at the end of the method, I can make it keep the sign (?) and load the game mode on the fly.

 ![328208-captura.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/a/1/3a121cb9bbfa967dcc826197c3abfe5cca5c9352.jpeg)

any other recommendation is welcome

---

<div class="post-metadata">

**Author:** ![skygamer7090](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@skygamer7090](https://forums.unrealengine.com/u/skygamer7090)\
**Post date:** [December 3, 2024, 9:43pm UTC](https://forums.unrealengine.com/t/gauntlet-how-to-use-custom-gamemode/477858/3 "2024-12-03T21:43:40Z")

</div>

Hey! Not sure if this is still relevant to you but i’ve managed to do so by using the -Map option and using the \<map name\>?game=\<gamemode name\> stuff.

I called it from RunUAT.bat like they do here [Running Gauntlet Tests in Unreal Engine | Unreal Engine 5.5 Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/unreal-engine/running-gauntlet-tests-in-unreal-engine)

Hope it helps (even though it’s been 4 years 😉 )
