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"

Online Subsystem transfer a user to different server

Hey Everyone.

I've been stuck on this for a few weeks now, and I feel like I've exhausted all of the options I can think of. I'd appreciate any guidance.

I have a dedicated server and client using the online subsystem. I'm able to search for sessions, find my server, and connect using my client. All of this is working great.

I want to be able to send my player over to a different dedicated server after they have connected. Say for example, the user connects to a server, then clicks on a portal object. I want this to transfer the player over to a different dedicated server.

The code is c++, and based on shooter game. All of my session related functionality comes from here.

Is anyone doing anything like this? Can I get a little high level insight on how to approach it?

Edit > I should add that I have the portal object and the interaction part sorted out... The missing piece is how to deal with the session search server-side, and how to initiate the player transfer.

Product Version: UE 4.13
Tags:
more ▼

asked Jan 08 '17 at 06:34 PM in C++ Programming

avatar image

edcolmar
120 6 13 20

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

1 answer: sort voted first

It is surprisingly simple:

 ClientTravel(URL, TRAVEL_Relative, false, FGuid());

Where URL is the IP with port of the server to travel to. Something like 192.168.1.81:7778 [My Local IP]:[The port I started the map on]

Just call that from your Player Controller. I use this in my large world MMO system to transfer players between servers to create a large world with connected maps where one map runs per port (7778, 7779, etc).

more ▼

answered Jan 08 '17 at 07:20 PM

avatar image

Dartanlla
2.6k 63 28 281

(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