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"

Connection workfow

What happens after I called PlayerController :: ClientTravel? What is usually done after a call to this method? I need to show the screen "Connect to Server" and wait for work when a particular event?

Still here. What will happen after the client connects to the server and usually needs to be done? The client will automatically load level and switch to the new GameMode and start the game by calling a method BeginPlay or somehow everything will happen differently?

I do in C ++, but the options on the blueprint also considered.

Product Version: UE 4.11
more ▼

asked May 31 '16 at 12:02 AM in C++ Programming

avatar image

16 3 4

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

1 answer: sort voted first

Page 79 http://cedric.bnslv.de/Downloads/UE4_Network_Compendium_by_Cedric_eXi_Neukirchen.pdf

I recommand you reading the whole PDF its pure knowledge. eXi done a amazing Job. Should Answer all the Questions you got. If you are unsure when does something get called a simple Printstring will give you the Answer =)

Have Fun and Credits to eXi for that Answer.

more ▼

answered May 31 '16 at 11:41 PM

avatar image

7k 143 28 172

avatar image cin Jun 01 '16 at 01:51 AM

Nachtmahr, need some c++ example of network game where I can see how to do. I read this pdf, but it not contain any source code (as all documetation for Unreal). :(

avatar image Nachtmahr Jun 01 '16 at 05:25 PM

Well what can I say those are the Core Pieces you have to know about and a full example really depends on the Game you are making. The Server is always the first one present and Holds the Game Mode. If a Client Travels to that Server PostLogin get called in the Game Mode passing the Contoller that joined. What you do at this point that is totaly up to you. Assign him to a Team, Display a Join Message or start a Firework up to you. Same goes for where you call ClientTravel it can be called from a Input Button, Widget, Trigger or the Servers Game Mode you can even Load a Level inbetween just for the Loading proccess.

The is no full source Code there but you See C++ Snippets covering the basic pieces. Test things out.

avatar image cin Jun 02 '16 at 05:10 AM

I want make very simple game - movу cube on plane over network/ I need typical code where I can see how to connect to server. How hot Client can handle connection success or fail and how to control pawn on scene in multiplayer game. I need very very very simple code without 1GB content and other stuff.

(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