Skip to content

Commit

Permalink
[MK8/Splatoon/Minecraft] Add packs to force network port for multipla…
Browse files Browse the repository at this point in the history
…yer (#655)

Thanks @ashquarky for this PR!
  • Loading branch information
ashquarky authored Dec 4, 2024
1 parent 5aeaef0 commit 0f812ff
Show file tree
Hide file tree
Showing 6 changed files with 205 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Workarounds/MinecraftWiiUEdition_NetworkPort/patch_port.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[MinecraftWiiU_ForceMultiplayerPortNumber_v688]
moduleMatches = 0x867317DE

# GetRandomPortRangeMin
.origin = 0x03579530
li r3, 0
ori r3, r3, $port
blr

# GetRandomPortRangeMax
.origin = 0x0357953c
li r3, 0
ori r3, r3, $port
blr
59 changes: 59 additions & 0 deletions Workarounds/MinecraftWiiUEdition_NetworkPort/rules.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
[Definition]
titleIds = 00050000101D9D00,00050000101D7500,00050000101DBE00
name = Multiplayer network port
path = "Minecraft: Wii U Edition/Workarounds/Multiplayer network port"
description = Forces peer-to-peer multiplayer to use a certain network port number, so that you can port forward it in your router.||This might help with connecting to online services, or with some 118-XXXX errors.
version = 6

[Default]
$port = 58000

[Preset]
name = UDP 58000
category = Use network port
$port = 58000

[Preset]
name = UDP 58001
category = Use network port
$port = 58001

[Preset]
name = UDP 58002
category = Use network port
$port = 58002

[Preset]
name = UDP 58003
category = Use network port
$port = 58003

[Preset]
name = UDP 58004
category = Use network port
$port = 58004

[Preset]
name = UDP 58005
category = Use network port
$port = 58005

[Preset]
name = UDP 58006
category = Use network port
$port = 58006

[Preset]
name = UDP 58007
category = Use network port
$port = 58007

[Preset]
name = UDP 58008
category = Use network port
$port = 58008

[Preset]
name = UDP 58009
category = Use network port
$port = 58009
7 changes: 7 additions & 0 deletions src/MarioKart8/NetworkPort/patch_port.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[MarioKart8_ForceMultiplayerPortNumber_v81]
moduleMatches = 0x9F0A90B7

# min port range
0x101a9a52 = .short $port
# max port range
0x101a9a54 = .short $port
59 changes: 59 additions & 0 deletions src/MarioKart8/NetworkPort/rules.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
[Definition]
titleIds = 000500001010ec00,000500001010ed00,000500001010eb00
name = Multiplayer network port
path = "Mario Kart 8/Workarounds/Multiplayer network port"
description = Forces peer-to-peer multiplayer to use a certain network port number, so that you can port forward it in your router.||This might help with connecting to online services, or with some 118-XXXX errors.
version = 6

[Default]
$port = 58000

[Preset]
name = UDP 58000
category = Use network port
$port = 58000

[Preset]
name = UDP 58001
category = Use network port
$port = 58001

[Preset]
name = UDP 58002
category = Use network port
$port = 58002

[Preset]
name = UDP 58003
category = Use network port
$port = 58003

[Preset]
name = UDP 58004
category = Use network port
$port = 58004

[Preset]
name = UDP 58005
category = Use network port
$port = 58005

[Preset]
name = UDP 58006
category = Use network port
$port = 58006

[Preset]
name = UDP 58007
category = Use network port
$port = 58007

[Preset]
name = UDP 58008
category = Use network port
$port = 58008

[Preset]
name = UDP 58009
category = Use network port
$port = 58009
7 changes: 7 additions & 0 deletions src/Splatoon/NetworkPort/patch_port.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Splatoon_ForceMultiplayerPortNumber_v288]
moduleMatches = 0x659C782E

# min port range
0x101e8952 = .short $port
# max port range
0x101e8954 = .short $port
59 changes: 59 additions & 0 deletions src/Splatoon/NetworkPort/rules.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
[Definition]
titleIds = 0005000010176900,0005000010176A00,0005000010162B00
name = Multiplayer network port
path = "Splatoon/Workarounds/Multiplayer network port"
description = Forces peer-to-peer multiplayer to use a certain network port number, so that you can port forward it in your router.||This might help with connecting to online services, or with some 118-XXXX errors.
version = 6

[Default]
$port = 58000

[Preset]
name = UDP 58000
category = Use network port
$port = 58000

[Preset]
name = UDP 58001
category = Use network port
$port = 58001

[Preset]
name = UDP 58002
category = Use network port
$port = 58002

[Preset]
name = UDP 58003
category = Use network port
$port = 58003

[Preset]
name = UDP 58004
category = Use network port
$port = 58004

[Preset]
name = UDP 58005
category = Use network port
$port = 58005

[Preset]
name = UDP 58006
category = Use network port
$port = 58006

[Preset]
name = UDP 58007
category = Use network port
$port = 58007

[Preset]
name = UDP 58008
category = Use network port
$port = 58008

[Preset]
name = UDP 58009
category = Use network port
$port = 58009

0 comments on commit 0f812ff

Please sign in to comment.