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"

Initial network replication for join-in-progress

What is the best way to achive initial world state replication for client after connecting to the server?

So, for example I have replicated static mesh on dedicated server.

Client joins the server and moves mesh to another position. After few minutes another client joins server. He will see mesh in initial position (not moved) - and it is wrong for game logic.

Of course when mesh will moved again - it will replicate its state to all clients, but it is too old.

So, what is the best way to achive initial on-connect world replication?

Product Version: Not Selected
Tags:
more ▼

asked Jan 06 '15 at 03:33 PM in Using UE4

avatar image

nkey
144 8 15 24

avatar image MajekPL Apr 02 '15 at 12:51 PM

have you solved it?

avatar image nkey Apr 02 '15 at 12:52 PM

hm, nope :(

avatar image Breyarte Dec 22 '15 at 05:13 AM

I have the same question. The only way I can think of solving this is by creating a 'on join' custom event for every single actor that has replication.

How is this done in UE4? What is the correct or recommended design pattern? I don't mind writing my own code, but it would be great to have some validation on the direction.

avatar image nkey Dec 22 '15 at 09:39 AM

Also it is possible to create events in PlayerController (with execute on owning client settings). And on login client will send event to server, server collect all mesh positions and send back to client....

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

1 answer: sort voted first

Hello nkey,

After doing a bit of digging I was able to find a page in the documentation that handles just such an issue. I have provided a link below. I hope that this information helps.

Link: https://docs.unrealengine.com/latest/INT/Resources/ContentExamples/Networking/index.html#relevancy

Make it a great day

more ▼

answered Dec 29 '15 at 08:39 PM

avatar image

Rudy Q ♦♦ STAFF
47.2k 545 132 525

avatar image Breyarte Dec 29 '15 at 09:44 PM

The chest example is an exact match for my issue. I was looking for terms like "deferred callback". My only criticism is that the SEO for some of these concepts are too ambiguous. As with many things, it is not a lack of understanding how to do it, but a lack of knowing how the engine does it. I would have never thought to look for "relevancy" in the context of the technical problem. Thank you for the answer!

(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