Repository: nh-server/Kurisu

Issue:
[Error Submission] Error 165-9901
**Wii U**

<!--Your console, only Wiiu, 3DS, Switch supported-->

**165-9901**

<!--The error code you found-->

**Different Region Wii U Gamepad**

<!--What causes this error and what does it mean?-->

This error happens when a wii u gamepad update tries to be installed on a different gamepad region gamepad like:
Wii U Region: USA
Wii U Gamepad Region: EUR

Image of the error:
![Screenshot_20211229-235657_Bluecord](https://user-images.githubusercontent.com/90093996/147706809-43c8e51a-ce4e-450f-9f4a-f1fa5a8c689a.png)



Discussion:

Resolving patch:
diff --git a/cogs/results/ctr_results.py b/cogs/results/ctr_results.py
--- a/cogs/results/ctr_results.py
+++ b/cogs/results/ctr_results.py
@@ -134,7 +134,7 @@
     39: ResultInfo('Invalid title version.'),
     43: ResultInfo('Database doesn\'t exist, or it failed to open.'),
     44: ResultInfo('Trying to uninstall system-app.'),
-    106: ResultInfo('Invalid signature/CIA.'),
+    106: ResultInfo('Invalid signature/CIA. Usually happens when developer UNITINFO is enabled in Luma3DS.'),
     393: ResultInfo('Invalid database.'),
 })
 
diff --git a/cogs/results/ctr_support.py b/cogs/results/ctr_support.py
--- a/cogs/results/ctr_support.py
+++ b/cogs/results/ctr_support.py
@@ -121,7 +121,7 @@
     2920: ResultInfo('This error is typically displayed when a Nintendo eShop download failed, or when the title has an invalid ticket. Delete the title and/or its ticket in FBI and install it again from a legitimate source like the Nintendo eShop, or from your game cartridges if using cart dumps.', 'https://en-americas-support.nintendo.com/app/answers/detail/a_id/41692'),
     2924: ResultInfo('Happens when opening eshop with a invalid language setting'),
     3049: ResultInfo('The eShop is down for maintenance.', 'https://support.nintendo.com/networkstatus/'),
-    6106: ResultInfo('Occurs when attempting to re-download software from the eshop with an invalid or fake ticket')
+    6106: ResultInfo('Occurs when attempting to re-download software from the eshop with an invalid or fake ticket. Can also happen when developer UNITINFO is enabled in Luma3DS.')
 })
 
 # 009: errors related to (presumably) the eShop application itself
@@ -139,7 +139,7 @@
     4077: ResultInfo('Cannot start or continue eShop download. This happens due to insufficient free space being available on the SD Card.'),
     4079: ResultInfo('Unable to access SD card.'),
     4998: ResultInfo('Local content is newer. Unknown what causes this.'),
-    6106: ResultInfo('AM error in NIM. Bad ticket is likely.'),
+    6106: ResultInfo('AM error in NIM. Bad ticket is likely. Can also happen when developer UNITINFO is enabled in Luma3DS.'),
     8401: ResultInfo('The update data is corrupted. Delete it and reinstall.'),
     9001: ResultInfo('Caused by trying to download content with low battery percentage.')
 })
diff --git a/cogs/results/wiiu_support.py b/cogs/results/wiiu_support.py
--- a/cogs/results/wiiu_support.py
+++ b/cogs/results/wiiu_support.py
@@ -265,6 +265,7 @@
     1101: ResultInfo('Network clock is invalid.'),
     2000: ResultInfo('Authentication error.'),
     # TODO: 2001-2644 (there aren't really that many errors)
+    2402: ResultInfo('Invalid NNID. Usually happens if the console is trying to connect to Nintendo servers with a Pretendo Network ID, or Pretendo Network with an NNID.'),
     2643: ResultInfo('Authentication is required.'),
     2651: ResultInfo('Confirmation code is expired.'),
     2661: ResultInfo('Mail address is not validated.'),
@@ -442,6 +443,10 @@
     2713: ResultInfo('The USB Storage device has been disconnected.')
 })
 
+vpad_gamepad = Module('vpad (gamepad)', {
+    9901: ResultInfo('Error when updating a GamePad with a different region from the console.')
+})
+
 unknown = Module('unknown/misc.', {
     9999: ResultInfo('Usually indicates an invalid signature, ticket, or corrupted data. Typically happens when running an unsigned program without CFW/signature patches.')
 })
@@ -465,7 +470,7 @@
     151: Module('kpad (wiimote)'),
     155: Module('save'),
     160: syserr,
-    165: Module('vpad (gamepad)'),
+    165: vpad_gamepad,
     166: Module('aoc (dlc)'),
     187: Module('nfp (amiibo)'),
     199: unknown


Test patch: