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. 

Client notification by UMG on server disconnection

At the moment I am involved in creating a multiplayer networked game and when the server disconnects, the clients simply get booted to the default map (the main menu in my case). What I'm trying to do is bring up a UMG widget that notifies the user that there has been a network error and only takes it to the menu after they have clicked the ok button or pressed a key. I've tried using the Event NetworkError in the Game Instance but it doesn't seem to even print anything from the failure type when I put a print string node there. Does anyone have any idea how I could achieve this in Blueprints or C++?

Product Version: UE 4.12
Tags:
more ▼

asked Jul 13 '16 at 12:21 PM in Using UE4

avatar image

Oseroa
16 1 8 5

avatar image Oseroa Jul 27 '16 at 02:02 AM

Does anyone have any idea about this? Any ue4 dev or community member?

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

2 answers: sort voted first

So several months later I've gone back to attempt this again. I tried George Li's answer but that didn't work for me, I also couldn't find that function in the game instance to override even though the code compiled fine and there was no error.

I attempted once again to use the Event Network Error in the Game Instance Blueprint and for some reason now it worked. I had to add a "Do Once" node because the Network Error would be spammed (from testing with a Print String) but other than that it worked fine, I used the 'failure type' for a switch and then created my ui and added it to the viewport and it allowed me to focus a button with the controller which i use for user input to go back to the main menu. I would've liked to achieve this in code but the blueprints work for me so I am leaving it at that for now.

alt text

network error.png (132.6 kB)
more ▼

answered Oct 19 '16 at 09:48 AM

avatar image

Oseroa
16 1 8 5

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

Override GameInstance::HandleNetworkFailure

virtual void HandleNetworkFailure(UWorld *World, UNetDriver *NetDriver, ENetworkFailure::Type FailureType, const FString& ErrorString);

more ▼

answered Sep 30 '16 at 06:51 PM

avatar image

George Li
186 3 12 22

(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