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. 

Multiplayer/Networking with a navigation system

Hello guys and sorry if I'm asking a "stupid question" but I've searched through the hub and the forum and there are couple of similar questions but no answers.

So I'm taking the TopDown Blueprint template and trying to make the multiplayer work. In this template the character is moved by clicking on the plane where it basically boils down to the SimpleMoveToLocation() function call with the "goal parameter" of the mouse click position. My idea for networking was: send a custom event to the server with a mouse hit location, move the charcter on the server and let it replicate itself to the clients. Here how it looks like: alt text alt text

For the most part it's the same as in the template. So now comes the strange part:

I see the differences in server and client behavior when running with two clients (NO dedicated server). While server movement/rotation/animation gets replicated perfectly, client does not replicate it's rotation or animation and movement is slow and jittery. Can someone please give me a hint on why is that??? Both client and server movements are running on the server and replicate themselves to the client. But the server movement works and the client movement doesn't. I can't wrap my head around that. It seems like there is smth. basic about the replication that I misunderstand.

Product Version: Not Selected
bp1.jpg (153.2 kB)
bp2.jpg (171.3 kB)
more ▼

asked May 27 '14 at 08:38 AM in Blueprint Scripting

avatar image

208 14 17 27

avatar image Exreph May 28 '14 at 12:35 AM

I wish I could help, but same issue as you saw.

All the other templates replicate movement pretty well, but this one seems like you have to manually replicate location, rotation, and I suppose animations. But that still doesn't explain the slowness of movement.

avatar image Dartanlla May 28 '14 at 04:18 AM

I am having the same issue and I have not found a solution yet. I looked at the source code and I believe the problem is that location and rotation are not values that replicate. Only changes in location and rotation are replicated. I believe this has to do with the movement prediction system that runs on the clients. In the other templates, the "Add" functions are being used for movement, whereas in the top down template it uses Simple Move to Location. I wish they would upgrade the Top Down template to replicate movement since doing it manually will mean we don't get the prediction system and the movement will be choppy. If you find a solution for this, please let me know. This issue makes the Top Down template unusable.

avatar image Alex.Holyman May 28 '14 at 07:43 AM

In a similar post https://answers.unrealengine.com/questions/34074/does-ue4-have-client-side-prediction-built-in.html Zak Middleton from STAFF promised to provide some clarification about it. Stay tuned ;)

avatar image Spoki0 Feb 24 '15 at 01:42 PM

Don't suppose you managed to fix the problem?

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

1 answer: sort voted first

Try This: alt text

more ▼

answered Sep 15 '14 at 06:18 AM

avatar image

56 1 104 10

avatar image qdelpeche Mar 06 '15 at 03:34 PM

This worked for me.

avatar image Daniel K. Nov 28 '16 at 12:38 PM

Thank you, very helpful. Although now it walks only as long as I hold mouse which makes sense because of how Controller is build there with checking Pressed/Released. I am wondering if it's possible to somehow easily check for Click and with the same InputAction node and do Move to Location instead. Do I need to manually setup some timer that check how long was the button pressed?

avatar image Dartanlla Nov 28 '16 at 03:31 PM

After commenting on this thread over 2 years ago, I found the proper solution. The trick is to setup an AI to move your Character and then when you click a location the player controller sends that point to the AI to move to that position. It then keeps moving without you holding down the mouse button. Since the AI moves the Character on the server, this method automatically works for network play and is replicated to all clients. It would be nice if Epic modified the Top Down template to use this method, since they have said in the past that this is how they would handle the issue. Maybe I will put together an alternate top down template project that people can use that starts with network/multiplayer support.

avatar image Daniel K. Dec 04 '16 at 02:36 AM

Yes, that would be great to have a network ready TopDown example as it's rather confusing part since most of other templates are working over network out of the box.

(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