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"

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. 

UMG HUD not working over network play

Hello,

I have a problem when i test my game in multiplayer the progress bars in my UMG hud does not update on the client. Only the server gets it.

I have Progress bars that displays Stamina and Health and the Percent is binded to MyCharacter.Health Value as i said before works fine on Singleplayer/Server but not for Clients.

To simplify my problem and to find the solution i made a new project with only the vital parts Same problem in this simple set up, the clients wont get the hud to display the value. Works fine on server/singleplayer

Character BP

UMG HUD BP Graph

UMG HUD BP Designer

Product Version: UE 4.8
Tags:
more ▼

asked Jul 11 '15 at 02:14 PM in Blueprint Scripting

avatar image

Garderoben
23 3 4 5

avatar image eXi Jul 11 '15 at 05:18 PM

Would you mind sharing a picture of the part where you actually bind the value? So the function inside of the Widget.

Also the part where you calculate the health for the players.

avatar image Garderoben Jul 11 '15 at 06:31 PM

Hi, thanks for responding, ofc i added the picture to the orignal post

avatar image eXi Jul 11 '15 at 07:56 PM

Ok, why are you limiting this to the Server? With the Switch, you prevent the client from updating the variable. It will just stay at its default value. At least if you don't modify the value somewhere else too.

If you want to calculate this on the server and replicate it to the client, you need to set the variable to replicate. Then the client will get the correct value.

I would also not work with a delay in the tick. Better use a timer and seperated function for this.

avatar image Garderoben Jul 11 '15 at 09:11 PM

The thing is, even if i hook it up directly to Event Tick it does no different, and if i set the Variable to Replicate no difference.

It is working, if i print the stamina value by string it works! but the progress bar will not recognize this and only display 0

avatar image Garderoben Jul 11 '15 at 09:14 PM

For my purpose i don't need it to replicate on the server, i would just have it set to client, but cant get it to work on other places than on the server/singelplayer

avatar image Garderoben Jul 12 '15 at 08:42 AM

Updated with a new project with only the vital parts, still same problem. Check the new pictures.

avatar image Alfrink Nov 15 '15 at 12:53 PM

I know that this is a few months old by now, but did you (or anyone else) find a solution? If yes, I would appreciate if you'd let me know. I'm sitting on the exact same problem right now.

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

1 answer: sort voted first

Check if the variables are replicated properly and cast to the clients from the server > https://wiki.unrealengine.com/Networking/Replication

more ▼

answered Jul 11 '15 at 02:40 PM

avatar image

studiodonderslag
11 1 4

avatar image Garderoben Jul 11 '15 at 04:23 PM

Hi, why would i need to replicate this? cant it just run on the clients?

but for the sake of it, i set the float Variables to Replicated with out any success, the progress bar still not show any thing.

(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