Announcement

Collapse
No announcement yet.

GameMode PreLogin ErrorMessage - How to display message on Client?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    Originally posted by antsonthetree View Post
    Well I was googling for PreLogin, Client, ErrorMessage, etc. Not for Network Error. My bad.

    Thank you very much!
    It's not your bad, what was actually provided here, doesn't really answer the question. those network errors are not the same thing as the error message in the prelogin function. Nor does it pass that message back to the client. Did you ever find the solution to this?

    Leave a comment:


  • replied
    Well I was googling for PreLogin, Client, ErrorMessage, etc. Not for Network Error. My bad.

    Thank you very much!

    Leave a comment:


  • replied
    Originally posted by antsonthetree View Post
    I'm doing some math and logic in PreLogin and if the criteria is not passed then I set the ErrorMessage with a helpful message. This works in that it effectively prevents the client from logging in. However I'm not sure how the Client can then access this ErrorMessage? How is it returned to the client?
    Just google man!

    https://answers.unrealengine.com/que...e-in-game.html

    https://forums.unrealengine.com/show...-in-blueprints

    Engine/Source/Runtime/Engine/Classes/Engine/EngineBaseTypes.h

    /** Types of network failures broadcast from the engine */
    UENUM(BlueprintType)
    namespace ENetworkFailure
    {
    enum Type
    {
    /** A relevant net driver has already been created for this service */
    NetDriverAlreadyExists,
    /** The net driver creation failed */
    NetDriverCreateFailure,
    /** The net driver failed its Listen() call */
    NetDriverListenFailure,
    /** A connection to the net driver has been lost */
    ConnectionLost,
    /** A connection to the net driver has timed out */
    ConnectionTimeout,
    /** The net driver received an NMT_Failure message */
    FailureReceived,
    /** The client needs to upgrade their game */
    OutdatedClient,
    /** The server needs to upgrade their game */
    OutdatedServer,
    /** There was an error during connection to the game */
    PendingConnectionFailure
    };
    }

    Leave a comment:


  • GameMode PreLogin ErrorMessage - How to display message on Client?

    I'm doing some math and logic in PreLogin and if the criteria is not passed then I set the ErrorMessage with a helpful message. This works in that it effectively prevents the client from logging in. However I'm not sure how the Client can then access this ErrorMessage? How is it returned to the client?
Working...
X