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"

Why does HUD display on client but not on host

Created a HUD that works flawlessly, shows the score, time But when the host creates the game, he doesn't have a HUD. Only the client who joins the host. Any ideas on how to fix this in blueprints?

Product Version: UE 4.14
Tags:
more ▼

asked Feb 04 '17 at 10:35 PM in Blueprint Scripting

avatar image

dodi
39 2 4 9

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

2 answers: sort voted first

Are you replicating the HUD on the server side? because if you are doing it the way i am thinking which is essntially the host is the listen server so you might want to try replicating the HUD on the server to see if that helps.

Here is some good documentation to help you with multiplayer and networking: http://cedric.bnslv.de/Downloads/UE4_Network_Compendium_by_Cedric_eXi_Neukirchen.pdf

more ▼

answered Feb 04 '17 at 10:48 PM

avatar image

Stuubo
198 9 6 12

avatar image dodi Feb 04 '17 at 11:30 PM

On the left side of the image below, is the host who created the session from the cardinal menu. On the right is a client who joined those host game.

http://imgur.com/a/qq3Ow

Here is the blueprint to create the HUD. Do I need to add anything? If you can please please please ELI5. http://imgur.com/a/7oF7y

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

Right so your problem is the draw HUD Widget and Add to viewport are client only nodes so they are only being called on the client where as in your case the host is the server.

I am not too sure what you could do about that as those nodes there are only called on client side, here is a series of videos by epic themselves which may give you a much better idea of how multiplayer is setup.

https://www.youtube.com/playlist?list=PLZlv_N0_O1gYqSlbGQVKsRg6fpxWndZqZ

You probably want to start from video 6 onwards.

more ▼

answered Feb 04 '17 at 11:46 PM

avatar image

Stuubo
198 9 6 12

(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