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"

Variable only changes on server and owning client

The image explains it all. My fire mode changes on owning client and server but other clients don't see it. If server changes it's weapon, nobody sees. Fire mode is an replicated enumaration.

alt text

Product Version: UE 4.7
more ▼

asked May 25 '15 at 08:13 AM in Blueprint Scripting

avatar image

84 10 14 20

avatar image theknoppix May 25 '15 at 08:47 AM

Here is the dropbox link for the people can't see the image


avatar image Detech May 25 '15 at 10:28 AM

Okey. What happens (step by step).

  1. Client 1 change FireMode

  2. Client 1 tell Server change FireMode on server

  3. Server change FireMode

  4. Server replicate FireMode to client 2 and 3 (forexample)

  5. Client 1 made update weapon

  6. Client 1 tell server update weapon

  7. Server update weapon

Thats all. So. Weapon was updated only on Client 1 (step 5) and server (step 7). Server autoreplicate FireMode on clients, but it never tell update weapon to client. So client 2 and 3 have correct vars, but their models was never updated.

You need: 1. Force server tell clients updates their weapons (Multicast or Clients RPC on every controller) or... 2. Make FireMode "RepNotify Replicate" with call "Weapon Update" inside "FireMode onRep"...

avatar image theknoppix May 25 '15 at 11:48 AM

Firstly, thanks for the explanation.

But the problem is, other clients don't have correct vars. I made a small debug print string to test it. Looks like only owning client and server has the right versions and not even auto-replicated from server to clients and i can't understand why. But both component and variable have replication.

Edit: I tried to add print string to RepNotify, other clients don't even fire that print string. Only input client and server do.

alt text


avatar image Detech May 25 '15 at 06:43 PM

What is a "player weapon"? its some another actor or what?

avatar image theknoppix May 26 '15 at 12:47 PM

It's a blueprintable component, this feature came with 4.7. As i say comment below, i tried to move my enumaration to character and it replicated properly with same setup. I just found that there is a bug on last launcher 4.7 version has a bug that blueprint components can't replicate their variables even though activating Componenent Replicates. I posted bug report too. It's fixed but couldn't make it's way to 4.7.6 i guess.

avatar image theknoppix May 25 '15 at 01:35 PM

Is there any network bug about blueprintable components? Because my weapon is a component made with blueprint, Component Replicates is True on that.

But i just moved my Fire Mode enumaration to character and it replicates properly to other clients too.

alt text


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

1 answer: sort voted first

I found the bug report and it couldn't made it's way to 4.7 hotfixes as i see. Blueprint components can't replicate their variables. Here is the link to it.


more ▼

answered May 25 '15 at 01:56 PM

avatar image

84 10 14 20

(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