Problems with ServerTravel

I’m having issues when I press Host button.
Unreal crashes when the delegate OnCreateSessionComplete is called. It crashes when I’m calling ServerTravel to start the new map.

world->ServerTravel("/Game/ThirdPersonCPP/Maps/ThirdPersonExampleMap");

I’m not so sure how to debug this or how can I fix it. If anybody can help me, I’d really appreciate.

Just in case this is the project in github: https://github.com/bsgg/PuzzlePlatformMulti_UE

I know the problem is that call because I commeted that call and added some logs to make sure.

Thanks

Have you tried attaching the debugger to see where it crashes?

Hello Sam

Yes I did try but it’s not helping me because the exception is when I am calling
world->ServerTravel("/Game/ThirdPersonCPP/Maps/ThirdPersonExampleMap");
and the debugger says:

You do not have any debugging symbols required to display the callstack for this crash.

It’s seems to be a problem with ServerTravel.

Anything else I could do?

Thanks

I’ve just realized that I don’t have this problem if I launch the game outside from the editor.
I’m not so sure what happens but at least I can carry on with the course.

Yes, install the engine debugger symbols:

Well if that’s a solve for you that’s okay too.

I’m having the same issue. If I find a fix I’ll post it here. (4.19.2)

Ok, found it, duh. I still had the number of players in the editor set to 2. That’s what made the SessionInterface->CreateSession(0, SESSION_NAME, SessionSettings); mad. :slight_smile:

Just click the dropdown next to play in the editor and under multiplayer options change number of players to 1.

4 Likes

Privacy & Terms