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"

Please help, repnotify set material

This has been driving me insane for the last couple of days, because I have made dozens of different implementations to achieve the same thing, and it works perfectly for the server, but never for the clients.

I use Switch Has Authority to make sure only server does the checking, since only the server knows all the actors in the level, and then send the result to RepNotify that then does the actual changing of the material. Doesn't work for clients, they get odd results!

I have 16 collision boxes in my level, and a static mesh map that represents that grid. I want it so that when anyone begins overlapping with one of these boxes, the server calculates for all boxes if someone is in one of them, and then light up that part of the map. The map also has 16 different material slots I access. How would you do this, while making sure the changes are replicated to all clients for that one map?

Product Version: UE 4.18
Tags:
more ▼

asked Apr 24 '18 at 04:18 PM in Blueprint Scripting

avatar image

Micke879
10 5 5 7

avatar image goncasmage Apr 24 '18 at 04:30 PM

Can you show how you are doing this?

avatar image Micke879 Apr 24 '18 at 05:09 PM

Level boxes, in BP_TrackingBox: alt text In MyMapBP: alt text

Still doesn't work. As soon as I actually check for a tag, clients start getting a different outcome.

2.png (120.8 kB)
1.png (51.0 kB)
(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

I actually resolved this myself, and it deepened my understanding of repnotify quite a bit. I might create a blogpost with steps on how to create networked maps like this.

The way I resolved this was to create a macro where I add delay to a standard for each node (easily found online), because what I noticed in my troubleshooting was that repnotify doesn't trigger on clients if it doesn't get a little breathing space between each loop iteration. What happens is that it only executes the very last entry in the loop for both server and clients, but only the server processed everything before that.

more ▼

answered May 02 '18 at 11:43 AM

avatar image

Micke879
10 5 5 7

(comments are locked)
10|2000 characters needed characters left
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