# How do I servertravel with a pre-selected Gamemode

**URL:** <https://forums.unrealengine.com/t/how-do-i-servertravel-with-a-pre-selected-gamemode/1283220>\
**Category:** Multiplayer & Networking\
**Tags:** gamemode, servertravel, listen-server, seamless-travel, unreal-engine, Blueprint, question\
**Created:** [September 4, 2023, 10:28pm UTC](https://forums.unrealengine.com/t/how-do-i-servertravel-with-a-pre-selected-gamemode/1283220 "2023-09-04T22:28:56Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![MartenZander](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/martenzander/32/589446_2.png) [@MartenZander](https://forums.unrealengine.com/u/MartenZander)\
**Post date:** [September 4, 2023, 10:28pm UTC](https://forums.unrealengine.com/t/how-do-i-servertravel-with-a-pre-selected-gamemode/1283220/1 "2023-09-04T22:28:56Z")

</div>

So, I am kind of new to the multiplayer game. so please bare with me, if I may misunderstood parts of the basic concept here.

Following a tutorial series on Youtube, I managed to set up the fundamentals of my multiplayer loop. Stuff like creating/finding/joining a lobby works more or less stable.  
Once I create a multiplayer session (Lobby), I can use servertravel to send all connected clients to a selected Level/Map. Now here is where the confusion starts for me. I know I can set up GameMode Classes in a Level’s World Settings. However, what if I want to choose in the Lobby, which GameMode I actually want to play. For instance, in the Lobby I select Level “A” and in addition to that, I would like to choose from two different GameModes (“FreeForAll”, “TeamDeathmatch”).

How do I transmit that information when I use servertravel. Or do I actually have to duplicate my Level “A” twice (“A\_FreeForAll”, “A\_TeamDeathmatch”) to make that work?

Any advice or idea is welcome and highly appreciated!)

---

<div class="post-metadata">

**Author:** ![MartenZander](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/martenzander/32/589446_2.png) [@MartenZander](https://forums.unrealengine.com/u/MartenZander)\
**Post date:** [September 9, 2023, 7:49pm UTC](https://forums.unrealengine.com/t/how-do-i-servertravel-with-a-pre-selected-gamemode/1283220/2 "2023-09-09T19:49:22Z")

</div>

bump

---

<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:** [September 9, 2023, 8:26pm UTC](https://forums.unrealengine.com/t/how-do-i-servertravel-with-a-pre-selected-gamemode/1283220/3 "2023-09-09T20:26:53Z")

</div>

Create a Generalized Game mode that supports Actor Components. The AC’s will handle the logic.

Then use a Command line argument to tell the level or GM how to proceed.

---

<div class="post-metadata">

**Author:** ![MartenZander](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/martenzander/32/589446_2.png) [@MartenZander](https://forums.unrealengine.com/u/MartenZander)\
**Post date:** [September 9, 2023, 9:19pm UTC](https://forums.unrealengine.com/t/how-do-i-servertravel-with-a-pre-selected-gamemode/1283220/4 "2023-09-09T21:19:30Z")

</div>

So it is not feasible to just load a map with a different Game Mode Override?  
What is the purpose of having multiple Game Mode assets then anyways? I thought the idea of this class was to create rules for certain types of a game. Why would I want to handle that kind of logic else where?

---

<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:** [September 9, 2023, 11:53pm UTC](https://forums.unrealengine.com/t/how-do-i-servertravel-with-a-pre-selected-gamemode/1283220/5 "2023-09-09T23:53:09Z")

</div>

The level loads the GM that’s set in the level settings.

If you create a master GM class that uses AC’s for rules etc you can run your entire game on a single GM.

Smarter, not harder.

---

<div class="post-metadata">

**Author:** ![Chatouille](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chatouille/32/1194622_2.png) [@Chatouille](https://forums.unrealengine.com/u/Chatouille)\
**Post date:** [September 11, 2023, 2:21pm UTC](https://forums.unrealengine.com/t/how-do-i-servertravel-with-a-pre-selected-gamemode/1283220/6 "2023-09-11T14:21:07Z")

</div>

You can specify gamemode in ServerTravel URL, like :

```plaintext
LevelA?Game=/Game/Blueprints/BP_FreeForAll.BP_FreeForAll_C?Listen

```

Here’s some more in-depth info about URL options

> **[Unreal Engine Persistent Data Compendium](https://wizardcell.com/unreal/persistent-data/#7-game-options-string)**
>
> Compendium for traveling, disconnecting, and persisting data across such scenarios

---

<div class="post-metadata">

**Author:** ![MartenZander](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/martenzander/32/589446_2.png) [@MartenZander](https://forums.unrealengine.com/u/MartenZander)\
**Post date:** [September 12, 2023, 11:50am UTC](https://forums.unrealengine.com/t/how-do-i-servertravel-with-a-pre-selected-gamemode/1283220/7 "2023-09-12T11:50:27Z")

</div>

Thank you for the answer! Looks promising. So setting up a proper Travel URL like in your example will already override the gamemode, or is it just a parameter that is transmitted to the new level which I can then use to change the gamemode on the fly?

Sorry if I am missing obvious things here, but since I am still a little new to multiplayers this stuff is really a blackbox for me. Reading the compendium section on it helped only partially, as I didn’t understand half of it

---

<div class="post-metadata">

**Author:** ![Chatouille](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chatouille/32/1194622_2.png) [@Chatouille](https://forums.unrealengine.com/u/Chatouille)\
**Post date:** [September 12, 2023, 12:16pm UTC](https://forums.unrealengine.com/t/how-do-i-servertravel-with-a-pre-selected-gamemode/1283220/8 "2023-09-12T12:16:57Z")

</div>

All the built-in options in the table are handled by the Engine.

You can add as many custom options as you want, which you can parse and implement in eg. event InitGame.

---

<div class="post-metadata">

**Author:** ![MartenZander](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/martenzander/32/589446_2.png) [@MartenZander](https://forums.unrealengine.com/u/MartenZander)\
**Post date:** [September 12, 2023, 12:51pm UTC](https://forums.unrealengine.com/t/how-do-i-servertravel-with-a-pre-selected-gamemode/1283220/9 "2023-09-12T12:51:51Z")

</div>

Okay, thanks a bunch! I will test it later today, and see if it works. But according to what you said and what the compendium explains, it looks exactly like what I need.

---

<div class="post-metadata">

**Author:** ![MartenZander](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/martenzander/32/589446_2.png) [@MartenZander](https://forums.unrealengine.com/u/MartenZander)\
**Post date:** [December 8, 2023, 9:49pm UTC](https://forums.unrealengine.com/t/how-do-i-servertravel-with-a-pre-selected-gamemode/1283220/10 "2023-12-08T21:49:45Z")

</div>

Sorry for the delay. Only today I was able to finally test it. And yes, I can confirm it worked:) Thus, thank you very much!

---

<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:** [January 7, 2024, 9:50pm UTC](https://forums.unrealengine.com/t/how-do-i-servertravel-with-a-pre-selected-gamemode/1283220/11 "2024-01-07T21:50:26Z")

</div>

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