# Seamless travel client order issue

**URL:** <https://forums.unrealengine.com/t/seamless-travel-client-order-issue/357815>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 18, 2016, 3:14pm UTC](https://forums.unrealengine.com/t/seamless-travel-client-order-issue/357815 "2016-05-18T15:14:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Romenski](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Romenski](https://forums.unrealengine.com/u/Romenski)\
**Post date:** [May 18, 2016, 3:14pm UTC](https://forums.unrealengine.com/t/seamless-travel-client-order-issue/357815/1 "2016-05-18T15:14:29Z")

</div>

Hi,

I have a problem in my project where during seamless travel the client travels faster than the server. As a result, when the server enters, the client is already in the map.

Because of this, HandleSeamlessTravelPlayer does not get called on the server’s gamemode, and therefor the playercontroller of the client never gets upgraded to the one required by the new game mode.

Any idea how I can ensure that my server always travels first before the clients?

Kind regards,  
Romenski

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7cd4a6d2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7cd4a6d2](https://forums.unrealengine.com/u/anonymous_user_7cd4a6d2)\
**Post date:** [May 18, 2016, 3:26pm UTC](https://forums.unrealengine.com/t/seamless-travel-client-order-issue/357815/2 "2016-05-18T15:26:24Z")

</div>

I’m working on the same project. After some debugging I found out this is caused by UNetConnection::ClientWorldPackageName being set to NONE after it is set to the loaded world by APlayerController::ServerNotifyLoadedWorld.

Somewehere in the FSeamlessTravelHandler::Tick function it calls UNetConnection::ResetGameWorldState() which sets this value back to NONE.

As a result the client keeps waiting forever to complete the travel.  
I set breakpoints in the travel function on the server to force the client to load first to test this.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7cd4a6d2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7cd4a6d2](https://forums.unrealengine.com/u/anonymous_user_7cd4a6d2)\
**Post date:** [May 27, 2016, 1:35pm UTC](https://forums.unrealengine.com/t/seamless-travel-client-order-issue/357815/3 "2016-05-27T13:35:33Z")

</div>

A quick way to fix this issue was to run the following code from the player controller that is waiting for seamless travel to complete on the client:

```
 void AMenuPlayerController::PlayerTick(float DeltaTime)
    {
    	Super::PlayerTick(DeltaTime);
    
            UNetConnection* connection = GetNetConnection();
    	if(connection && m_loadedFinalWorld)
    	{
    		ServerNotifyLoadedWorld(m_finalWorldPackageName);
    	}
    }

```

while manually setting m\_finalWorldPackageName to the target level name and setting m\_loadedFinalWorld when it is actually loaded to notify the server

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7cd4a6d2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7cd4a6d2](https://forums.unrealengine.com/u/anonymous_user_7cd4a6d2)\
**Post date:** [June 27, 2016, 12:57pm UTC](https://forums.unrealengine.com/t/seamless-travel-client-order-issue/357815/4 "2016-06-27T12:57:36Z")

</div>

Apparently this issue got fixed in 4.12, so upgrade to that if you can. Otherwise:

I Used this piece of code on the same player controller

```
void AMenuPlayerController::NotifyLoadedWorld(FName WorldPackageName, bool bFinalDest)
{
    	Super::NotifyLoadedWorld(WorldPackageName, bFinalDest);
    	
    	if(bFinalDest)
    	{
    		m_loadedFinalWorld = true;
    		m_finalWorldPackageName = WorldPackageName;
    	}
}

```

So yeah, You’ll have to do this in C++.

---

<div class="post-metadata">

**Author:** ![DLROKen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DLROKen](https://forums.unrealengine.com/u/DLROKen)\
**Post date:** [September 7, 2018, 6:16am UTC](https://forums.unrealengine.com/t/seamless-travel-client-order-issue/357815/5 "2018-09-07T06:16:35Z")

</div>

why not just put a delay on when the character enters the map in the code?

---

<div class="post-metadata">

**Author:** ![liquid.mike](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/liquid.mike/32/88717_2.png) [@liquid.mike](https://forums.unrealengine.com/u/liquid.mike)\
**Post date:** [June 16, 2022, 8:33pm UTC](https://forums.unrealengine.com/t/seamless-travel-client-order-issue/357815/6 "2022-06-16T20:33:49Z")

</div>

This is an old forum post, but in case anyone finds this looking for a fix to this issue that seems to have resurfaced in UE5, check out this forum post: [UE5 Seamless travel bug found. We found the cause, and also have a workaround](https://forums.unrealengine.com/t/ue5-seamless-travel-bug-found-we-found-the-cause-and-also-have-a-workaround/583652)
