Skip to content

Menu hangs after failing to log into a character. #353

@seanohue

Description

@seanohue

Description

If there is an unrecoverable error while trying to load a character, the message

Failed to log in to your character. Please contact an administrator.

is displayed. This can be reproduced by creating a new character then deleting the .json file for the player character but keeping all account data.

Expected outcome

I would expect to either have the link disconnected after this message, or (preferably) be returned to the account menu.

Actual outcome

Instead, it is impossible to cmd+C to close the session, I am not returned to the menu, and my session/terminal instance has to be force-quit.

Steps to reproduce

This can be reproduced by creating a new character then deleting the .json file for the player character but keeping all account data.

Then, try to log into that character.

Your Ranvier server should display an error message such as

2018-05-02T05:07:39.278Z - warn:  Error: File [/Users/seanohue/myProjects/ranviermud/src/../data/player/Hamhamham.json] does not exist!
    at Function.parseFile (/Users/seanohue/myProjects/ranviermud/src/Data.js:20:13)
    at Function.load (/Users/seanohue/myProjects/ranviermud/src/Data.js:78:17)
    at PlayerManager.loadPlayer (/Users/seanohue/myProjects/ranviermud/src/PlayerManager.js:89:23)
    at handleMultiplaying.then (/Users/seanohue/myProjects/ranviermud/bundles/myelin-input-events/input-events/choose-character.js:65:54)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

Version of Ranvier

2.0.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions