x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

ServerTravel and UpdateSession

My Game Project is based on ShooterGame, but instead of running listen server, I modified it to adopt a dedicated server/client structure. My game client is using online subsystem to find and join my dedicated game server. I have managed to do this successfully. But when it comes to change map and game mode, I got issues like client lost connection.

Currently, the procedure I change map and game mode is like this.

  1. Call function IOnlineSessionPtr->UpdateSession() with the new map and game mode;

  2. Then upon update success, Call ServerTavel with new map and game mode in the callback function, which bind to OnUpdateSessionComplete delegate.

Both My server and client are traveled to the new map, but my client got freeze for a while then lost connection. I tried set seamlessTravel to true/false, or pass to the clientTravel with connection string get from GetResolvedConnectString. None of them worked. Any ideas?

Or instead of UpdateSession, should I Endsession and CreateSession every time I change Map and GameMode(match)? I want players to be able to iterate over all the GameModes without being disconnected.

Product Version: Not Selected
Tags:
more ▼

asked Nov 26 '14 at 02:06 AM in C++ Programming

avatar image

Beibei
93 10 14 15

avatar image eXi Nov 27 '14 at 01:09 PM

I'm not that good in C++ Networking, but do you have a Log File that you could use to determine the error? I'm pretty sure the ShooterGame uses lots of Log commands to generate a Log File where you can find reasons for disconnects etc (Like GameSession failed or something like this).

I guess this would help to find your Error, although i can't tell you if there isn't just a simple solution to your problem.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Try adding ?listen to the end of your map name for the server. This should allow the client to make a connection.

more ▼

answered Nov 27 '14 at 01:02 PM

avatar image

Dune
1.9k 52 40 200

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question