Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
seanohue opened this issue May 2, 2018 · 2 comments
Open

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

seanohue opened this issue May 2, 2018 · 2 comments

Comments

@seanohue
Copy link
Contributor

seanohue commented May 2, 2018

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

@shawncplus
Copy link
Member

shawncplus commented May 3, 2018

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

Can this ever happen by normal in-game means, i.e., by a player deleting their character? Or does it only happen when a server admin manually deletes a file and then forgets to update the account's player's array?

Also you don't need to force quit your terminal, just hit the Telnet escape key (usually Ctrl+[, it prompts you when you start telnet) and run quit

@seanohue
Copy link
Contributor Author

seanohue commented May 3, 2018

I'll try to replicate it without doing anything on the server-side, but it can happen anytime that there is a server-side error when trying to load a character (I ran into it quite a few times when changing character gen stuff). This just seemed the easiest method to reproduce the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants