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

Adding popup messages for errors with status codes alongside the exception message #2116

Closed
wants to merge 39 commits into from

Conversation

OhmV-IR
Copy link

@OhmV-IR OhmV-IR commented Feb 22, 2024

Add the following status codes that appear in a popup window when nitrox crashes or encounters an error. The exception is shown in the message alongside one of the following codes:

ID Message
200 Everything is all good, success!
504 Nitrox could not verify that the port was opened successfully / the server is not listening on the port
500Unhandled exception. Could happen for a variety of reasons
403Privileges error, try starting nitrox as admin or starting nitrox w/o admin and then clicking yes to the prompt
507Check your nitrox files, this error indicates a file that is missing or not where it should be
501You tried to call a function for a feature that isn't supposed to exist, might happen if you are playing on an unsupported platform or if something gets called twice, just try relaunching
451Please purchase the game
422An error occured with nitrox where a variable was out of the allowed range or not present, a simple restart might be enough but it is possible that your save is corrupted
408Nitrox launcher was unable to fetch some data like changelogs, blogs .etc Fix: Check your internet connection or allow the nitrox launcher through the firewall
409Error doing/undoing the nitrox injection into subnautica. Check if your antivirus blocked something or if nitrox is running as admin. Can also try reinstalling nitrox
502Error modifying your firewall rules. Try running nitrox as admin or setting up the firewall rules yourself if the issue persists
428Invalid platform / game installation. try repairing your game on steam or check that you are playing on a supported platform and that you have set your subnautica installation path
412Check that the platform where you purchased the game from is running and try relaunching
404Failed to connect to remote server, check firewall settings, have you port forwarded or used hamachi? are you entering the right ip? have you set up firewall rules? check if your antivirus is blocking Nitrox
400A packet contained invalid or missing data, try reconnecting to the server or follow same steps as status code 18
429An outbound connection is already open, try closing nitrox + subnautica and relaunching
426Either the server you are trying to connect to is running an out-of-date version of nitrox or your client is out of date. Please update nitrox then try again
401Error authenticating / finding remote player
503syncing fail, probably due to a bad internet connection(high ping / extremely low bandwidth) or invalid packet
424Dependency check failed, either a circular dependency error or an issue involving FMOD, the asset ripper Nitrox uses
410Game error, try restarting all clients and the server ususally happens when nitrox can't find a gameObject on the client
503error with a locked file / gameObject
405Invalid function call, probably due to bad timing leading to a variable not being set or something along those lines

… NitroxModel for the messageBox and NitroxServer for the console log(improves efficiency)
Pull from indev, base function is done, just need to add tests and fix any potential bugs
… messageBox's width, expanded messageBox vertically
@OhmV-IR
Copy link
Author

OhmV-IR commented Feb 22, 2024

New codes as of latest commit:
200: Everything is all good and the server has started successfully :}
504: Nitrox could not verify that the port was opened successfully / the server is not listening on the port
500: Unhandled exception. Could happen for a variety of reasons
403: Privileges error, try starting nitrox as admin or starting nitrox w/o admin and then clicking yes to the prompt
507: Check your nitrox files, this error indicates a file that is missing or not where it should be, or contains invalid data
501: You tried to call a function for a feature that isn't supposed to exist, might happen if you are playing on an unsupported platform or if something gets called twice, just try relaunching
451: Please purchase the game
422: A variable contain an unexpected or null value, this is probably a one-off bug and can be fixed by relaunching the game
408: The launcher failed to connect to the internet and was unable to fetch data regarding blogs, changelogs or potential updates
409: Nitrox was unable to inject into Subnautica, check that windows defender or another program is not blocking it
502: Nitrox failed to modify the firewall to allow nitrox to access the internet and the LAN
428: Nitrox was unable to find a valid installation of subnautica
412: The store(steam .etc) was not running, please launch the store and relaunch Nitrox
404: The client failed to connect to the remote server, check that you have entered the correct IP, and that you have port forwarded/ used a VPN like Hamchi and nitrox is allowed through your firewall
400: Tried to process a packet containing invalid data, a desync might occur as a result of this error
429: An outbound connection is already open, cannot open a new one. Relaunch nitrox if this error persists
426: Version mismatch. Please update nitrox either on the client or the server
401: Unable to authenticate or find a remote player
503: Failed to execute a valid request to sync something, a desync is likely to occur
424: A dependency check failed, try reinstalling nitrox and if the issue persists, seek support in the discord
410: Subnautica error, nitrox failed to find a GameObject or game property, a desync is likely to occur
503: Lock error, a resource that nitrox was attempting to access was locked by the server or another process
405: Invalid function call, likely that this object does not support this function, possible desync, relaunch game

@tornac1234 tornac1234 added the Type: enhancement Issue is to be solved by implementing new features label Feb 23, 2024
@OhmV-IR OhmV-IR marked this pull request as ready for review March 28, 2024 02:52
@OhmV-IR
Copy link
Author

OhmV-IR commented Apr 24, 2024

So many current PRs would be incompatible with this and it's not really helpful so I think I will probably be closing this PR. Will give it some more thought / mourn my time before I click the button though.

@OhmV-IR
Copy link
Author

OhmV-IR commented Apr 30, 2024

had to be done, rest in peace PR you will most certainly be forgotten and not remembered

@OhmV-IR OhmV-IR closed this Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: enhancement Issue is to be solved by implementing new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants