diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..df7c54d5 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +[*] +indent_style = tab +indent_size = 4 +end_of_line = lf +insert_final_newline = false + +[*.json] +indent_size = 2 + +[*.yml] +indent_style = space +indent_size = 2 \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..d14dc74d --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,20 @@ +name: Publish to NPM + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + registry-url: "https://registry.npmjs.org" + - name: Publishing + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..bdf6ba9d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +error.log diff --git a/data/102/0000/en_US.json b/data/102/0000/en_US.json index c7edd497..1362e8bb 100644 --- a/data/102/0000/en_US.json +++ b/data/102/0000/en_US.json @@ -3,8 +3,8 @@ "0000": { "name": "MY_SUCCESS", "message": "", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", + "short_description": "Indicates a success.", + "long_description": "Indicates a success.", "short_solution": "Unknown solution.", "long_solution": "Unknown solution.", "support_link": "https://preten.do/102-0000" diff --git a/data/102/1001/en_US.json b/data/102/1001/en_US.json index be8138df..98557eb7 100644 --- a/data/102/1001/en_US.json +++ b/data/102/1001/en_US.json @@ -3,8 +3,8 @@ "1001": { "name": "ACCOUNT_NOT_FOUND", "message": "Unable to find the specified user.", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", + "short_description": "The Nintendo/Pretendo Network ID entered was incorrect or does not exist.", + "long_description": "The Nintendo/Pretendo Network ID entered was incorrect or does not exist.", "short_solution": "Unknown solution.", "long_solution": "Unknown solution.", "support_link": "https://preten.do/102-1001" diff --git a/data/102/1021/en_US.json b/data/102/1021/en_US.json index 7cdb6e3e..f36e36c1 100644 --- a/data/102/1021/en_US.json +++ b/data/102/1021/en_US.json @@ -5,8 +5,8 @@ "message": "Use of this feature requires a linked\nNintendo Network ID.\n\nYou can link an ID from User Settings.", "short_description": "Unknown cause.", "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", + "short_solution": "Link a Nintendo/Pretendo Network ID to your user.", + "long_solution": "Link a Nintendo/Pretendo Network ID to your user.", "support_link": "https://preten.do/102-1021" } } diff --git a/data/102/1022/en_US.json b/data/102/1022/en_US.json index 7d0161eb..346de5c6 100644 --- a/data/102/1022/en_US.json +++ b/data/102/1022/en_US.json @@ -3,10 +3,10 @@ "1022": { "name": "NOT_LOCAL_ACCOUNT", "message": "The current user already has\na Nintendo Network ID.", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", + "short_description": "The user you are attempting to link an Nintendo/Pretendo Network ID to already has one linked.", + "long_description": "The user you are attempting to link an Nintendo/Pretendo Network ID to already has one linked.", + "short_solution": "Unlink the account or make a new user.", + "long_solution": "Unlink the account or make a new user.", "support_link": "https://preten.do/102-1022" } } diff --git a/data/102/2107/en_US.json b/data/102/2107/en_US.json index b069987c..e753f644 100644 --- a/data/102/2107/en_US.json +++ b/data/102/2107/en_US.json @@ -2,7 +2,7 @@ "102": { "2107": { "name": "HTTP_COULDNT_CONNECT", - "message": "", + "message": "Could not connect to internet.\n\nThe network may be busy.\nPlease try again later.\n\nIf you are using a Wi-Fi network,\nthe signal strength may be poor.\nPlease make sure there are no\nobstructions between the console\nand network device, then try again.\n\nIf this problem persists, please check\nwhether or not you can connect to\nthe internet from a PC or other\ndevice using the same settings.", "short_description": "Unknown cause.", "long_description": "Unknown cause.", "short_solution": "Unknown solution.", diff --git a/data/102/2402/en_US.json b/data/102/2402/en_US.json index 3333fa5f..15fabfac 100644 --- a/data/102/2402/en_US.json +++ b/data/102/2402/en_US.json @@ -3,10 +3,10 @@ "2402": { "name": "BAD_FORMAT_REQUEST", "message": "", - "short_description": "The HTTP request contained invalid data", - "long_description": "Unknown cause.", - "short_solution": "Try again later or try a different input", - "long_solution": "Unknown solution.", + "short_description": "The HTTP request contained invalid data.", + "long_description": "The HTTP request contained invalid data.", + "short_solution": "Try again later or try a different input.", + "long_solution": "Try again later or try a different input.", "support_link": "https://preten.do/102-2402" } } diff --git a/data/102/2452/en_US.json b/data/102/2452/en_US.json index 7413e323..31707ec8 100644 --- a/data/102/2452/en_US.json +++ b/data/102/2452/en_US.json @@ -3,10 +3,10 @@ "2452": { "name": "UNAUTHORIZED_DEVICE", "message": "", - "short_description": "The device you are using was not authorized to make the request", - "long_description": "Unknown cause.", - "short_solution": "Try again later or on a different device", - "long_solution": "Unknown solution.", + "short_description": "The device you are using was not authorized to make the request.", + "long_description": "The device you are using was not authorized to make the request.", + "short_solution": "Try again later or on a different device.", + "long_solution": "Try again later or on a different device.", "support_link": "https://preten.do/102-2452" } } diff --git a/data/102/2458/en_US.json b/data/102/2458/en_US.json index ec43b81f..df13bca1 100644 --- a/data/102/2458/en_US.json +++ b/data/102/2458/en_US.json @@ -3,10 +3,10 @@ "2458": { "name": "UNAUTHORIZED_CLIENT", "message": "Unable to connect to the server.\n\nEither the server is experiencing high\ntraffic volumes or a server error has\noccurred. Please try again later.\n\nTo learn more about the server's current\nstatus, visit support.nintendo.com.", - "short_description": "The HTTP client was not authorized to make the request", - "long_description": "Unknown cause.", - "short_solution": "Try again later or on a different device", - "long_solution": "Unknown solution.", + "short_description": "The HTTP client was not authorized to make the request.", + "long_description": "The HTTP client was not authorized to make the request.", + "short_solution": "Try again later or on a different device.", + "long_solution": "Try again later or on a different device.", "support_link": "https://preten.do/102-2458" } } diff --git a/data/102/2472/en_US.json b/data/102/2472/en_US.json index ffdd72c7..1f038de4 100644 --- a/data/102/2472/en_US.json +++ b/data/102/2472/en_US.json @@ -2,7 +2,7 @@ "102": { "2472": { "name": "INVALID_CLIENT_ID", - "message": "", + "message": "An error has occurred.\n\nPlease try again later.\n\nIf the problem persists, please\nvisit support.nintendo.com", "short_description": "Unknown cause.", "long_description": "Unknown cause.", "short_solution": "Unknown solution.", diff --git a/data/102/2482/en_US.json b/data/102/2482/en_US.json index 6853f6ea..2a137e8a 100644 --- a/data/102/2482/en_US.json +++ b/data/102/2482/en_US.json @@ -3,9 +3,9 @@ "2482": { "name": "INVALID_GAME_SERVER_ID", "message": "Unable to connect to the server. Please try again later. If the problem persists, please make a note of the error code and visit support.nintendo.com.", - "short_description": "The game server requested could not be found. Either the game is not supported or is tester-only", + "short_description": "The game server requested could not be found. Either the game is not supported or is tester-only.", "long_description": "This error indicates one of the following:\n\n1. The server you're connecting to is offline for maintenance.\n\n2. Pretendo does not yet support the game or application in question.\n3. The game or application's server is not available for your accounts environment. This typically means the server is in beta testing and is not available to the public. Beta servers are generally only available to [supporters](https://pretendo.network/account/upgrade).", - "short_solution": "Check to see if your game is supported at https://pretendo.network/progress. If you're a tester, check your account is set to Beta at https://pretendo.network/account", + "short_solution": "Check to see if your game is supported at https://pretendo.network/progress. If you're a tester, check your account is set to Beta at https://pretendo.network/account.", "long_solution": "- **Check our network status information**\n> Check our [Network Status page](https://stats.uptimerobot.com/R7E4wiGjJq) and ensure that there are no ongoing service outages.\n\n- **Check Pretendo has a server for your game**\n> Check our [Progress page](https://pretendo.network/progress) to see if a server exists and is in development. We don't support everything yet!\n\n- **Upgrade your account**\n> Certain beta and development servers are available to supporters for beta-testing. If you'd like to help test these ahead of a public release, [consider supporting Pretendo](https://pretendo.network/account/upgrade).", "support_link": "https://preten.do/102-2482" } diff --git a/data/102/2484/en_US.json b/data/102/2484/en_US.json index ba0db08b..6a7446ca 100644 --- a/data/102/2484/en_US.json +++ b/data/102/2484/en_US.json @@ -3,10 +3,10 @@ "2484": { "name": "GAME_SERVER_ID_UNIQUE_ID_NOT_LINKED", "message": "", - "short_description": "The game server ID and title ID were not linked, or the request did not send a game server ID. This error should never happen normally", - "long_description": "Unknown cause.", - "short_solution": "File a bug report with as much detail as possible at https://github.com/PretendoNetwork/account/issues/new", - "long_solution": "Unknown solution.", + "short_description": "The game server ID and title ID were not linked, or the request did not send a game server ID. This error should never happen normally.", + "long_description": "The game server ID and title ID were not linked, or the request did not send a game server ID. This error should never happen normally.", + "short_solution": "File a bug report with as much detail as possible at https://github.com/PretendoNetwork/account/issues/new.", + "long_solution": "File a bug report with as much detail as possible at https://github.com/PretendoNetwork/account/issues/new.", "support_link": "https://preten.do/102-2484" } } diff --git a/data/102/2501/en_US.json b/data/102/2501/en_US.json index 8d3bdc76..db492de5 100644 --- a/data/102/2501/en_US.json +++ b/data/102/2501/en_US.json @@ -3,10 +3,10 @@ "2501": { "name": "DEVICE_MISMATCH", "message": "This Nintendo Network ID cannot\nbe used on this console.", - "short_description": "The console certificate sent in the request was invalid or missing", - "long_description": "Unknown cause.", - "short_solution": "Ensure your console certificate is untampered with and try again later. If using Cemu, dump your system files again", - "long_solution": "Unknown solution.", + "short_description": "The console certificate sent in the request was invalid or missing.", + "long_description": "The console certificate sent in the request was invalid or missing.", + "short_solution": "Ensure your console certificate is untampered with and try again later. If using Cemu, dump your system files again.", + "long_solution": "Ensure your console certificate is untampered with and try again later. If using Cemu, dump your system files again.", "support_link": "https://preten.do/102-2501" } } diff --git a/data/102/2511/en_US.json b/data/102/2511/en_US.json index 7ba20af3..b637d87b 100644 --- a/data/102/2511/en_US.json +++ b/data/102/2511/en_US.json @@ -3,10 +3,10 @@ "2511": { "name": "SYSTEM_UPDATE_REQUIRED", "message": "In order to use online services, a\nsystem update is required.\n\nGo to System Settings to perform a\nsystem update.", - "short_description": "Your console is not up to date", - "long_description": "Unknown cause.", - "short_solution": "Update your console", - "long_solution": "Unknown solution.", + "short_description": "Your console is not up to date.", + "long_description": "Your console is not up to date.", + "short_solution": "Update your console.", + "long_solution": "Update your console.", "support_link": "https://preten.do/102-2511" } } diff --git a/data/102/2512/en_US.json b/data/102/2512/en_US.json index 072bb9c4..42523df4 100644 --- a/data/102/2512/en_US.json +++ b/data/102/2512/en_US.json @@ -3,10 +3,10 @@ "2512": { "name": "APPLICATION_UPDATE_REQUIRED", "message": "This software must be updated before\nonline services can be used.\n\nTo update the software, go to the Wii U\nMenu and then start the software again.", - "short_description": "Your game is not up to date", - "long_description": "Unknown cause.", - "short_solution": "Update your game", - "long_solution": "Unknown solution.", + "short_description": "Your game is not up to date.", + "long_description": "Your game is not up to date.", + "short_solution": "Update your game.", + "long_solution": "Update your game.", "support_link": "https://preten.do/102-2512" } } diff --git a/data/102/2571/en_US.json b/data/102/2571/en_US.json index 03d05e3f..8ddcf2ad 100644 --- a/data/102/2571/en_US.json +++ b/data/102/2571/en_US.json @@ -3,10 +3,10 @@ "2571": { "name": "ACCOUNT_ID_ALREADY_EXISTS", "message": "The Nintendo Network ID you entered\nis already in use.\n\nPlease enter a different ID.", - "short_description": "You are trying to create a PNID using a username that is either already in use by another Pretendo user, or is used by a different NNID on your console", - "long_description": "Unknown cause.", - "short_solution": "Choose a different username", - "long_solution": "Unknown solution.", + "short_description": "You are trying to create a PNID using a username that is either already in use by another Pretendo user, or is used by a different NNID on your console.", + "long_description": "You are trying to create a PNID using a username that is either already in use by another Pretendo user, or is used by a different NNID on your console.", + "short_solution": "Choose a different username.", + "long_solution": "Choose a different username.", "support_link": "https://preten.do/102-2571" } } diff --git a/data/102/2572/en_US.json b/data/102/2572/en_US.json index 7b0c3678..3aa8d458 100644 --- a/data/102/2572/en_US.json +++ b/data/102/2572/en_US.json @@ -3,10 +3,10 @@ "2572": { "name": "ACCOUNT_ID_NOT_ACCEPTABLE", "message": "The Nintendo Network ID you entered\nincludes text that cannot be used.\n\nPlease enter a different ID.", - "short_description": "The username you entered contains rejected text", - "long_description": "Unknown cause.", - "short_solution": "Choose a different username", - "long_solution": "Unknown solution.", + "short_description": "The username you entered contains rejected text.", + "long_description": "The username you entered contains rejected text.", + "short_solution": "Choose a different username.", + "long_solution": "Choose a different username.", "support_link": "https://preten.do/102-2572" } } diff --git a/data/102/2573/en_US.json b/data/102/2573/en_US.json index cb285f0c..2f1a23a2 100644 --- a/data/102/2573/en_US.json +++ b/data/102/2573/en_US.json @@ -3,10 +3,10 @@ "2573": { "name": "ACCOUNT_PASSWORD_NOT_ACCEPTABLE", "message": "The password you entered\ncannot be used.\n\nPlease try again, following the\ninstructions on your TV screen.", - "short_description": "The password entered did not follow the instructions", - "long_description": "Unknown cause.", - "short_solution": "Choose a different password", - "long_solution": "Unknown solution.", + "short_description": "The password entered did not follow the instructions.", + "long_description": "The password entered did not follow the instructions.", + "short_solution": "Choose a different password.", + "long_solution": "Choose a different password.", "support_link": "https://preten.do/102-2573" } } diff --git a/data/102/2574/en_US.json b/data/102/2574/en_US.json index 12c03a2d..8148f684 100644 --- a/data/102/2574/en_US.json +++ b/data/102/2574/en_US.json @@ -3,10 +3,10 @@ "2574": { "name": "MII_NAME_NOT_ACCEPTABLE", "message": "The nickname you entered\ncannot be used.", - "short_description": "The Mii nickname you entered contains rejected text", - "long_description": "Unknown cause.", - "short_solution": "Choose a different nickname", - "long_solution": "Unknown solution.", + "short_description": "The Mii nickname you entered contains rejected text.", + "long_description": "The Mii nickname you entered contains rejected text.", + "short_solution": "Choose a different nickname.", + "long_solution": "Choose a different nickname.", "support_link": "https://preten.do/102-2574" } } diff --git a/data/102/2575/en_US.json b/data/102/2575/en_US.json index 578d401a..793c86b3 100644 --- a/data/102/2575/en_US.json +++ b/data/102/2575/en_US.json @@ -3,10 +3,10 @@ "2575": { "name": "MAIL_ADDRESS_NOT_ACCEPTABLE", "message": "The e-mail address you entered is not\ncorrect.\n\nPlease check the e-mail address\nyou entered and try again.", - "short_description": "Invalid email address entered", - "long_description": "Unknown cause.", - "short_solution": "Enter a valid email address", - "long_solution": "Unknown solution.", + "short_description": "Invalid email address entered.", + "long_description": "Invalid email address entered.", + "short_solution": "Enter a valid email address.", + "long_solution": "Enter a valid email address.", "support_link": "https://preten.do/102-2575" } } diff --git a/data/102/2577/en_US.json b/data/102/2577/en_US.json index eb4fd636..748cc636 100644 --- a/data/102/2577/en_US.json +++ b/data/102/2577/en_US.json @@ -3,10 +3,10 @@ "2577": { "name": "ACCOUNT_ID_PASSWORD_SAME", "message": "Your Nintendo Network ID and\npassword are the same.\n\nPlease use a different password.", - "short_description": "Your username and password are the same", - "long_description": "Unknown cause.", - "short_solution": "Change either your username or password", - "long_solution": "Unknown solution.", + "short_description": "Your username and password are the same.", + "long_description": "Your username and password are the same.", + "short_solution": "Change either your username or password.", + "long_solution": "Change either your username or password.", "support_link": "https://preten.do/102-2577" } } diff --git a/data/102/2586/en_US.json b/data/102/2586/en_US.json index 623b86c1..3bb712a0 100644 --- a/data/102/2586/en_US.json +++ b/data/102/2586/en_US.json @@ -3,10 +3,10 @@ "2586": { "name": "MAIL_ADDRESS_DOMAIN_NAME_NOT_RESOLVED", "message": "", - "short_description": "The email address entered uses a domain which could not be located", - "long_description": "Unknown cause.", - "short_solution": "Enter a different email address", - "long_solution": "Unknown solution.", + "short_description": "The email address entered uses a domain which could not be located.", + "long_description": "The email address entered uses a domain which could not be located.", + "short_solution": "Enter a different email address.", + "long_solution": "Enter a different email address.", "support_link": "https://preten.do/102-2586" } } diff --git a/data/102/2594/en_US.json b/data/102/2594/en_US.json index 2d227a08..03810f2d 100644 --- a/data/102/2594/en_US.json +++ b/data/102/2594/en_US.json @@ -3,10 +3,10 @@ "2594": { "name": "PARENTAL_CONTROLS_REQUIRED", "message": "Parental Controls restrictions\nmust be set up first.", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", + "short_description": "You have not set up the required Parental Controls restrictions.", + "long_description": "You have not set up the required Parental Controls restrictions.", + "short_solution": "Set up the required Parental Controls restrictions.", + "long_solution": "Set up the required Parental Controls restrictions.", "support_link": "https://preten.do/102-2594" } } diff --git a/data/102/2595/en_US.json b/data/102/2595/en_US.json index b105c176..028cf255 100644 --- a/data/102/2595/en_US.json +++ b/data/102/2595/en_US.json @@ -3,10 +3,10 @@ "2595": { "name": "MII_NOT_REGISTERED", "message": "You have not registered a Mii.", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", + "short_description": "A Mii has not been registred to the account. .", + "long_description": "A Mii has not been registred to the account. .", + "short_solution": "Register a Mii and try again.", + "long_solution": "Register a Mii and try again.", "support_link": "https://preten.do/102-2595" } } diff --git a/data/102/2611/en_US.json b/data/102/2611/en_US.json index 1f3ff108..6ac78525 100644 --- a/data/102/2611/en_US.json +++ b/data/102/2611/en_US.json @@ -3,10 +3,10 @@ "2611": { "name": "WRONG_ACCOUNT_PASSWORD", "message": "Incorrect password.\n\nPlease go to the Wii U Menu and\nenter your password again.", - "short_description": "Incorrect password", - "long_description": "Unknown cause.", - "short_solution": "Enter your password again or reset your password and try again", - "long_solution": "Unknown solution.", + "short_description": "Incorrect password.", + "long_description": "Incorrect password.", + "short_solution": "Enter your password again or reset your password and try again.", + "long_solution": "Enter your password again or reset your password and try again.", "support_link": "https://preten.do/102-2611" } } diff --git a/data/102/2612/en_US.json b/data/102/2612/en_US.json index 285c76ad..d00df766 100644 --- a/data/102/2612/en_US.json +++ b/data/102/2612/en_US.json @@ -3,10 +3,10 @@ "2612": { "name": "WRONG_MAIL_ADDRESS", "message": "The e-mail address you entered is not\ncorrect.\n\nPlease check the e-mail address\nyou entered and try again.", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", + "short_description": "The entered e-mail address is incorrect.", + "long_description": "The entered e-mail address is incorrect.", + "short_solution": "Enter the correct e-mail address.", + "long_solution": "Enter the correct e-mail address.", "support_link": "https://preten.do/102-2612" } } diff --git a/data/102/2613/en_US.json b/data/102/2613/en_US.json index d23bcad1..1d78fd2a 100644 --- a/data/102/2613/en_US.json +++ b/data/102/2613/en_US.json @@ -3,10 +3,10 @@ "2613": { "name": "WRONG_ACCOUNT_PASSWORD_OR_MAIL_ADDRESS", "message": "The information entered is not correct.\nYou may have entered the ID of another\nservice.\n\nPlease enter the details again, making\nsure that the Nintendo Network ID,\npassword, and e-mail address are\ncorrect.", - "short_description": "Invalid account information provided. Either your username, password, or email address does not match", - "long_description": "Unknown cause.", - "short_solution": "Enter corrected information and try again", - "long_solution": "Unknown solution.", + "short_description": "Invalid account information provided. Either your username, password, or email address does not match.", + "long_description": "Invalid account information provided. Either your username, password, or email address does not match.", + "short_solution": "Enter the correct information and try again. You might also be connected to Pretendo Network while trying to sign in with an NNID, or Nintendo Network while trying to sign in with a PNID.", + "long_solution": "Enter the correct information and try again. Double check if your information is correct by attempting to sign in on the Pretendo website. You might also be connected to Pretendo Network while trying to sign in with an NNID, or Nintendo Network while trying to sign in with a PNID.", "support_link": "https://preten.do/102-2613" } } diff --git a/data/102/2614/en_US.json b/data/102/2614/en_US.json index ce40c13f..53fbb43f 100644 --- a/data/102/2614/en_US.json +++ b/data/102/2614/en_US.json @@ -3,10 +3,10 @@ "2614": { "name": "WRONG_CONFIRMATION_CODE", "message": "", - "short_description": "The email confirmation code entered does not match your account", - "long_description": "Unknown cause.", - "short_solution": "Check your confirmation code and try again", - "long_solution": "Unknown solution.", + "short_description": "The email confirmation code entered does not match your account.", + "long_description": "The email confirmation code entered does not match your account.", + "short_solution": "Check your confirmation code and try again.", + "long_solution": "Check your confirmation code and try again.", "support_link": "https://preten.do/102-2614" } } diff --git a/data/102/2631/en_US.json b/data/102/2631/en_US.json index 32e458ca..5fc671ac 100644 --- a/data/102/2631/en_US.json +++ b/data/102/2631/en_US.json @@ -3,10 +3,10 @@ "2631": { "name": "ACCOUNT_ALREADY_DELETED", "message": "This user cannot use network services.\n\nThe Nintendo Network ID linked to this\nuser has been deleted.", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", + "short_description": "The account linked to the user has been deleted.", + "long_description": "The account linked to the user has been deleted.", + "short_solution": "Link a new Nintendo/Pretendo Network ID to the user.", + "long_solution": "Link a new Nintendo/Pretendo Network ID to the user.", "support_link": "https://preten.do/102-2631" } } diff --git a/data/102/2633/en_US.json b/data/102/2633/en_US.json index f23a2304..7c9c2da4 100644 --- a/data/102/2633/en_US.json +++ b/data/102/2633/en_US.json @@ -3,10 +3,10 @@ "2633": { "name": "AUTHENTICATION_LOCKED", "message": "Due to repeated incorrect password\nentries, you are temporarily unable\nto sign in to Nintendo Network\n\nPlease try again later.", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", + "short_description": "You entered an incorrect password multiple times and have now been temporarily locked out.", + "long_description": "You entered an incorrect password multiple times and have now been temporarily locked out.", + "short_solution": "Wait for the timeout to end and enter the correct password.", + "long_solution": "Wait for the timeout to end and enter the correct password.", "support_link": "https://preten.do/102-2633" } } diff --git a/data/102/2641/en_US.json b/data/102/2641/en_US.json index 36f3b040..0b55a689 100644 --- a/data/102/2641/en_US.json +++ b/data/102/2641/en_US.json @@ -3,10 +3,10 @@ "2641": { "name": "ACCOUNT_TOKEN_EXPIRED", "message": "", - "short_description": "The token provided is expired", - "long_description": "Unknown cause.", - "short_solution": "Log in again or restart your application or console and try again", - "long_solution": "Unknown solution.", + "short_description": "The token provided is expired.", + "long_description": "The token provided is expired.", + "short_solution": "Log in again or restart your application or console and try again.", + "long_solution": "Log in again or restart your application or console and try again.", "support_link": "https://preten.do/102-2641" } } diff --git a/data/102/2642/en_US.json b/data/102/2642/en_US.json index 39dd8418..cf365b0d 100644 --- a/data/102/2642/en_US.json +++ b/data/102/2642/en_US.json @@ -3,10 +3,10 @@ "2642": { "name": "INVALID_ACCOUNT_TOKEN", "message": "", - "short_description": "The login token provided is invalid", - "long_description": "Unknown cause.", - "short_solution": "Restart your application or console and try again", - "long_solution": "Unknown solution.", + "short_description": "The login token provided is invalid.", + "long_description": "The login token provided is invalid.", + "short_solution": "Restart your application or console and try again.", + "long_solution": "Restart your application or console and try again.", "support_link": "https://preten.do/102-2642" } } diff --git a/data/102/2672/en_US.json b/data/102/2672/en_US.json index 10aae2c7..15dbaf28 100644 --- a/data/102/2672/en_US.json +++ b/data/102/2672/en_US.json @@ -3,8 +3,8 @@ "2672": { "name": "CREDIT_CARD_DECLINED", "message": "The use of this credit card has\nbeen stopped.", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", + "short_description": "The credit card has been declined.", + "long_description": "The credit card has been declined.", "short_solution": "Unknown solution.", "long_solution": "Unknown solution.", "support_link": "https://preten.do/102-2672" diff --git a/data/102/2674/en_US.json b/data/102/2674/en_US.json index 195f8cd3..d4a2ec0d 100644 --- a/data/102/2674/en_US.json +++ b/data/102/2674/en_US.json @@ -3,10 +3,10 @@ "2674": { "name": "INVALID_CREDIT_CARD_NUMBER", "message": "Please check the credit-card\nnumber and try entering it again.", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", + "short_description": "The entered credit card number is incorrect.", + "long_description": "The entered credit card number is incorrect.", + "short_solution": "Enter the correct credit card number.", + "long_solution": "Enter the correct credit card number.", "support_link": "https://preten.do/102-2674" } } diff --git a/data/102/2675/en_US.json b/data/102/2675/en_US.json index 935dccc1..7381cd8b 100644 --- a/data/102/2675/en_US.json +++ b/data/102/2675/en_US.json @@ -3,10 +3,10 @@ "2675": { "name": "INVALID_CREDIT_CARD_DATE", "message": "Please check the credit-card\nexpiration date and try entering\nit again.", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", + "short_description": "The entered credit card expiration date is incorrect.", + "long_description": "The entered credit card expiration date is incorrect.", + "short_solution": "Enter the correct credit card expiration date.", + "long_solution": "Enter the correct credit card expiration date.", "support_link": "https://preten.do/102-2675" } } diff --git a/data/102/2676/en_US.json b/data/102/2676/en_US.json index 21326689..3fe415fa 100644 --- a/data/102/2676/en_US.json +++ b/data/102/2676/en_US.json @@ -3,10 +3,10 @@ "2676": { "name": "INVALID_CREDIT_CARD_PIN", "message": "Please check the credit-card\nPIN and try entering it again.", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", + "short_description": "The entered credit card PIN is incorrect.", + "long_description": "The entered credit card PIN is incorrect.", + "short_solution": "Enter the correct credit card PIN.", + "long_solution": "Enter the correct credit card PIN.", "support_link": "https://preten.do/102-2676" } } diff --git a/data/102/2800/en_US.json b/data/102/2800/en_US.json index 80e2ecb9..e90a4477 100644 --- a/data/102/2800/en_US.json +++ b/data/102/2800/en_US.json @@ -3,10 +3,10 @@ "2800": { "name": "BANNED", "message": "", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", + "short_description": "Either your account or console has been banned.", + "long_description": "Either your account or console has been banned.", + "short_solution": "Don't do whatever you did to get banned.", + "long_solution": "Don't do whatever you did to get banned.", "support_link": "https://preten.do/102-2800" } } diff --git a/data/102/2801/en_US.json b/data/102/2801/en_US.json index 9b2c03f1..9bc5850a 100644 --- a/data/102/2801/en_US.json +++ b/data/102/2801/en_US.json @@ -3,10 +3,10 @@ "2801": { "name": "BANNED_ACCOUNT", "message": "", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", + "short_description": "Your account has been banned.", + "long_description": "Your account has been banned.", + "short_solution": "Don't do whatever you did to get banned.", + "long_solution": "Don't do whatever you did to get banned.", "support_link": "https://preten.do/102-2801" } } diff --git a/data/102/2802/en_US.json b/data/102/2802/en_US.json index adf8a577..cc995ba4 100644 --- a/data/102/2802/en_US.json +++ b/data/102/2802/en_US.json @@ -4,7 +4,7 @@ "name": "BANNED_ACCOUNT_ALL", "message": "This Nintendo Network ID\ncannot be used.\n\nPlease make a note of the error code\nand visit support.nintendo.com.", "short_description": "Your account is permanently banned from all aspects of the network.", - "long_description": "The account you are trying to use has been permanently banned from all aspects of the network. This includes, but is not limited to:\n\n- Miiverse\n- Game servers\n- 3rd party services which opt-in to respecting network bans", + "long_description": "The account you are trying to use has been permanently banned from all aspects of the network. This includes, but is not limited to:\n\n- Miiverse\n- Game servers\n- 3rd party services which opt-in to respecting network bans.", "short_solution": "Not applicable.", "long_solution": "Not applicable.", "support_link": "https://preten.do/102-2802" diff --git a/data/102/2803/en_US.json b/data/102/2803/en_US.json index 8f32a171..ff7decaf 100644 --- a/data/102/2803/en_US.json +++ b/data/102/2803/en_US.json @@ -3,10 +3,10 @@ "2803": { "name": "BANNED_ACCOUNT_IN_APPLICATION", "message": "Online services cannot be used.\n\nPlease make a note of the error code\nand visit support.nintendo.com.", - "short_description": "Your PNID is permanently banned from this application", - "long_description": "Unknown cause.", - "short_solution": "Don't do whatever you did to get banned", - "long_solution": "Unknown solution.", + "short_description": "Your account is permanently banned from this application.", + "long_description": "Your account is permanently banned from this application.", + "short_solution": "Don't do whatever you did to get banned.", + "long_solution": "Don't do whatever you did to get banned.", "support_link": "https://preten.do/102-2803" } } diff --git a/data/102/2804/en_US.json b/data/102/2804/en_US.json index fe69610f..a7584a15 100644 --- a/data/102/2804/en_US.json +++ b/data/102/2804/en_US.json @@ -3,10 +3,10 @@ "2804": { "name": "BANNED_ACCOUNT_IN_NEX_SERVICE", "message": "", - "short_description": "Your PNID is permanently banned from this game", - "long_description": "Unknown cause.", - "short_solution": "Don't do whatever you did to get banned", - "long_solution": "Unknown solution.", + "short_description": "Your account is permanently banned from this game.", + "long_description": "Your account is permanently banned from this game.", + "short_solution": "Don't do whatever you did to get banned.", + "long_solution": "Don't do whatever you did to get banned.", "support_link": "https://preten.do/102-2804" } } diff --git a/data/102/2805/en_US.json b/data/102/2805/en_US.json index e52d4e74..70c872b5 100644 --- a/data/102/2805/en_US.json +++ b/data/102/2805/en_US.json @@ -2,11 +2,11 @@ "102": { "2805": { "name": "BANNED_ACCOUNT_IN_INDEPENDENT_SERVICE", - "message": "", - "short_description": "Your PNID is permanently banned from this service", - "long_description": "Unknown cause.", - "short_solution": "Don't do whatever you did to get banned", - "long_solution": "Unknown solution.", + "message": "Online services cannot be used.\n\nPlease make a note of the error code\nand visit support.nintendo.com", + "short_description": "Your account is permanently banned from this service.", + "long_description": "Your account is permanently banned from this service.", + "short_solution": "Don't do whatever you did to get banned.", + "long_solution": "Don't do whatever you did to get banned.", "support_link": "https://preten.do/102-2805" } } diff --git a/data/102/2811/en_US.json b/data/102/2811/en_US.json index eca0e504..e4533cc4 100644 --- a/data/102/2811/en_US.json +++ b/data/102/2811/en_US.json @@ -3,10 +3,10 @@ "2811": { "name": "BANNED_DEVICE", "message": "", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", + "short_description": "Your console has been banned.", + "long_description": "Your console has been banned.", + "short_solution": "Don't do whatever you did to get banned.", + "long_solution": "Don't do whatever you did to get banned.", "support_link": "https://preten.do/102-2811" } } diff --git a/data/102/2812/en_US.json b/data/102/2812/en_US.json index a2d8974c..dbfed1ee 100644 --- a/data/102/2812/en_US.json +++ b/data/102/2812/en_US.json @@ -3,10 +3,10 @@ "2812": { "name": "BANNED_DEVICE_ALL", "message": "Online services are unavailable\non this console.\n\nPlease make a note of the error code\nand visit support.nintendo.com.", - "short_description": "Your console is permanently banned from all aspects of the network", - "long_description": "Unknown cause.", - "short_solution": "Don't do whatever you did to get banned", - "long_solution": "Unknown solution.", + "short_description": "Your console is permanently banned from all aspects of the network.", + "long_description": "Your console is permanently banned from all aspects of the network.", + "short_solution": "Don't do whatever you did to get banned.", + "long_solution": "Don't do whatever you did to get banned.", "support_link": "https://preten.do/102-2812" } } diff --git a/data/102/2813/en_US.json b/data/102/2813/en_US.json index f4ce6f19..cfa57392 100644 --- a/data/102/2813/en_US.json +++ b/data/102/2813/en_US.json @@ -3,10 +3,10 @@ "2813": { "name": "BANNED_DEVICE_IN_APPLICATION", "message": "", - "short_description": "Your console is permanently banned from this application", - "long_description": "Unknown cause.", - "short_solution": "Don't do whatever you did to get banned", - "long_solution": "Unknown solution.", + "short_description": "Your console is permanently banned from this application.", + "long_description": "Your console is permanently banned from this application.", + "short_solution": "Don't do whatever you did to get banned.", + "long_solution": "Don't do whatever you did to get banned.", "support_link": "https://preten.do/102-2813" } } diff --git a/data/102/2814/en_US.json b/data/102/2814/en_US.json index e2aa7dc5..da3ac30e 100644 --- a/data/102/2814/en_US.json +++ b/data/102/2814/en_US.json @@ -2,11 +2,11 @@ "102": { "2814": { "name": "BANNED_DEVICE_IN_NEX_SERVICE", - "message": "", - "short_description": "Your console is permanently banned from this game", - "long_description": "Unknown cause.", - "short_solution": "Don't do whatever you did to get banned", - "long_solution": "Unknown solution.", + "message": "Online services cannot be used.\n\nPlease make note of the error code\nand visit support.nintendo.com.", + "short_description": "Your console is permanently banned from this game.", + "long_description": "Your console is permanently banned from this game.", + "short_solution": "Don't do whatever you did to get banned.", + "long_solution": "Don't do whatever you did to get banned.", "support_link": "https://preten.do/102-2814" } } diff --git a/data/102/2815/en_US.json b/data/102/2815/en_US.json index eb39b0ac..c1277796 100644 --- a/data/102/2815/en_US.json +++ b/data/102/2815/en_US.json @@ -2,11 +2,11 @@ "102": { "2815": { "name": "BANNED_DEVICE_IN_INDEPENDENT_SERVICE", - "message": "", - "short_description": "Your console is permanently banned from this service", - "long_description": "Unknown cause.", - "short_solution": "Don't do whatever you did to get banned", - "long_solution": "Unknown solution.", + "message": "Online services cannot be used.\n\nPlease make note of the error code\nand visit support.nintendo.com.", + "short_description": "Your console is permanently banned from this service.", + "long_description": "Your console is permanently banned from this service.", + "short_solution": "Don't do whatever you did to get banned.", + "long_solution": "Don't do whatever you did to get banned.", "support_link": "https://preten.do/102-2815" } } diff --git a/data/102/2821/en_US.json b/data/102/2821/en_US.json index 323dcfb4..a623a098 100644 --- a/data/102/2821/en_US.json +++ b/data/102/2821/en_US.json @@ -3,10 +3,10 @@ "2821": { "name": "BANNED_ACCOUNT_TEMPORARILY", "message": "", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", + "short_description": "Your account has been temporarily banned.", + "long_description": "Your account has been temporarily banned.", + "short_solution": "Wait for the ban to expire, and don't do whatever you did to get banned.", + "long_solution": "Wait for the ban to expire, and don't do whatever you did to get banned.", "support_link": "https://preten.do/102-2821" } } diff --git a/data/102/2822/en_US.json b/data/102/2822/en_US.json index dac35b8f..f3a6f742 100644 --- a/data/102/2822/en_US.json +++ b/data/102/2822/en_US.json @@ -3,10 +3,10 @@ "2822": { "name": "BANNED_ACCOUNT_ALL_TEMPORARILY", "message": "", - "short_description": "Your PNID is temporarily banned from all aspects of the network", - "long_description": "Unknown cause.", - "short_solution": "Wait for the ban to expire", - "long_solution": "Unknown solution.", + "short_description": "Your account is temporarily banned from all aspects of the network.", + "long_description": "Your account is temporarily banned from all aspects of the network.", + "short_solution": "Wait for the ban to expire and don't do whatever you did to get banned.", + "long_solution": "Wait for the ban to expire and don't do whatever you did to get banned.", "support_link": "https://preten.do/102-2822" } } diff --git a/data/102/2823/en_US.json b/data/102/2823/en_US.json index 1e299b59..2c89eacb 100644 --- a/data/102/2823/en_US.json +++ b/data/102/2823/en_US.json @@ -3,10 +3,10 @@ "2823": { "name": "BANNED_ACCOUNT_IN_APPLICATION_TEMPORARILY", "message": "", - "short_description": "Your PNID is temporarily banned from this application", - "long_description": "Unknown cause.", - "short_solution": "Wait for the ban to expire", - "long_solution": "Unknown solution.", + "short_description": "Your account is temporarily banned from this application.", + "long_description": "Your account is temporarily banned from this application.", + "short_solution": "Wait for the ban to expire and don't do whatever you did to get banned.", + "long_solution": "Wait for the ban to expire and don't do whatever you did to get banned.", "support_link": "https://preten.do/102-2823" } } diff --git a/data/102/2824/en_US.json b/data/102/2824/en_US.json index 4b1f4554..feaf0533 100644 --- a/data/102/2824/en_US.json +++ b/data/102/2824/en_US.json @@ -3,10 +3,10 @@ "2824": { "name": "BANNED_ACCOUNT_IN_NEX_SERVICE_TEMPORARILY", "message": "", - "short_description": "Your PNID is temporarily banned from this game", - "long_description": "Unknown cause.", - "short_solution": "Wait for the ban to expire", - "long_solution": "Unknown solution.", + "short_description": "Your account is temporarily banned from this game.", + "long_description": "Your account is temporarily banned from this game.", + "short_solution": "Wait for the ban to expire and don't do whatever you did to get banned.", + "long_solution": "Wait for the ban to expire and don't do whatever you did to get banned.", "support_link": "https://preten.do/102-2824" } } diff --git a/data/102/2825/en_US.json b/data/102/2825/en_US.json index 843836c4..c835cbb6 100644 --- a/data/102/2825/en_US.json +++ b/data/102/2825/en_US.json @@ -3,10 +3,10 @@ "2825": { "name": "BANNED_ACCOUNT_IN_INDEPENDENT_SERVICE_TEMPORARILY", "message": "", - "short_description": "Your PNID is temporarily banned from this service", - "long_description": "Unknown cause.", - "short_solution": "Wait for the ban to expire", - "long_solution": "Unknown solution.", + "short_description": "Your account is temporarily banned from this service.", + "long_description": "Your account is temporarily banned from this service.", + "short_solution": "Wait for the ban to expire and don't do whatever you did to get banned.", + "long_solution": "Wait for the ban to expire and don't do whatever you did to get banned.", "support_link": "https://preten.do/102-2825" } } diff --git a/data/102/2831/en_US.json b/data/102/2831/en_US.json index 4eb2305c..974241b0 100644 --- a/data/102/2831/en_US.json +++ b/data/102/2831/en_US.json @@ -3,10 +3,10 @@ "2831": { "name": "BANNED_DEVICE_TEMPORARILY", "message": "", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", + "short_description": "Your console has been banned temporarily.", + "long_description": "Your console has been banned temporarily.", + "short_solution": "Wait for the ban to expire and don't do whatever you did to get banned.", + "long_solution": "Wait for the ban to expire and don't do whatever you did to get banned.", "support_link": "https://preten.do/102-2831" } } diff --git a/data/102/2832/en_US.json b/data/102/2832/en_US.json index 8361bbe9..4bef48d9 100644 --- a/data/102/2832/en_US.json +++ b/data/102/2832/en_US.json @@ -3,9 +3,9 @@ "2832": { "name": "BANNED_DEVICE_ALL_TEMPORARILY", "message": "", - "short_description": "Your console is temporarily banned from all aspects of the network", - "long_description": "Your console has been temporarily banned from all aspects of the network. This includes, but is not limited to:\n\n- Miiverse\n- Game servers\n- 3rd party services which opt-in to respecting network bans", - "short_solution": "Wait for the ban to expire", + "short_description": "Your console is temporarily banned from all aspects of the network.", + "long_description": "Your console has been temporarily banned from all aspects of the network. This includes, but is not limited to:\n\n- Miiverse\n- Game servers\n- 3rd party services which opt-in to respecting network bans.", + "short_solution": "Wait for the ban to expire.", "long_solution": "Wait for the ban to expire.", "support_link": "https://preten.do/102-2832" } diff --git a/data/102/2833/en_US.json b/data/102/2833/en_US.json index a72a954d..ec785aad 100644 --- a/data/102/2833/en_US.json +++ b/data/102/2833/en_US.json @@ -3,10 +3,10 @@ "2833": { "name": "BANNED_DEVICE_IN_APPLICATION_TEMPORARILY", "message": "", - "short_description": "Your console is temporarily banned from this application", + "short_description": "Your console is temporarily banned from this application.", "long_description": "Your console is temporarily banned from this application.", - "short_solution": "Wait for the ban to expire", - "long_solution": "Wait for the ban to expire.", + "short_solution": "Wait for the ban to expire and don't do whatever you did to get banned.", + "long_solution": "Wait for the ban to expire and don't do whatever you did to get banned.", "support_link": "https://preten.do/102-2833" } } diff --git a/data/102/2834/en_US.json b/data/102/2834/en_US.json index 7584db12..6d603c70 100644 --- a/data/102/2834/en_US.json +++ b/data/102/2834/en_US.json @@ -3,10 +3,10 @@ "2834": { "name": "BANNED_DEVICE_IN_NEX_SERVICE_TEMPORARILY", "message": "", - "short_description": "Your console is temporarily banned from this game", + "short_description": "Your console is temporarily banned from this game.", "long_description": "Your console is temporarily banned from this game.", - "short_solution": "Wait for the ban to expire", - "long_solution": "Wait for the ban to expire.", + "short_solution": "Wait for the ban to expire and don't do whatever you did to get banned.", + "long_solution": "Wait for the ban to expire and don't do whatever you did to get banned.", "support_link": "https://preten.do/102-2834" } } diff --git a/data/102/2835/en_US.json b/data/102/2835/en_US.json index ab783d4e..6b353ae6 100644 --- a/data/102/2835/en_US.json +++ b/data/102/2835/en_US.json @@ -3,10 +3,10 @@ "2835": { "name": "BANNED_DEVICE_IN_INDEPENDENT_SERVICE_TEMPORARILY", "message": "", - "short_description": "Your console is temporarily banned from this service", + "short_description": "Your console is temporarily banned from this service.", "long_description": "Your console is temporarily banned from this service.", - "short_solution": "Wait for the ban to expire", - "long_solution": "Wait for the ban to expire.", + "short_solution": "Wait for the ban to expire and don't do whatever you did to get banned.", + "long_solution": "Wait for the ban to expire and don't do whatever you did to get banned.", "support_link": "https://preten.do/102-2835" } } diff --git a/data/102/2881/en_US.json b/data/102/2881/en_US.json index 5f8aea0d..ca21a89a 100644 --- a/data/102/2881/en_US.json +++ b/data/102/2881/en_US.json @@ -3,10 +3,10 @@ "2881": { "name": "UNDER_MAINTENANCE", "message": "Due to server maintenance, the service\nyou attempted to access is not available\nat this time.\n\nPlease try again later.", - "short_description": "The server you requested is under maintenance", - "long_description": "Unknown cause.", - "short_solution": "Try again later", - "long_solution": "Unknown solution.", + "short_description": "The server you requested is under maintenance.", + "long_description": "The server you requested is under maintenance.", + "short_solution": "Try again later.", + "long_solution": "Ty again later.", "support_link": "https://preten.do/102-2881" } } diff --git a/data/102/2882/en_US.json b/data/102/2882/en_US.json index cf5460bd..97a085b0 100644 --- a/data/102/2882/en_US.json +++ b/data/102/2882/en_US.json @@ -3,10 +3,10 @@ "2882": { "name": "SERVICE_CLOSED", "message": "This online service is no longer\navailable.\n\nSorry for the inconvenience.", - "short_description": "The server you requested is closed and no longer maintained", - "long_description": "Unknown cause.", - "short_solution": "Self host the server or use another hosted instance", - "long_solution": "Unknown solution.", + "short_description": "The server you requested is closed and no longer maintained.", + "long_description": "The server you requested is closed and no longer maintained.", + "short_solution": "Self host the server or use another hosted instance.", + "long_solution": "Self host the server or use another hosted instance.", "support_link": "https://preten.do/102-2882" } } diff --git a/data/104/0440/en_US.json b/data/104/0440/en_US.json new file mode 100644 index 00000000..cfecd0b0 --- /dev/null +++ b/data/104/0440/en_US.json @@ -0,0 +1,13 @@ +{ + "104": { + "0440": { + "name": "Unknown", + "message": "An error has occurred./n/nPlease try again later./n/nIf the problem persists, please\nmake a note of the error code and\nvisit support.nintendo.com.", + "short_description": "Unknown cause.", + "long_description": "Unknown cause.", + "short_solution": "Unknown solution.", + "long_solution": "Unknown solution.", + "support_link": "https://preten.do/104-0440" + } + } +} \ No newline at end of file diff --git a/data/104/2210/en_US.json b/data/104/2210/en_US.json index 28ff3645..9ed8b2a4 100644 --- a/data/104/2210/en_US.json +++ b/data/104/2210/en_US.json @@ -1,12 +1,12 @@ { "104": { "2210": { - "name": "Unknown", - "message": "", - "short_description": "Related to downloaded BOSS (SpotPass) content", + "name": "STOPPED_BY_POLICYLIST", + "message": "An error has occurred./n/nPlease try again later./n/nIf the problem persists, please\nmake a note of the error code and\nvisit support.nintendo.com", + "short_description": "Related to downloaded BOSS (SpotPass) content.", "long_description": "This error is related to your downloaded BOSS (SpotPass) data for the game you are playing. Either the content is missing or downloaded incorrectly. Most often seen in Splatoon.", - "short_solution": "Ensure Nimble is installed and set to auto-boot. You may also try deleting your games shared save data", - "long_solution": "- Review the [Wii U installation guide](https://pretendo.network/docs/install/wiiu). Ensure that you have installed [Nimble](https://github.com/PretendoNetwork/Nimble) and that the Aroma environment it is installed in is set to auto-boot. Otherwise Nimble may not start in time to patch the policylist request, and all BOSS data will fail to download.\n- If Nimble is installed and working, delete your games shared save data. This data typically contains the downloaded SpotPass content, triggering it to be redownloaded", + "short_solution": "Delete shared save data via Sytem Settings > Data Management. This will not delete any of your save data.", + "long_solution": "- Review the [Wii U installation guide](https://pretendo.network/docs/install/wiiu). Ensure that you have installed [Nimble](https://github.com/PretendoNetwork/Nimble) and that the Aroma environment it is installed in is set to auto-boot. Otherwise Nimble may not start in time to patch the policylist request, and all BOSS data will fail to download.\n- If Nimble is installed and working, delete your games shared save data. This data typically contains the downloaded SpotPass content, triggering it to be redownloaded. Also make sure that your installation of Inkay is on the latest version. You can update Inkay via the GitHub page, Homebrew App Store, or the Aroma Updater.", "support_link": "https://preten.do/104-2210" } } diff --git a/data/160/0101/en_US.json b/data/160/0101/en_US.json index a27fdd66..1b056bc2 100644 --- a/data/160/0101/en_US.json +++ b/data/160/0101/en_US.json @@ -2,11 +2,11 @@ "160": { "0101": { "name": "Unknown", - "message": "", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", + "message": "An error has occured.\n\nPlease press and hold the POWER Button for\nat least four seconds to turn the console off.", + "short_description": "May occur when attempting to format a console that has CBHC installed.", + "long_description": "May occur when attempting to format a console that has CBHC installed.", + "short_solution": "Uninstall CBHC before formatting the console.", + "long_solution": "Uninstall CBHC before formatting the console.", "support_link": "https://preten.do/160-0101" } } diff --git a/data/160/0102/en_US.json b/data/160/0102/en_US.json index 1bfbc69a..2cbbb2a4 100644 --- a/data/160/0102/en_US.json +++ b/data/160/0102/en_US.json @@ -1,7 +1,7 @@ { "160": { "0102": { - "name": "Unknown", + "name": "DATA_CORRUPTED", "message": "", "short_description": "Unknown cause.", "long_description": "Unknown cause.", diff --git a/data/160/0103/en_US.json b/data/160/0103/en_US.json index b24aa0e2..e421885f 100644 --- a/data/160/0103/en_US.json +++ b/data/160/0103/en_US.json @@ -1,11 +1,11 @@ { "160": { "0103": { - "name": "Unknown", + "name": "MLC_DATA_CORRUPTED", "message": "There is a problem with the system memory.\n\nFor help, make a note of the error code and visit\nsupport.nintendo.com", - "short_description": "MLC corruption error", + "short_description": "MLC corruption error.", "long_description": "There was a problem with your systems memory. This is most often caused by failing NAND chips, but may also be due to corrupted title installations, or even unknown random MLC errors.", - "short_solution": "See support page", + "short_solution": "See support page.", "long_solution": "Use https://github.com/GaryOderNichts/WiiUIdent immediately to identify which manufacturer produced your NAND chip. If you have a Hynix chip, your chip is likely failing. Your only solution is to try and backup your NAND entirely and move it to another device/chip.\n\nIf you do not have a Hynix chip, a title you tried to launch is likely corrupted. Try reinstalling the title.", "support_link": "https://preten.do/160-0103" } diff --git a/data/160/0104/en_US.json b/data/160/0104/en_US.json index 073c8a23..19ca5dc9 100644 --- a/data/160/0104/en_US.json +++ b/data/160/0104/en_US.json @@ -1,7 +1,7 @@ { "160": { "0104": { - "name": "Unknown", + "name": "SLC_DATA_CORRUPTED", "message": "", "short_description": "Unknown cause.", "long_description": "Unknown cause.", diff --git a/data/160/0105/en_US.json b/data/160/0105/en_US.json index 717adf9e..d3d234f4 100644 --- a/data/160/0105/en_US.json +++ b/data/160/0105/en_US.json @@ -2,9 +2,9 @@ "160": { "0105": { "name": "Unknown", - "message": "", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", + "message": "There is a problem with the USB storage device.\n\nPlease contact the manufacturer of the device.\nCheck the device documentation for contact details.", + "short_description": "USB device error.", + "long_description": "There is a problem with the USB device that the console is attempting to read from. This could mean that the data is corrupted.", "short_solution": "Unknown solution.", "long_solution": "Unknown solution.", "support_link": "https://preten.do/160-0105" diff --git a/data/160/0106/en_US.json b/data/160/0106/en_US.json new file mode 100644 index 00000000..9580d6ba --- /dev/null +++ b/data/160/0106/en_US.json @@ -0,0 +1,13 @@ +{ + "160": { + "0106": { + "name": "Unknown", + "message": "The USB storage device has been disconnected.\nPress and hold the POWER Button for at least four\nseconds to turn the console off, then make sure the device\nis connected properly.\n\nIf the problem persists, the USB storage device may not\nbe receiving enough power. Please use an AC adapter\nor USB Y cable, as applicable.", + "short_description": "USB device error.", + "long_description": "The USB device was disconnected from the console while powered on.", + "short_solution": "Force power-off the console by holding down the POWER button, then re-connect the device and try again.", + "long_solution": "Force power-off the console by holding down the POWER button, then re-connect the device and try again. This may also be occurring because games are attempted to be played off a USB flash drive rather than an external HDD with a USB Y cable.", + "support_link": "https://preten.do/160-0106" + } + } +} \ No newline at end of file diff --git a/data/160/1400/en_US.json b/data/160/1400/en_US.json new file mode 100644 index 00000000..f4dcead4 --- /dev/null +++ b/data/160/1400/en_US.json @@ -0,0 +1,13 @@ +{ + "160": { + "1400": { + "name": "Unknown", + "message": "There is a problem with the disc drive.\n\nFor help, make a note of the error code and visit\nsupport.nintendo.com.", + "short_description": "Optical Disc Drive error.", + "long_description": "Optical Disc Drive error - Likely an issue with the Common Mode Filter.", + "short_solution": "To fix this requires soldering. Visit the support page for more information.", + "long_solution": "To fix this requires soldering. See https://gbatemp.net/threads/572879/ for more. (Thanks, Homebrew Discord. Speak to them for further assistance.)", + "support_link": "https://preten.do/160-1400" + } + } +} \ No newline at end of file diff --git a/data/160/1402/en_US.json b/data/160/1402/en_US.json new file mode 100644 index 00000000..596b9d48 --- /dev/null +++ b/data/160/1402/en_US.json @@ -0,0 +1,13 @@ +{ + "160": { + "1402": { + "name": "Unknown", + "message": "There is a problem with the disc drive.\n\nFor help, make a note of the error code and visit\nsupport.nintendo.com.", + "short_description": "Optical Disc Drive error.", + "long_description": "Optical Disc Drive error - may indicate a scratched or dirty disc, or a problem with the disc drive itself.", + "short_solution": "Make sure the optical disc is inserted correctly and is clean.", + "long_solution": "Make sure the optical disc is inserted correctly and is clean. Also ensure the disc drive is not blocked or obstructed and spins the disc properly.", + "support_link": "https://preten.do/160-1402" + } + } +} \ No newline at end of file diff --git a/data/160/1710/en_US.json b/data/160/1710/en_US.json new file mode 100644 index 00000000..fa485132 --- /dev/null +++ b/data/160/1710/en_US.json @@ -0,0 +1,13 @@ +{ + "160": { + "1710": { + "name": "Unknown", + "message": "There is a problem with the system memory.\n\nFor help, make a note of the error code and visit\nsupport.nintendo.com.", + "short_description": "Unknown cause.", + "long_description": "Unknown cause.", + "short_solution": "Unknown solution.", + "long_solution": "Unknown solution.", + "support_link": "https://preten.do/160-1710" + } + } +} \ No newline at end of file diff --git a/data/160/2203/en_US.json b/data/160/2203/en_US.json new file mode 100644 index 00000000..37264ae3 --- /dev/null +++ b/data/160/2203/en_US.json @@ -0,0 +1,13 @@ +{ + "160": { + "2203": { + "name": "Unknown", + "message": "There is a problem with the system memory.\n\nFor help, make a note of the error code and visit\nsupport.nintendo.com.", + "short_description": "Unknown cause.", + "long_description": "Unknown cause.", + "short_solution": "Unknown solution.", + "long_solution": "Unknown solution.", + "support_link": "https://preten.do/160-2203" + } + } +} \ No newline at end of file diff --git a/data/160/2246/en_US.json b/data/160/2246/en_US.json new file mode 100644 index 00000000..428db9fa --- /dev/null +++ b/data/160/2246/en_US.json @@ -0,0 +1,13 @@ +{ + "160": { + "2246": { + "name": "Unknown", + "message": "An error has occured.\n\nPlease press and hold the POWER Button for\nat least four seconds to turn the console off.", + "short_description": "An error occurred that requires a restart.", + "long_description": "A error occurred which cannot be resolved. The console must be restarted.", + "short_solution": "Unknown solution.", + "long_solution": "Unknown solution.", + "support_link": "https://preten.do/160-2246" + } + } +} \ No newline at end of file diff --git a/data/160/2701/en_US.json b/data/160/2701/en_US.json new file mode 100644 index 00000000..c0e4b146 --- /dev/null +++ b/data/160/2701/en_US.json @@ -0,0 +1,13 @@ +{ + "160": { + "2701": { + "name": "Unknown", + "message": "An error has occured.\n\nPlease press and hold the POWER Button for\nat least four seconds to turn the console off.", + "short_description": "An error occurred that requires a restart.", + "long_description": "A error occurred which cannot be resolved. The console must be restarted.", + "short_solution": "Unknown solution.", + "long_solution": "Unknown solution.", + "support_link": "https://preten.do/160-2701" + } + } +} \ No newline at end of file diff --git a/data/160/2706/en_US.json b/data/160/2706/en_US.json index 4af746f1..56a9583d 100644 --- a/data/160/2706/en_US.json +++ b/data/160/2706/en_US.json @@ -2,9 +2,9 @@ "160": { "2706": { "name": "Unknown", - "message": "", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", + "message": "An error has occured.\n\nPlease press and hold the POWER Button for\nat least four seconds to turn the console off.", + "short_description": "An error occurred that requires a restart.", + "long_description": "A error occurred which cannot be resolved. The console must be restarted.", "short_solution": "Unknown solution.", "long_solution": "Unknown solution.", "support_link": "https://preten.do/160-2706" diff --git a/data/160/2713/en_US.json b/data/160/2713/en_US.json index 4f1a24fa..5be7813b 100644 --- a/data/160/2713/en_US.json +++ b/data/160/2713/en_US.json @@ -2,11 +2,11 @@ "160": { "2713": { "name": "Unknown", - "message": "", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", + "message": "The USB storage device has been disconnected.\nPress and hold the POWER Button for at least four\nseconds to turn the console off, then make sure the device\nis connected properly.\n\nIf the problem persists, the USB storage device may not\nbe receiving enough power. Please use an AC adapter\nor USB Y cable, as applicable.", + "short_description": "USB device error.", + "long_description": "USB device error - may indicate a dying or dead USB storage device.", + "short_solution": "Check the USB port and the USB device.", + "long_solution": "Ensure the USB port is clear and the USB device is connected properly using an AC adapter if necessary.", "support_link": "https://preten.do/160-2713" } } diff --git a/data/160/2793/en_US.json b/data/160/2793/en_US.json new file mode 100644 index 00000000..17af727d --- /dev/null +++ b/data/160/2793/en_US.json @@ -0,0 +1,13 @@ +{ + "160": { + "2793": { + "name": "Unknown", + "message": "An error has occured.\n\nPlease press and hold the POWER Button for\nat least four seconds to turn the console off.", + "short_description": "Possibly missing files on the vWii.", + "long_description": "Possibly missing files on the vWii.", + "short_solution": "Run vWii decaffinator and then update the console.", + "long_solution": "Run vWii decaffinator and then update the console.", + "support_link": "https://preten.do/160-2793" + } + } +} \ No newline at end of file diff --git a/data/160/3219/en_US.json b/data/160/3219/en_US.json new file mode 100644 index 00000000..96ac4692 --- /dev/null +++ b/data/160/3219/en_US.json @@ -0,0 +1,13 @@ +{ + "160": { + "3219": { + "name": "Unknown", + "message": "An error has occured.\n\nPlease press and hold the POWER Button for\nat least four seconds to turn the console off.", + "short_description": "An error occurred that requires a restart.", + "long_description": "A error occurred which cannot be resolved. The console must be restarted.", + "short_solution": "Unknown solution.", + "long_solution": "Unknown solution.", + "support_link": "https://preten.do/160-3219" + } + } +} \ No newline at end of file diff --git a/data/160/4711/en_US.json b/data/160/4711/en_US.json new file mode 100644 index 00000000..554bebba --- /dev/null +++ b/data/160/4711/en_US.json @@ -0,0 +1,13 @@ +{ + "160": { + "4711": { + "name": "Unknown", + "message": "There is a problem with the USB storage device.\n\nPlease contact the manufacturer of the device.\nCheck the device's documentation for contact details.", + "short_description": "USB device error.", + "long_description": "USB device error - may indicate a dying or dead USB storage device.", + "short_solution": "Unknown solution.", + "long_solution": "Unknown solution.", + "support_link": "https://preten.do/160-4711" + } + } +} \ No newline at end of file diff --git a/data/160/4714/en_US.json b/data/160/4714/en_US.json new file mode 100644 index 00000000..43044c21 --- /dev/null +++ b/data/160/4714/en_US.json @@ -0,0 +1,13 @@ +{ + "160": { + "4714": { + "name": "USB device error", + "message": "There is a problem with the USB storage device.\n\nPlease contact the manufacturer of the device.\nCheck the device's documentation for contact details.", + "short_description": "USB device error.", + "long_description": "USB device error - may indicate a dying or dead USB storage device.", + "short_solution": "Unknown solution.", + "long_solution": "Unknown solution.", + "support_link": "https://preten.do/160-4714" + } + } +} \ No newline at end of file diff --git a/data/160/4792/en_US.json b/data/160/4792/en_US.json new file mode 100644 index 00000000..b4ef62ff --- /dev/null +++ b/data/160/4792/en_US.json @@ -0,0 +1,13 @@ +{ + "160": { + "4792": { + "name": "Unknown", + "message": "An error has occured.\n\nPlease press and hold the POWER Button for\nat least four seconds to turn the console off.", + "short_description": "Unknown cause.", + "long_description": "Unknown cause.", + "short_solution": "Unknown solution.", + "long_solution": "Unknown solution.", + "support_link": "https://preten.do/160-4792" + } + } +} \ No newline at end of file diff --git a/data/165/2738/en_US.json b/data/165/2738/en_US.json index 7449f59d..7d3a4f74 100644 --- a/data/165/2738/en_US.json +++ b/data/165/2738/en_US.json @@ -1,13 +1,13 @@ -{ - "165": { - "2738": { - "name": "Unknown", - "message": "An error has occurred with the Wii U GamePad.\nPlease hold down the POWER Button on the\nGamePad to turn it off, and then turn it on again.\n\nIf the problem persists, please make note of the\nerror code and visit support.nintendo.com.", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", - "support_link": "https://preten.do/165-2738" - } - } +{ + "165": { + "2738": { + "name": "Unknown", + "message": "An error has occurred with the Wii U GamePad.\nPlease hold down the POWER Button on the\nGamePad to turn it off, and then turn it on again.\n\nIf the problem persists, please make note of the\nerror code and visit support.nintendo.com.", + "short_description": "Unknown cause.", + "long_description": "Unknown cause.", + "short_solution": "Unknown solution.", + "long_solution": "Unknown solution.", + "support_link": "https://preten.do/165-2738" + } + } } \ No newline at end of file diff --git a/data/165/3000/en_US.json b/data/165/3000/en_US.json index 253c8b33..1bee18f0 100644 --- a/data/165/3000/en_US.json +++ b/data/165/3000/en_US.json @@ -1,13 +1,13 @@ -{ - "165": { - "3000": { - "name": "Unknown", - "message": "An error has occurred with the Wii U GamePad.\nPlease hold down the POWER Button on the\nGamePad to turn it off, and then turn it on again.\n\nIf the problem persists, please make note of the\nerror code and visit support.nintendo.com.", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", - "support_link": "https://preten.do/160-3000" - } - } +{ + "165": { + "3000": { + "name": "Unknown", + "message": "An error has occurred with the Wii U GamePad.\nPlease hold down the POWER Button on the\nGamePad to turn it off, and then turn it on again.\n\nIf the problem persists, please make note of the\nerror code and visit support.nintendo.com.", + "short_description": "Unknown cause.", + "long_description": "Unknown cause.", + "short_solution": "Unknown solution.", + "long_solution": "Unknown solution.", + "support_link": "https://preten.do/160-3000" + } + } } \ No newline at end of file diff --git a/data/165/3423/en_US.json b/data/165/3423/en_US.json index 2aa7e340..7d5bc89a 100644 --- a/data/165/3423/en_US.json +++ b/data/165/3423/en_US.json @@ -1,13 +1,13 @@ -{ - "165": { - "3423": { - "name": "Unknown", - "message": "An error has occurred with the Wii U GamePad.\nPlease hold down the POWER Button on the\nGamePad to turn it off, and then turn it on again.\n\nIf the problem persists, please make note of the\nerror code and visit support.nintendo.com.", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", - "support_link": "https://preten.do/160-3423" - } - } -} +{ + "165": { + "3423": { + "name": "Unknown", + "message": "An error has occurred with the Wii U GamePad.\nPlease hold down the POWER Button on the\nGamePad to turn it off, and then turn it on again.\n\nIf the problem persists, please make note of the\nerror code and visit support.nintendo.com.", + "short_description": "Unknown cause.", + "long_description": "Unknown cause.", + "short_solution": "Unknown solution.", + "long_solution": "Unknown solution.", + "support_link": "https://preten.do/160-3423" + } + } +} \ No newline at end of file diff --git a/data/165/6596/en_US.json b/data/165/6596/en_US.json index 77f506c9..b6841749 100644 --- a/data/165/6596/en_US.json +++ b/data/165/6596/en_US.json @@ -1,13 +1,13 @@ -{ - "165": { - "6596": { - "name": "Unknown", - "message": "An error has occurred with the Wii U GamePad.\nPlease hold down the POWER Button on the\nGamePad to turn it off, and then turn it on again.\n\nIf the problem persists, please make note of the\nerror code and visit support.nintendo.com.", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", - "support_link": "https://preten.do/160-6596" - } - } +{ + "165": { + "6596": { + "name": "Unknown", + "message": "An error has occurred with the Wii U GamePad.\nPlease hold down the POWER Button on the\nGamePad to turn it off, and then turn it on again.\n\nIf the problem persists, please make note of the\nerror code and visit support.nintendo.com.", + "short_description": "Unknown cause.", + "long_description": "Unknown cause.", + "short_solution": "Unknown solution.", + "long_solution": "Unknown solution.", + "support_link": "https://preten.do/160-6596" + } + } } \ No newline at end of file diff --git a/data/165/7457/en_US.json b/data/165/7457/en_US.json index 23ddb05d..35d39349 100644 --- a/data/165/7457/en_US.json +++ b/data/165/7457/en_US.json @@ -1,13 +1,13 @@ -{ - "165": { - "7457": { - "name": "Unknown", - "message": "An error has occurred. Please visit the website below.\nsupport.nintendo.com", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", - "support_link": "https://preten.do/160-7457" - } - } +{ + "165": { + "7457": { + "name": "Unknown", + "message": "An error has occurred. Please visit the website below.\nsupport.nintendo.com", + "short_description": "Unknown cause.", + "long_description": "Unknown cause.", + "short_solution": "Unknown solution.", + "long_solution": "Unknown solution.", + "support_link": "https://preten.do/160-7457" + } + } } \ No newline at end of file diff --git a/data/165/8426/en_US.json b/data/165/8426/en_US.json index 9792404b..0fd383bc 100644 --- a/data/165/8426/en_US.json +++ b/data/165/8426/en_US.json @@ -1,13 +1,13 @@ -{ - "165": { - "8426": { - "name": "Unknown", - "message": "An error has occurred with the Wii U GamePad.\nPlease hold down the POWER Button on the\nGamePad to turn it off, and then turn it on again.\n\nIf the problem persists, please make note of the\nerror code and visit support.nintendo.com.", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", - "support_link": "https://preten.do/160-8426" - } - } +{ + "165": { + "8426": { + "name": "Unknown", + "message": "An error has occurred with the Wii U GamePad.\nPlease hold down the POWER Button on the\nGamePad to turn it off, and then turn it on again.\n\nIf the problem persists, please make note of the\nerror code and visit support.nintendo.com.", + "short_description": "Unknown cause.", + "long_description": "Unknown cause.", + "short_solution": "Unknown solution.", + "long_solution": "Unknown solution.", + "support_link": "https://preten.do/160-8426" + } + } } \ No newline at end of file diff --git a/data/165/9901/en_US.json b/data/165/9901/en_US.json index b4c8f3e9..b1344c72 100644 --- a/data/165/9901/en_US.json +++ b/data/165/9901/en_US.json @@ -1,13 +1,13 @@ -{ - "165": { - "9901": { - "name": "Unknown", - "message": "The update cannot be completed using a\nWii U GamePad designed for a different region.\nPlease check the GamePad screen.\n\nAfter the console has restarted, pair the\nGamePad supplied with your console by pressing the consoles SYNC Button twice.", - "short_description": "Unknown cause.", - "long_description": "Unknown cause.", - "short_solution": "Unknown solution.", - "long_solution": "Unknown solution.", - "support_link": "https://preten.do/160-9901" - } - } -} +{ + "165": { + "9901": { + "name": "Unknown", + "message": "The update cannot be completed using a\nWii U GamePad designed for a different region.\nPlease check the GamePad screen.\n\nAfter the console has restarted, pair the\nGamePad supplied with your console by pressing the consoles SYNC Button twice.", + "short_description": "Unknown cause.", + "long_description": "Unknown cause.", + "short_solution": "Unknown solution.", + "long_solution": "Unknown solution.", + "support_link": "https://preten.do/160-9901" + } + } +} \ No newline at end of file diff --git a/format.sh b/format.sh new file mode 100644 index 00000000..8ed2ab0d --- /dev/null +++ b/format.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# This script processes all files in the data directory using jq to: +# - Ensure all JSON files are formatted correctly with tabs +# - Catch any JSON files with syntax errors and log them to error.log for fixing + +# Remove any existing error log +rm -f error.log + +# Enable recursive globbing +shopt -s globstar + +# Process files in parallel using xargs +find data -type f -name "*.json" | xargs -n 1 -P "$(nproc)" -I {} bash -c ' + file="{}" + echo "Processing file: $file" + jq --tab -j . <"$file" >"$file.out" 2>"$file.err" + if [ $? -eq 0 ]; then + mv "$file.out" "$file" + rm "$file.err" + else + echo "$file.err" >> error.log + rm "$file.out" + fi +' + +# Print any files that failed to process +if [ -f error.log ] && [ "$(cat error.log | wc -l)" -gt 0 ]; then + echo "The following files failed to process:" + cat error.log | sed 's/^/ - /' +else + echo "All files processed successfully." +fi diff --git a/json-file-fix.mjs b/json-file-fix.mjs new file mode 100644 index 00000000..12351043 --- /dev/null +++ b/json-file-fix.mjs @@ -0,0 +1,71 @@ +import fs from 'fs'; +import path from 'path'; + +// This script does a number of things: +// - Normalises the descriptions and solutions to be "Unknown cause." and "Unknown solution." rather than "N/A" +// - If one of the descriptions or solutions is "Unknown cause." or "Unknown solution.", the other will be copied to it +// - Ensures all descriptions and solutions end with a full stop if they do not already and if the last character is a letter +// - Writes the changes back to the file in place + +const arg = process.argv[2]; +if (!arg || !fs.existsSync(arg) || !fs.lstatSync(arg).isDirectory()) { + console.log("Please provide a valid directory path."); + process.exit(1); +} + +fs.readdirSync(arg, { recursive: true, withFileTypes: true }).forEach(file => { + if (!file.isFile() && !file.name.endsWith(".json")) return; + + const fullPath = path.join(file.parentPath, file.name); + + console.log(`Processing ${fullPath}`); + + const data = fs.readFileSync(fullPath, 'utf8'); + const json = JSON.parse(data); + + const key1 = Object.keys(json)[0]; + const key2 = Object.keys(json[key1])[0]; + + const errorObject = json[key1][key2]; + if (!errorObject || typeof errorObject !== "object") { + console.log(`No error object found in ${fullPath}`); + return; + } + + if (!errorObject["short_description"] || !errorObject["long_description"] || !errorObject["short_solution"] || !errorObject["long_solution"]) { + console.log(`Missing fields in ${fullPath}`); + return; + } + + const { + short_description, + long_description, + short_solution, + long_solution, + } = errorObject; + + if (short_description === "Unknown cause." && long_description !== "Unknown cause.") { + errorObject["short_description"] = long_description; + } else if (short_description !== "Unknown cause." && long_description === "Unknown cause.") { + errorObject["long_description"] = short_description; + } + + if (short_solution === "Unknown solution." && long_solution !== "Unknown solution.") { + errorObject["short_solution"] = long_solution; + } else if (short_solution !== "Unknown solution." && long_solution === "Unknown solution.") { + errorObject["long_solution"] = short_solution; + } + + const keys = ["short_description", "long_description", "short_solution", "long_solution"]; + + // Ensure all end with a full stop + keys.forEach(key => { + const value = errorObject[key]; + // If the value does not end with a full stop and the last character is a letter, add a full stop + if (value && !value.endsWith(".") && /[A-Za-z]$/.test(value)) { + errorObject[key] = value + "."; + } + }); + + fs.writeFileSync(fullPath, JSON.stringify(json, null, "\t")); +}); \ No newline at end of file diff --git a/package.json b/package.json index 7d58143a..0c3097a2 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,10 @@ { - "name": "@pretendonetwork/error-codes", - "version": "1.0.3", - "description": "Translated error code information for the Wii U and 3DS" -} + "name": "@pretendonetwork/error-codes", + "version": "1.1.0", + "description": "Translated error code information for the Wii U and 3DS", + "main": "index.js", + "files": [ + "index.js", + "data" + ] +} \ No newline at end of file