-
Notifications
You must be signed in to change notification settings - Fork 117
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
Improve server connection error messages #598
Conversation
It's already used for self auth and is available for both, but we currently only show it for the former.
It never fully worked, and it's more useful to have non-localized detailed error messages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut
Outdated
Show resolved
Hide resolved
i did not mean to approve this i meant to do requires changes FUCK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gecko said to do this
4fc3396
to
2f613e5
Compare
83ebf63
to
2907d9c
Compare
The message always contains something like it, and it's always right after a connectiom anyways.
2907d9c
to
fb87dbb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assuming reason
is a string
Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can only be a string. There is no point in making this untyped
Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, didn't test in-game but no tests are needed since nothing was changed in NSGetAuthFailReason
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, no need to test as this is a simple addition
Waiting on @BobTheBob9 to be able to merge |
Requested changes have been addressed
dialogData.message = Localize("#NS_SERVERBROWSER_CONNECTIONFAILED") + "\nERROR: " + reason + "\n" + Localize("#" + reason) | ||
dialogData.message = reason |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This, combined with R2Northstar/NorthstarLauncher@009482f, was a bad change that is causing some issues with helping users.
- No localisation for the error reason
- No longer shows the error code
- Doesn't show the "Connection failed!" localisation, users don't know what happened
Before:
Connexión fallida!
ERROR: PLAYER_NOT_FOUND
No se encontró la cuenta del jugador
After:
Couldn't find player account
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like no localization more tbh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's objectively worse for users. All helpers need is the error code so it doesn't affect them (except all our docs and stuff were based around the error code, which is no longer shown to the user at all)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We definitely should at the very least include the unlocalized error code.
We could also do something like this:
Connection failed! // Localized message
Code: <code> // Unlocalized code
Check 'wiki.northstar.tf/error_codes' for possible solutions // Localized message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My current thoughts is that we should move the "Connection failed!" bit to the header of the dialog as well.
Currently it looks like
ERROR // header
Couldn't find player account
Before it looked like
ERROR // header
Connection failed! // localised
ERROR: PLAYER_NOT_FOUND
Couldn't find player account // localised
IMO, it should look more like
Connection Failed! // header
Couldn't find player account // localised
Error code: PLAYER_NOT_FOUND
Check 'wiki.northstar.tf/error_codes' for possible solutions // localised
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either way, launcher should be passing an error code if possible, not just a message
The error messages from atlas imo should be reserved for extra debugging information, and the error codes used to generate localised text
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's already used for self auth and is available for both, but we currently only show it for the former.
recommends R2Northstar/NorthstarLauncher#433