Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 549
» Latest member: dqnny
» Forum threads: 1,670
» Forum posts: 12,135

Full Statistics

Online Users
There are currently 70 online users.
» 0 Member(s) | 66 Guest(s)
Bing, Facebook, Google, Yandex

Latest Threads
Make it to 10,000
Forum: General Discussion
Last Post: Vega
5 hours ago
» Replies: 5,860
» Views: 4,282,832
No Boost Pads
Forum: Code Support / Help / Requests
Last Post: Katos
6 hours ago
» Replies: 0
» Views: 26
TT Recorder's Resource Pa...
Forum: Non-Hacking MKW Threads
Last Post: Fifty
Yesterday, 09:21 PM
» Replies: 5
» Views: 18,812
Wiimote Speaker Sound Pla...
Forum: Incomplete & Outdated Codes
Last Post: _Ro
Yesterday, 06:11 AM
» Replies: 0
» Views: 42
Mini Turbo Functionality
Forum: Code Support / Help / Requests
Last Post: DracoTH
05-16-2024, 05:55 PM
» Replies: 0
» Views: 47
Frame rate / game speed
Forum: Code Support / Help / Requests
Last Post: Katos
05-15-2024, 05:46 PM
» Replies: 0
» Views: 90
Force 30 FPS [Nick Reynol...
Forum: Misc/Other
Last Post: Katos
05-13-2024, 02:23 PM
» Replies: 4
» Views: 20,366
Vehicle Stats Modifier [J...
Forum: Offline Non-Item
Last Post: Katos
05-13-2024, 10:27 AM
» Replies: 7
» Views: 17,105
Blue shell cooldown [Gabe...
Forum: Online; Item
Last Post: Gaberboo
05-13-2024, 05:29 AM
» Replies: 0
» Views: 69
Custom Kart Working on Do...
Forum: Code Support / Help / Requests
Last Post: Fifty
05-10-2024, 08:37 PM
» Replies: 5
» Views: 373

 
  Countdown Beta8 Mod [MrBean35000vr, Kazuki]
Posted by: Kazuki - 10-12-2023, 09:45 PM - Forum: Incomplete & Outdated Codes - Replies (1)

Countdown Beta8 Mod [MrBean35000vr, Kazuki]

Countdown Beta8 mod is a modification by Kazuki of Countdown Mode beta8 created by MrBean35000vr.

The main purpose of the modification is to set different time limits for each custom track using course.lex, which is a subfile of the track szs file.

If there is no course.lex or the time limit is not set, then 2:30 = 150seconds is used as the time limit.

Detailed instructions for setting time limits can be found here.

Note that this code currently ignores engine classes above 200cc.

In addition, the following modifications have been made to make the behavior of the code as similar as possible to the latest CTGP Revolution.

Changed lap count from 8 to 9.
Fixed a bug that bgm did not accelerate in some scenes.
If you attack an enemy and score but time cannot be increased any further, your score will not increas.


This code uses 0x800011D4 ~ 0x800011D7 in addition to the Eexception Vector Area used by the original CountDown beta8 code.

NTSC-K port was not created because the original code did not have NTSC-K port.

v1.1:

Code:
(PAL)
04000EF0 00000001
C253f3bc 00000006
3C608000 80630EF0
2C030001 40A20014
3C808000 808411D4
1C8403E8 4800000C
3C600005 388393E0
60000000 00000000
C2535904 00000027
3C808000 90640EFC
80840EF0 60000000
2C040001 40A20118
88830042 2C040000
40A200A8 38800001
98830042 3960003C
3D808000 818C11D4
7C8C5B96 98830015
98830021 1C84003C
7C846050 98830016
98830022 3C80809C
388436A0 8004014C
900401A0 38000000
90040074 900400A4
900401E0 38000001
90040084 90040090
90040140 90040148
900401E8 38000002
90040098 90040194
900401CC 38000003
900400A0 38000007
900401C4 38000008
9004018C 38000009
90040138 80040088
9004014C 48000068
80830048 3D808000
818C11D4 1D8C003C
396CF574 7C045800
41A0004C 7C046000
41800018 3C003F80
3C80808A 388410D8
90040000 48000030
3C003F8E 3C80808A
388410D8 81840000
7C0C0000 41A20018
398C03FB 7C0C0000
41A00008 3D803F8E
91840000 9421FFC0
60000000 00000000
C25918d8 0000000E
3CC08000 80C60EF0
2C060001 40A20058
2C00000A 41810050
3CE08000 80E70EFC
2C070000 41820020
81070048 2C0800B4
41A1000C 7C601B78
4800002C 3908FF4C
91070048 C002802C
3CE08000 80E70EF8
2C070000 41820010
C0270000 EC20082A
D0270000 90040008
60000000 00000000
C25328B0 00000005
3CA0809C 80A5D6E8
80A5003C 80A50000
80A50000 80A50000
38000009 98040B8D
60000000 00000000
045336B8 60000000
04534350 60000000
04534BBC 60000000
04723D10 281D0009
04723D40 3BA00009
C2723D50 00000007
4800002D 00000000
00000000 00000000
3F800000 40000000
40400000 40800000
40A00000 40C00000
40E00000 7CA802A6
38800003 00000000
C26f9d1c 00000010
3D80809C 398C1E38
800C0000 2C000000
4182005C 7C0C0378
800C0000 2C000000
4182004C 7C0C0378
800C0000 2C00001E
4180003C 2C000028
4180003C 2C000068
4180002C 2C00006A
4180002C 2C000070
4180001C 2C000072
4180001C 2C000074
4180000C 2C000076
4180000C 3D803F80
919F0208 C3FF0208
60000000 00000000
C27EF7A4 00000005
80BC0098 80A50044
80A50000 38600000
94650010 3C608000
90A30EF8 7F83E378
60000000 00000000
04798004 48000040
048A5D44 00000014
048A56E8 00000016
048A56EC 00000016
048A5A3C 00000018
048A5488 00000012
048A548C 00000014
048B5CAC 42DC0000
0453FC10 60000000
0453F644 4800006C
0453F6C0 48000030
045349EC 60000000
047F4DB8 38000001
C256FFDC 0000002B
3C608000 80630EF0
2C030000 41A20140
2C190000 40820138
7C17C000 40820130
7C13A000 40820128
807E0004 809F0000
80630004 80840004
80630004 80840004
546337FE 548437FE
7C032000 41A20100
41800084 3C60809C
806318F8 80630020
3980FFFF 398C0001
2C0C000C 418200E0
1C8C0004 7C83202E
80840000 80840030
7C1E2000 4082FFE0
3C80809C 80843618
80840014 1C6C0248
7C832214 886400A7
2C030001 40A200A8
38600000 986400A7
806400A8 2C030000
41A2000C 38600001
906400A8 3D808057
398C0388 7D8903A6
4E800420 3C60809C
806318F8 80630020
3980FFFF 398C0001
2C0C000C 41820060
1C8C0004 7C83202E
7C1F2000 4082FFE8
3C80809C 80843618
80840014 1C6C0248
7C832214 886400A7
2C030001 40A20030
38600000 986400A7
806400A8 2C030000
41A2000C 38600001
906400A8 3D808057
398C01EC 7D8903A6
4E800420 2C190000
60000000 00000000
C279864C 00000002
9421FFF0 38000001
980300A7 00000000
c2540910 00000037
9421ff80 7c0802a6
90010084 bc610008
48000139 b8610008
80010084 7c0803a6
38210080 48000188
7d8802a6 48000011
636f7572 73652e6c
65780000 7c6802a6
7d8803a6 4e800020
80630000 2c030000
4d820020 80630b6c
4e800020 2c030000
418200b8 81430000
3d204c45 61292d58
7c0a4800 408200ac
81430004 3d200001
7c0a4800 408200a4
9421fff0 93e1000c
8123000c 7fe34a14
48000054 813f0004
2809000b 4081008c
7c0802a6 90010014
3c60809b 6063d728
4bffff91 28030002
41810078 3bff0008
38630001 5463083c
7c7f1a2e 80010014
7c0803a6 48000030
813f0004 39290008
7fff4a14 813f0000
3d404354 614a444e
7c095000 41a2ffa0
2c090000 4082ffdc
38600096 83e1000c
38210010 4e800020
38600096 4e800020
38600096 4e800020
38600096 4e800020
38600096 4bffffd8
38600096 80010014
7c0803a6 4bffffc8
9421fff0 7c0802a6
90010014 93e1000c
3d20809b 6129d738
83e90000 4bfffec5
7c651b78 38c00000
38800001 7fe3fb78
3d208054 612911fc
7d2903a6 4e800421
4bfffed5 3d208000
612911d4 90690000
80010014 7c0803a6
83e1000c 38210010
4e800020 382100a0
60000000 00000000
047f35f8 3860000e

(NTSC-U)
04000EF0 00000001
C2539E80 00000006
3C608000 80630EF0
2C030001 40A20014
3C808000 808411D4
1C8403E8 4800000C
3C600005 388393E0
60000000 00000000
C2530dbc 00000027
3C808000 90640EFC
80840EF0 60000000
2C040001 40A20118
88830042 2C040000
40A200A8 38800001
98830042 3960003C
3D808000 818C11D4
7C8C5B96 98830015
98830021 1C84003C
7C846050 98830016
98830022 3C80809C
3884EE98 8004014C
900401A0 38000000
90040074 900400A4
900401E0 38000001
90040084 90040090
90040140 90040148
900401E8 38000002
90040098 90040194
900401CC 38000003
900400A0 38000007
900401C4 38000008
9004018C 38000009
90040138 80040088
9004014C 48000068
80830048 3D808000
818C11D4 1D8C003C
396CF574 7C045800
41A0004C 7C046000
41800018 3C003F80
3C80808A 3884C9D0
90040000 48000030
3C003F8E 3C80808A
3884C9D0 81840000
7C0C0000 41A20018
398C03FB 7C0C0000
41A00008 3D803F8E
91840000 9421FFC0
60000000 00000000
C258B0B4 0000000E
3CC08000 80C60EF0
2C060001 40A20058
2C00000A 41810050
3CE08000 80E70EFC
2C070000 41820020
81070048 2C0800B4
41A1000C 7C601B78
4800002C 3908FF4C
91070048 C002802C
3CE08000 80E70EF8
2C070000 41820010
C0270000 EC20082A
D0270000 90040008
60000000 00000000
C252DD68 00000005
3CA0809C 80A58F28
80A5003C 80A50000
80A50000 80A50000
38000009 98040B8D
60000000 00000000
0452EB70 60000000
0452F808 60000000
04530074 60000000
0471F8E0 281D0009
0471F910 3BA00009
C271F920 00000007
4800002D 00000000
00000000 00000000
3F800000 40000000
40400000 40800000
40A00000 40C00000
40E00000 7CA802A6
38800003 00000000
C26F4D60 00000010
3D80809C 398CD508
800C0000 2C000000
4182005C 7C0C0378
800C0000 2C000000
4182004C 7C0C0378
800C0000 2C00001E
4180003C 2C000028
4180003C 2C000068
4180002C 2C00006A
4180002C 2C000070
4180001C 2C000072
4180001C 2C000074
4180000C 2C000076
4180000C 3D803F80
919F0208 C3FF0208
60000000 00000000
C27E5494 00000005
80BC0098 80A50044
80A50000 38600000
94650010 3C608000
90A30EF8 7F83E378
60000000 00000000
0478EFF8 48000040
048A126C 00000014
048A0D28 00000016
048A0D2C 00000016
048A0F64 00000018
048A0AC8 00000012
048A0ACC 00000014
048B13EC 42DC0000
0453A6D4 60000000
0453A108 4800006C
0453A184 48000030
0452FEA4 60000000
047EA790 38000001
C256B18C 0000002B
3C608000 80630EF0
2C030000 41A20140
2C190000 40820138
7C17C000 40820130
7C13A000 40820128
807E0004 809F0000
80630004 80840004
80630004 80840004
546337FE 548437FE
7C032000 41A20100
41800084 3C60809C
8063D110 80630020
3980FFFF 398C0001
2C0C000C 418200E0
1C8C0004 7C83202E
80840000 80840030
7C1E2000 4082FFE0
3C80809C 8084EE20
80840014 1C6C0248
7C832214 886400A7
2C030001 40A200A8
38600000 986400A7
806400A8 2C030000
41A2000C 38600001
906400A8 3D808057
398CB538 7D8903A6
4E800420 3C60809C
8063D110 80630020
3980FFFF 398C0001
2C0C000C 41820060
1C8C0004 7C83202E
7C1F2000 4082FFE8
3C80809C 8084EE20
80840014 1C6C0248
7C832214 886400A7
2C030001 40A20030
38600000 986400A7
806400A8 2C030000
41A2000C 38600001
906400A8 3D808057
398CB39C 7D8903A6
4E800420 2C190000
60000000 00000000
C278F640 00000002
9421FFF0 38000001
980300A7 00000000
c253b3d4 00000037
9421ff80 7c0802a6
90010084 bc610008
48000139 b8610008
80010084 7c0803a6
38210080 48000188
7d8802a6 48000011
636f7572 73652e6c
65780000 7c6802a6
7d8803a6 4e800020
80630000 2c030000
4d820020 80630b6c
4e800020 2c030000
418200b8 81430000
3d204c45 61292d58
7c0a4800 408200ac
81430004 3d200001
7c0a4800 408200a4
9421fff0 93e1000c
8123000c 7fe34a14
48000054 813f0004
2809000b 4081008c
7c0802a6 90010014
3c60809b 60638f68
4bffff91 28030002
41810078 3bff0008
38630001 5463083c
7c7f1a2e 80010014
7c0803a6 48000030
813f0004 39290008
7fff4a14 813f0000
3d404354 614a444e
7c095000 41a2ffa0
2c090000 4082ffdc
38600096 83e1000c
38210010 4e800020
38600096 4e800020
38600096 4e800020
38600096 4e800020
38600096 4bffffd8
38600096 80010014
7c0803a6 4bffffc8
9421fff0 7c0802a6
90010014 93e1000c
3d20809b 61298f78
83e90000 4bfffec5
7c651b78 38c00000
38800001 7fe3fb78
3d208053 6129bcc0
7d2903a6 4e800421
4bfffed5 3d208000
612911d4 90690000
80010014 7c0803a6
83e1000c 38210010
4e800020 382100a0
60000000 00000000
047e8fd0 3860000e

(NTSC-J)
04000EF0 00000001
C253ed3c 00000006
3C608000 80630EF0
2C030001 40A20014
3C808000 808411D4
1C8403E8 4800000C
3C600005 388393E0
60000000 00000000
C2535284 00000027
3C808000 90640EFC
80840EF0 60000000
2C040001 40A20118
88830042 2C040000
40A200A8 38800001
98830042 3960003C
3D808000 818C11D4
7C8C5B96 98830015
98830021 1C84003C
7C846050 98830016
98830022 3C80809C
38842700 8004014C
900401A0 38000000
90040074 900400A4
900401E0 38000001
90040084 90040090
90040140 90040148
900401E8 38000002
90040098 90040194
900401CC 38000003
900400A0 38000007
900401C4 38000008
9004018C 38000009
90040138 80040088
9004014C 48000068
80830048 3D808000
818C11D4 1D8C003C
396CF574 7C045800
41A0004C 7C046000
41800018 3C003F80
3C80808A 38840238
90040000 48000030
3C003F8E 3C80808A
38840238 81840000
7C0C0000 41A20018
398C03FB 7C0C0000
41A00008 3D803F8E
91840000 9421FFC0
60000000 00000000
C2591258 0000000E
3CC08000 80C60EF0
2C060001 40A20058
2C00000A 41810050
3CE08000 80E70EFC
2C070000 41820020
81070048 2C0800B4
41A1000C 7C601B78
4800002C 3908FF4C
91070048 C002802C
3CE08000 80E70EF8
2C070000 41820010
C0270000 EC20082A
D0270000 90040008
60000000 00000000
C2532230 00000005
3CA0809C 80A5C748
80A5003C 80A50000
80A50000 80A50000
38000009 98040B8D
60000000 00000000
04533038 60000000
04533CD0 60000000
0453453C 60000000
0472337C 281D0009
047233AC 3BA00009
C27233BC 00000007
4800002D 00000000
00000000 00000000
3F800000 40000000
40400000 40800000
40A00000 40C00000
40E00000 7CA802A6
38800003 00000000
C26f9388 00000010
3D80809C 398C0E98
800C0000 2C000000
4182005C 7C0C0378
800C0000 2C000000
4182004C 7C0C0378
800C0000 2C00001E
4180003C 2C000028
4180003C 2C000068
4180002C 2C00006A
4180002C 2C000070
4180001C 2C000072
4180001C 2C000074
4180000C 2C000076
4180000C 3D803F80
919F0208 C3FF0208
60000000 00000000
C27EEE10 00000005
80BC0098 80A50044
80A50000 38600000
94650010 3C608000
90A30EF8 7F83E378
60000000 00000000
04797670 48000040
048A4EA4 00000014
048A4848 00000016
048A484C 00000016
048A4B9C 00000018
048A45E8 00000012
048A45EC 00000014
048B4E0C 42DC0000
0453F590 60000000
0453EFC4 4800006C
0453F040 48000030
0453436C 60000000
047F4424 38000001
C256F95C 0000002B
3C608000 80630EF0
2C030000 41A20140
2C190000 40820138
7C17C000 40820130
7C13A000 40820128
807E0004 809F0000
80630004 80840004
80630004 80840004
546337FE 548437FE
7C032000 41A20100
41800084 3C60809C
80630958 80630020
3980FFFF 398C0001
2C0C000C 418200E0
1C8C0004 7C83202E
80840000 80840030
7C1E2000 4082FFE0
3C80809C 80842678
80840014 1C6C0248
7C832214 886400A7
2C030001 40A200A8
38600000 986400A7
806400A8 2C030000
41A2000C 38600001
906400A8 3D808057
398CFD08 7D8903A6
4E800420 3C60809C
80630958 80630020
3980FFFF 398C0001
2C0C000C 41820060
1C8C0004 7C83202E
7C1F2000 4082FFE8
3C80809C 80842678
80840014 1C6C0248
7C832214 886400A7
2C030001 40A20030
38600000 986400A7
806400A8 2C030000
41A2000C 38600001
906400A8 3D808057
398CFB6C 7D8903A6
4E800420 2C190000
60000000 00000000
C2797CB8 00000002
9421FFF0 38000001
980300A7 00000000
c2540290 00000037
9421ff80 7c0802a6
90010084 bc610008
48000139 b8610008
80010084 7c0803a6
38210080 48000188
7d8802a6 48000011
636f7572 73652e6c
65780000 7c6802a6
7d8803a6 4e800020
80630000 2c030000
4d820020 80630b6c
4e800020 2c030000
418200b8 81430000
3d204c45 61292d58
7c0a4800 408200ac
81430004 3d200001
7c0a4800 408200a4
9421fff0 93e1000c
8123000c 7fe34a14
48000054 813f0004
2809000b 4081008c
7c0802a6 90010014
3c60809b 6063c788
4bffff91 28030002
41810078 3bff0008
38630001 5463083c
7c7f1a2e 80010014
7c0803a6 48000030
813f0004 39290008
7fff4a14 813f0000
3d404354 614a444e
7c095000 41a2ffa0
2c090000 4082ffdc
38600096 83e1000c
38210010 4e800020
38600096 4e800020
38600096 4e800020
38600096 4e800020
38600096 4bffffd8
38600096 80010014
7c0803a6 4bffffc8
9421fff0 7c0802a6
90010014 93e1000c
3d20809b 6129c798
83e90000 4bfffec5
7c651b78 38c00000
38800001 7fe3fb78
3d208054 61290b7c
7d2903a6 4e800421
4bfffed5 3d208000
612911d4 90690000
80010014 7c0803a6
83e1000c 38210010
4e800020 382100a0
60000000 00000000
047f2c64 3860000e

v1.0:
Code:
(PAL)
04000EF0 00000001
C253f3bc 00000006
3C608000 80630EF0
2C030001 40A20014
3C808000 808411D4
1C8403E8 4800000C
3C600005 388393E0
60000000 00000000
C2535904 00000027
3C808000 90640EFC
80840EF0 60000000
2C040001 40A20118
88830042 2C040000
40A200A8 38800001
98830042 3960003C
3D808000 818C11D4
7C8C5B96 98830015
98830021 1C84003C
7C846050 98830016
98830022 3C80809C
388436A0 8004014C
900401A0 38000000
90040074 900400A4
900401E0 38000001
90040084 90040090
90040140 90040148
900401E8 38000002
90040098 90040194
900401CC 38000003
900400A0 38000007
900401C4 38000008
9004018C 38000009
90040138 80040088
9004014C 48000068
80830048 3D808000
818C11D4 1D8C003C
396CF574 7C045800
41A0004C 7C046000
41800018 3C003F80
3C80808A 388410D8
90040000 48000030
3C003F8E 3C80808A
388410D8 81840000
7C0C0000 41A20018
398C03FB 7C0C0000
41A00008 3D803F8E
91840000 9421FFC0
60000000 00000000
C25918d8 0000000F
3CC08000 80C60EF0
2C060001 40A20064
2C00000A 4181005C
3CE08000 80E70EFC
2C070000 4182002C
81070048 2C0800B4
41A10018 7C080378
3808FFFF 39000000
91070048 4800000C
3908FF4C 91070048
C002802C 3CE08000
80E70EF8 2C070000
41820010 C0270000
EC20082A D0270000
90040008 00000000
C25328B0 00000005
3CA0809C 80A5D6E8
80A5003C 80A50000
80A50000 80A50000
38000009 98040B8D
60000000 00000000
045336B8 60000000
04534350 60000000
04534BBC 60000000
04723D10 281D0009
04723D40 3BA00009
C2723D50 00000007
4800002D 00000000
00000000 00000000
3F800000 40000000
40400000 40800000
40A00000 40C00000
40E00000 7CA802A6
38800003 00000000
C26f9d1c 00000010
3D80809C 398C1E38
800C0000 2C000000
4182005C 7C0C0378
800C0000 2C000000
4182004C 7C0C0378
800C0000 2C00001E
4180003C 2C000028
4180003C 2C000068
4180002C 2C00006A
4180002C 2C000070
4180001C 2C000072
4180001C 2C000074
4180000C 2C000076
4180000C 3D803F80
919F0208 C3FF0208
60000000 00000000
C27EF7A4 00000005
80BC0098 80A50044
80A50000 38600000
94650010 3C608000
90A30EF8 7F83E378
60000000 00000000
04798004 48000040
048A5D44 00000014
048A56E8 00000016
048A56EC 00000016
048A5A3C 00000018
048A5488 00000012
048A548C 00000014
048B5CAC 42DC0000
0453FC10 60000000
0453F644 4800006C
0453F6C0 48000030
045349EC 60000000
047F4DB8 38000001
C256FFDC 0000002B
3C608000 80630EF0
2C030000 41A20140
2C190000 40820138
7C17C000 40820130
7C13A000 40820128
807E0004 809F0000
80630004 80840004
80630004 80840004
546337FE 548437FE
7C032000 41A20100
41800084 3C60809C
806318F8 80630020
3980FFFF 398C0001
2C0C000C 418200E0
1C8C0004 7C83202E
80840000 80840030
7C1E2000 4082FFE0
3C80809C 80843618
80840014 1C6C0248
7C832214 886400A7
2C030001 40A200A8
38600000 986400A7
806400A8 2C030000
41A2000C 38600001
906400A8 3D808057
398C0388 7D8903A6
4E800420 3C60809C
806318F8 80630020
3980FFFF 398C0001
2C0C000C 41820060
1C8C0004 7C83202E
7C1F2000 4082FFE8
3C80809C 80843618
80840014 1C6C0248
7C832214 886400A7
2C030001 40A20030
38600000 986400A7
806400A8 2C030000
41A2000C 38600001
906400A8 3D808057
398C01EC 7D8903A6
4E800420 2C190000
60000000 00000000
C279864C 00000002
9421FFF0 38000001
980300A7 00000000
c2540910 00000037
9421ff80 7c0802a6
90010084 bc610008
48000139 b8610008
80010084 7c0803a6
38210080 48000188
7d8802a6 48000011
636f7572 73652e6c
65780000 7c6802a6
7d8803a6 4e800020
80630000 2c030000
4d820020 80630b6c
4e800020 2c030000
418200b8 81430000
3d204c45 61292d58
7c0a4800 408200ac
81430004 3d200001
7c0a4800 408200a4
9421fff0 93e1000c
8123000c 7fe34a14
48000054 813f0004
2809000b 4081008c
7c0802a6 90010014
3c60809b 6063d728
4bffff91 28030002
41810078 3bff0008
38630001 5463083c
7c7f1a2e 80010014
7c0803a6 48000030
813f0004 39290008
7fff4a14 813f0000
3d404354 614a444e
7c095000 41a2ffa0
2c090000 4082ffdc
38600096 83e1000c
38210010 4e800020
38600096 4e800020
38600096 4e800020
38600096 4e800020
38600096 4bffffd8
38600096 80010014
7c0803a6 4bffffc8
9421fff0 7c0802a6
90010014 93e1000c
3d20809b 6129d738
83e90000 4bfffec5
7c651b78 38c00000
38800001 7fe3fb78
3d208054 612911fc
7d2903a6 4e800421
4bfffed5 3d208000
612911d4 90690000
80010014 7c0803a6
83e1000c 38210010
4e800020 382100a0
60000000 00000000

(NTSC-U)
04000EF0 00000001
C2539E80 00000006
3C608000 80630EF0
2C030001 40A20014
3C808000 808411D4
1C8403E8 4800000C
3C600005 388393E0
60000000 00000000
C2530dbc 00000027
3C808000 90640EFC
80840EF0 60000000
2C040001 40A20118
88830042 2C040000
40A200A8 38800001
98830042 3960003C
3D808000 818C11D4
7C8C5B96 98830015
98830021 1C84003C
7C846050 98830016
98830022 3C80809C
3884EE98 8004014C
900401A0 38000000
90040074 900400A4
900401E0 38000001
90040084 90040090
90040140 90040148
900401E8 38000002
90040098 90040194
900401CC 38000003
900400A0 38000007
900401C4 38000008
9004018C 38000009
90040138 80040088
9004014C 48000068
80830048 3D808000
818C11D4 1D8C003C
396CF574 7C045800
41A0004C 7C046000
41800018 3C003F80
3C80808A 3884C9D0
90040000 48000030
3C003F8E 3C80808A
3884C9D0 81840000
7C0C0000 41A20018
398C03FB 7C0C0000
41A00008 3D803F8E
91840000 9421FFC0
60000000 00000000
C258B0B4 0000000F
3CC08000 80C60EF0
2C060001 40A20064
2C00000A 4181005C
3CE08000 80E70EFC
2C070000 4182002C
81070048 2C0800B4
41A10018 7C080378
3808FFFF 39000000
91070048 4800000C
3908FF4C 91070048
C002802C 3CE08000
80E70EF8 2C070000
41820010 C0270000
EC20082A D0270000
90040008 00000000
C252DD68 00000005
3CA0809C 80A58F28
80A5003C 80A50000
80A50000 80A50000
38000009 98040B8D
60000000 00000000
0452EB70 60000000
0452F808 60000000
04530074 60000000
0471F8E0 281D0009
0471F910 3BA00009
C271F920 00000007
4800002D 00000000
00000000 00000000
3F800000 40000000
40400000 40800000
40A00000 40C00000
40E00000 7CA802A6
38800003 00000000
C26F4D60 00000010
3D80809C 398CD508
800C0000 2C000000
4182005C 7C0C0378
800C0000 2C000000
4182004C 7C0C0378
800C0000 2C00001E
4180003C 2C000028
4180003C 2C000068
4180002C 2C00006A
4180002C 2C000070
4180001C 2C000072
4180001C 2C000074
4180000C 2C000076
4180000C 3D803F80
919F0208 C3FF0208
60000000 00000000
C27E5494 00000005
80BC0098 80A50044
80A50000 38600000
94650010 3C608000
90A30EF8 7F83E378
60000000 00000000
0478EFF8 48000040
048A126C 00000014
048A0D28 00000016
048A0D2C 00000016
048A0F64 00000018
048A0AC8 00000012
048A0ACC 00000014
048B13EC 42DC0000
0453A6D4 60000000
0453A108 4800006C
0453A184 48000030
0452FEA4 60000000
047EA790 38000001
C256B18C 0000002B
3C608000 80630EF0
2C030000 41A20140
2C190000 40820138
7C17C000 40820130
7C13A000 40820128
807E0004 809F0000
80630004 80840004
80630004 80840004
546337FE 548437FE
7C032000 41A20100
41800084 3C60809C
8063D110 80630020
3980FFFF 398C0001
2C0C000C 418200E0
1C8C0004 7C83202E
80840000 80840030
7C1E2000 4082FFE0
3C80809C 8084EE20
80840014 1C6C0248
7C832214 886400A7
2C030001 40A200A8
38600000 986400A7
806400A8 2C030000
41A2000C 38600001
906400A8 3D808057
398CB538 7D8903A6
4E800420 3C60809C
8063D110 80630020
3980FFFF 398C0001
2C0C000C 41820060
1C8C0004 7C83202E
7C1F2000 4082FFE8
3C80809C 8084EE20
80840014 1C6C0248
7C832214 886400A7
2C030001 40A20030
38600000 986400A7
806400A8 2C030000
41A2000C 38600001
906400A8 3D808057
398CB39C 7D8903A6
4E800420 2C190000
60000000 00000000
C278F640 00000002
9421FFF0 38000001
980300A7 00000000
c253b3d4 00000037
9421ff80 7c0802a6
90010084 bc610008
48000139 b8610008
80010084 7c0803a6
38210080 48000188
7d8802a6 48000011
636f7572 73652e6c
65780000 7c6802a6
7d8803a6 4e800020
80630000 2c030000
4d820020 80630b6c
4e800020 2c030000
418200b8 81430000
3d204c45 61292d58
7c0a4800 408200ac
81430004 3d200001
7c0a4800 408200a4
9421fff0 93e1000c
8123000c 7fe34a14
48000054 813f0004
2809000b 4081008c
7c0802a6 90010014
3c60809b 60638f68
4bffff91 28030002
41810078 3bff0008
38630001 5463083c
7c7f1a2e 80010014
7c0803a6 48000030
813f0004 39290008
7fff4a14 813f0000
3d404354 614a444e
7c095000 41a2ffa0
2c090000 4082ffdc
38600096 83e1000c
38210010 4e800020
38600096 4e800020
38600096 4e800020
38600096 4e800020
38600096 4bffffd8
38600096 80010014
7c0803a6 4bffffc8
9421fff0 7c0802a6
90010014 93e1000c
3d20809b 61298f78
83e90000 4bfffec5
7c651b78 38c00000
38800001 7fe3fb78
3d208053 6129bcc0
7d2903a6 4e800421
4bfffed5 3d208000
612911d4 90690000
80010014 7c0803a6
83e1000c 38210010
4e800020 382100a0
60000000 00000000

(NTSC-J)
04000EF0 00000001
C253ed3c 00000006
3C608000 80630EF0
2C030001 40A20014
3C808000 808411D4
1C8403E8 4800000C
3C600005 388393E0
60000000 00000000
C2535284 00000027
3C808000 90640EFC
80840EF0 60000000
2C040001 40A20118
88830042 2C040000
40A200A8 38800001
98830042 3960003C
3D808000 818C11D4
7C8C5B96 98830015
98830021 1C84003C
7C846050 98830016
98830022 3C80809C
38842700 8004014C
900401A0 38000000
90040074 900400A4
900401E0 38000001
90040084 90040090
90040140 90040148
900401E8 38000002
90040098 90040194
900401CC 38000003
900400A0 38000007
900401C4 38000008
9004018C 38000009
90040138 80040088
9004014C 48000068
80830048 3D808000
818C11D4 1D8C003C
396CF574 7C045800
41A0004C 7C046000
41800018 3C003F80
3C80808A 38840238
90040000 48000030
3C003F8E 3C80808A
38840238 81840000
7C0C0000 41A20018
398C03FB 7C0C0000
41A00008 3D803F8E
91840000 9421FFC0
60000000 00000000
C2591258 0000000F
3CC08000 80C60EF0
2C060001 40A20064
2C00000A 4181005C
3CE08000 80E70EFC
2C070000 4182002C
81070048 2C0800B4
41A10018 7C080378
3808FFFF 39000000
91070048 4800000C
3908FF4C 91070048
C002802C 3CE08000
80E70EF8 2C070000
41820010 C0270000
EC20082A D0270000
90040008 00000000
C2532230 00000005
3CA0809C 80A5C748
80A5003C 80A50000
80A50000 80A50000
38000009 98040B8D
60000000 00000000
04533038 60000000
04533CD0 60000000
0453453C 60000000
0472337C 281D0009
047233AC 3BA00009
C27233BC 00000007
4800002D 00000000
00000000 00000000
3F800000 40000000
40400000 40800000
40A00000 40C00000
40E00000 7CA802A6
38800003 00000000
C26f9388 00000010
3D80809C 398C0E98
800C0000 2C000000
4182005C 7C0C0378
800C0000 2C000000
4182004C 7C0C0378
800C0000 2C00001E
4180003C 2C000028
4180003C 2C000068
4180002C 2C00006A
4180002C 2C000070
4180001C 2C000072
4180001C 2C000074
4180000C 2C000076
4180000C 3D803F80
919F0208 C3FF0208
60000000 00000000
C27EEE10 00000005
80BC0098 80A50044
80A50000 38600000
94650010 3C608000
90A30EF8 7F83E378
60000000 00000000
04797670 48000040
048A4EA4 00000014
048A4848 00000016
048A484C 00000016
048A4B9C 00000018
048A45E8 00000012
048A45EC 00000014
048B4E0C 42DC0000
0453F590 60000000
0453EFC4 4800006C
0453F040 48000030
0453436C 60000000
047F4424 38000001
C256F95C 0000002B
3C608000 80630EF0
2C030000 41A20140
2C190000 40820138
7C17C000 40820130
7C13A000 40820128
807E0004 809F0000
80630004 80840004
80630004 80840004
546337FE 548437FE
7C032000 41A20100
41800084 3C60809C
80630958 80630020
3980FFFF 398C0001
2C0C000C 418200E0
1C8C0004 7C83202E
80840000 80840030
7C1E2000 4082FFE0
3C80809C 80842678
80840014 1C6C0248
7C832214 886400A7
2C030001 40A200A8
38600000 986400A7
806400A8 2C030000
41A2000C 38600001
906400A8 3D808057
398CFD08 7D8903A6
4E800420 3C60809C
80630958 80630020
3980FFFF 398C0001
2C0C000C 41820060
1C8C0004 7C83202E
7C1F2000 4082FFE8
3C80809C 80842678
80840014 1C6C0248
7C832214 886400A7
2C030001 40A20030
38600000 986400A7
806400A8 2C030000
41A2000C 38600001
906400A8 3D808057
398CFB6C 7D8903A6
4E800420 2C190000
60000000 00000000
C2797CB8 00000002
9421FFF0 38000001
980300A7 00000000
c2540290 00000037
9421ff80 7c0802a6
90010084 bc610008
48000139 b8610008
80010084 7c0803a6
38210080 48000188
7d8802a6 48000011
636f7572 73652e6c
65780000 7c6802a6
7d8803a6 4e800020
80630000 2c030000
4d820020 80630b6c
4e800020 2c030000
418200b8 81430000
3d204c45 61292d58
7c0a4800 408200ac
81430004 3d200001
7c0a4800 408200a4
9421fff0 93e1000c
8123000c 7fe34a14
48000054 813f0004
2809000b 4081008c
7c0802a6 90010014
3c60809b 6063c788
4bffff91 28030002
41810078 3bff0008
38630001 5463083c
7c7f1a2e 80010014
7c0803a6 48000030
813f0004 39290008
7fff4a14 813f0000
3d404354 614a444e
7c095000 41a2ffa0
2c090000 4082ffdc
38600096 83e1000c
38210010 4e800020
38600096 4e800020
38600096 4e800020
38600096 4e800020
38600096 4bffffd8
38600096 80010014
7c0803a6 4bffffc8
9421fff0 7c0802a6
90010014 93e1000c
3d20809b 6129c798
83e90000 4bfffec5
7c651b78 38c00000
38800001 7fe3fb78
3d208054 61290b7c
7d2903a6 4e800421
4bfffed5 3d208000
612911d4 90690000
80010014 7c0803a6
83e1000c 38210010
4e800020 382100a0
60000000 00000000

Credits:
MrBean35000vr for original code
Wiimm for lex file implementation
mkw (Decompilation of Mario Kart Wii) contributors for System::ResourceManager class
JoshuaMK for CC Tracker

v1.1 update:
Fixed a problem that sometimes allowed scores of 11 or more to be obtained.
Fixed an issue where sometimes the actual score earned did not match the displayed score.
Fixed warning icon for megamushroom.

source code (v1.1):
source code (v1.0):

Print this item

  Extend Waiting For Others [dirtyfrikandel]
Posted by: dirtyfrikandel - 10-12-2023, 10:02 AM - Forum: Online Non-Item - No Replies

Extend Waiting For Others [dirtyfrikandel]

This code fixes the following problem when you use the Freeze Selection Timer code by bully ( https://mariokartwii.com/showthread.php?tid=154): If friends in a friend room select a character / vehicle combo, they will see a "Please wait a moment" screen while they wait for you to choose. After around 3,5 minutes, they will get disconnected. The same holds true for voting for a track.  This code prevents that. 

I used this code in during a LAN party. This makes it possible to have a small break between races to get beers / use the toilet etc.


NTSC-U
C25DD37C 00000002
38000001 90030020
60000000 00000000

PAL
C2601C5C 00000002
38000001 90030020
60000000 00000000

NTSC-J
C26013D0 00000002
38000001 90030020
60000000 00000000

NTSC-K
C25F007C 00000002
38000001 90030020
60000000 00000000

Print this item

  Bug found in Codewrite Assembler
Posted by: Vega - 10-06-2023, 04:40 PM - Forum: Coding & Hacking General Discussion - No Replies

Some months ago I had to upgrade my Debian machine which no longer allows me to run Legacy PyiiASMH for cheat code assembling. PyiiASMH3 won't work on my machine at all so I'm left with power-eabi-as (barebones engine you can get from Devkit or GCC), WiiRDGUI, or CodeWrite. Thus I use Codewrite on my machine.

Codewrite does this odd thing of adding arbitrary data to the end of a code if said code contains paired single instructions. For example, let's say we have a code with this 1 instruction in its source

Code:
ps_res f0, f0

Codewrite will assemble this as...

Code:
C2000000 00000004
1000001A 00000008
00000004 00000002
41505569 6E666F00
00420001 00000000

As you can see there's a bunch of appended junk after "1000001A".

However this is *NOT* the bug I am talking about. Yes the junk data being appended is a bug too, but we can simply remove it and alter the byte amount at the top right word (C2 line count) and the code will work fine. In fact, I knew about this junk data issue a long time ago, just never cared to report it because it's so obvious.

The bug here is the assembled word for the ps_res instruction.

ps_res uses a mask of 0x10000030. Thus, regardless of what FPRs you use in the instruction, it's impossible for the result to end in 1A or 1-anything.

This bug also effects ps_res(.). The record dot is enclosed in parenthesis for easy visual notice. 

Open up Codewrite and assemble the following source.

Code:
ps_res f0, f0
ps_res. f0, f0

These 2 instructions should assemble as 0x10000030 and 0x10000031 respectively. However, they don't. 

What's causing this? Here are the possible reasons (1 or both are true)
  • Codewrite uses an outdated/bugged version of the powerpc-eabi-as engine thats included with it
  • Codewrite application itself is modifying the assembled instruction sometime after the engine was executed for whatever reason

Will this bug effect you?
Simply no, afaik there are zero Wii Gecko Codes (in ANY game) that use the ps_res instruction. 

Does Codewrite botch any other instructions?
Nope, I've tested all other (yes all...) Broadway PPC instructions. Zero issues.

Print this item

  Mii Icon Override [Kazuki]
Posted by: Kazuki - 09-30-2023, 03:07 AM - Forum: Visual & Sound Effects - No Replies

Mii Icon Override [Kazuki]

This code replaces a specific Mii specified by Mii ID with a specific icon.
The Mii ID and the icon to be replaced can be specified by modifying brlyt.
Some UIs also require brctr modification. (No further brctr modification is required for the distributed szs)
Only ghost records cannot be replaced due to code specifications.


Code:
(PAL)
c263e3dc 00000027
9421ff80 7c0802a6
90010084 bc610008
48000049 9061fffc
b8610008 80010084
7c0803a6 38210080
8181ff7c 2c0c0000
40820100 4e800020
7c6802a6 7d8803a6
4e800020 7d8802a6
4bfffff1 6d69695f
25303878 00000000
9421ffc8 93a1002c
81250004 54c6103a
7fa9302e 2c1d0000
418200b8 7c0802a6
9001003c 93c10030
93e10034 7c7f1b78
7c9e2378 4bffffb9
7c641b78 80bd0094
38610008 3d208001
61291a2c 7d2903a6
4cc63182 4e800421
38810008 7fe3fb78
3d208063 6129e328
7d2903a6 4e800421
2c030000 40820028
38600001 83c10030
83e10034 8001003c
7c0803a6 546307fe
83a1002c 38210038
4e800020 38a10008
7fc4f378 7fe3fb78
3d208063 6129e0f0
7d2903a6 4e800421
38600000 83c10030
83e10034 8001003c
7c0803a6 4bffffc0
38600001 4bffffb8
9421ffc0 00000000

(NTSC-U)
c260cfbc 00000027
9421ff80 7c0802a6
90010084 bc610008
48000049 9061fffc
b8610008 80010084
7c0803a6 38210080
8181ff7c 2c0c0000
40820100 4e800020
7c6802a6 7d8803a6
4e800020 7d8802a6
4bfffff1 6d69695f
25303878 00000000
9421ffc8 93a1002c
81250004 54c6103a
7fa9302e 2c1d0000
418200b8 7c0802a6
9001003c 93c10030
93e10034 7c7f1b78
7c9e2378 4bffffb9
7c641b78 80bd0094
38610008 3d208001
61290ecc 7d2903a6
4cc63182 4e800421
38810008 7fe3fb78
3d208060 6129cf08
7d2903a6 4e800421
2c030000 40820028
38600001 83c10030
83e10034 8001003c
7c0803a6 546307fe
83a1002c 38210038
4e800020 38a10008
7fc4f378 7fe3fb78
3d208060 6129ccd0
7d2903a6 4e800421
38600000 83c10030
83e10034 8001003c
7c0803a6 4bffffc0
38600001 4bffffb8
9421ffc0 00000000

(NTSC-J)
c263da48 00000027
9421ff80 7c0802a6
90010084 bc610008
48000049 9061fffc
b8610008 80010084
7c0803a6 38210080
8181ff7c 2c0c0000
40820100 4e800020
7c6802a6 7d8803a6
4e800020 7d8802a6
4bfffff1 6d69695f
25303878 00000000
9421ffc8 93a1002c
81250004 54c6103a
7fa9302e 2c1d0000
418200b8 7c0802a6
9001003c 93c10030
93e10034 7c7f1b78
7c9e2378 4bffffb9
7c641b78 80bd0094
38610008 3d208001
61291950 7d2903a6
4cc63182 4e800421
38810008 7fe3fb78
3d208063 6129d994
7d2903a6 4e800421
2c030000 40820028
38600001 83c10030
83e10034 8001003c
7c0803a6 546307fe
83a1002c 38210038
4e800020 38a10008
7fc4f378 7fe3fb78
3d208063 6129d75c
7d2903a6 4e800421
38600000 83c10030
83e10034 8001003c
7c0803a6 4bffffc0
38600001 4bffffb8
9421ffc0 00000000

(NTSC-K) (untested)
c262c6f4 00000027
9421ff80 7c0802a6
90010084 bc610008
48000049 9061fffc
b8610008 80010084
7c0803a6 38210080
8181ff7c 2c0c0000
40820100 4e800020
7c6802a6 7d8803a6
4e800020 7d8802a6
4bfffff1 6d69695f
25303878 00000000
9421ffc8 93a1002c
81250004 54c6103a
7fa9302e 2c1d0000
418200b8 7c0802a6
9001003c 93c10030
93e10034 7c7f1b78
7c9e2378 4bffffb9
7c641b78 80bd0094
38610008 3d208001
61291a94 7d2903a6
4cc63182 4e800421
38810008 7fe3fb78
3d208062 6129c640
7d2903a6 4e800421
2c030000 40820028
38600001 83c10030
83e10034 8001003c
7c0803a6 546307fe
83a1002c 38210038
4e800020 38a10008
7fc4f378 7fe3fb78
3d208062 6129c408
7d2903a6 4e800421
38600000 83c10030
83e10034 8001003c
7c0803a6 4bffffc0
38600001 4bffffb8
9421ffc0 00000000


source and SZSs:
https://dl.dropboxusercontent.com/scl/fi...8z6pa8ixmp

credit:
mkw-sp contributors for UI::MiiGroup class and UI::LayoutUIControl class
https://github.com/mkw-sp/mkw-sp

Print this item

  [LE-CODE] Patch to enable the use of the USB GCN adapter for Riivolution
Posted by: Kazuki - 09-26-2023, 01:25 AM - Forum: Coding & Hacking General Discussion - No Replies

I have created a patch to enable the use of the USB GCN adapter with LE-CODE, based on Chadderz's "brain-slug-wii" module. 
It currently only works with Riivolution, but NOT with USB loader.

Use the second half of the area used for cup setting as additional codes.
Therefore, course slots are limited to 2048.

Unless Wiimm and Leseratte attempt to destroy their Distribution, it is unlikely that there will be any address conflicts with Wiimmfi Patch in the future.

THIS PATCH IS VERY UNSTABLE AND I DO NOT RECOMMEND USING THIS PATCH AT ALL AS AN OFFICIAL RELEASE OF THE CT DISTRIBUTION.
I hope someone will fix this as I don't know how to fix this instability.

https://github.com/kazuki-4ys/le-code-wu...iivolution

Sometimes the GCN controller and the Wii Remotes will not respond at all
when the communication with the Wii Remotes is lost.

(Probably all IOSAsync related functions will die.)

This issue can be avoided by removing the batteries from the Wii Remote after entering the title scene.

Here is a demonstration with Wiimms Mario Kart Fun.

Print this item

Photo Online BRSTM/BCSTM/BFSTM Maker
Posted by: Kazuki - 09-10-2023, 11:44 PM - Forum: Resources and References - No Replies

Online BRSTM/BCSTM/BFSTM Maker
Author: Kazuki

This web page was created on 2022/03/10 as my WebAssembly study.
It is multi-track compatible and can even set loop points while playing back on the fly.
Just recently updated to support BCSTM!
Because it uses WebAssembly, it creates BRSTM/BCSTM/BFSTM faster than BrawlBox/Create, even though it is a web app that runs client-based.
wav, mp3, and ogg are supported as source audio files.

[Image: 2023-09-11_083425.png]

Print this item

  Replace Cow Walk Animation with Unused Run Animation [Ro]
Posted by: _Ro - 09-10-2023, 01:20 AM - Forum: Visual & Sound Effects - No Replies

Replace Cow Walk Animation with Unused Run Animation [Ro]

Silly and useless code, all it does is it replaces the cow walking animation with the unused running animation, seeing in pre-release videos of the game. Basic string replacement.

NTSC-U
0489AC64 72756E00

PAL
0489F334 72756E00

NTSC-J
0489E494 72756E00

NTSC-K
0488D794 72756E00

Code Creator: Ro

Print this item

  Load Disabled Course Objects [Ro]
Posted by: _Ro - 09-09-2023, 11:20 PM - Forum: Offline Non-Item - No Replies

Load Disabled Course Objects [Ro]

This code will load "disabled" course objects.
The course.kmp file (which stores many of the course's specific parameters, such as object placement) has a presence value defined for every object to determine in which instances it should load (for example, should it load in every mode, only on single player and not multiplayer, etc). Certain objects have this value set to 0x00 which disables the object, preventing it to appear in-game and thus going unused. This code makes it so these objects are loaded.
For reference, here's a list of disabled objects: https://tcrf.net/Mario_Kart_Wii/Unused_Course_Elements

NTSC_U working. Other regions untested.

NTSC-U
0481340C 38000001

PAL
04826F20 38000001

NTSC-J
0482658C 38000001

NTSC-K
048152E0 38000001

Code Creator: Ro

Print this item

  Fix for BRSTM with Fewer Audio Tracks [stebler]
Posted by: Kazuki - 09-08-2023, 10:01 PM - Forum: Visual & Sound Effects - Replies (1)

Fix for BRSTM with Fewer Audio Tracks [stebler]

This code prevents the bgm from stopping due to the low number of tracks in BRSTM.

Original code was written by stebler as a part of mkw-sp.

I ported it to gecko code.

It is recommended to use with this code.

NTSC-K is not tested.

(NTSC-U)
c20a4f10 0000001e
7cac2b78 558c463e
718c0080 2c0c0080
40820014 3d807fff
618cffff 7ca56038
480000c4 9421ff80
7c0802a6 90010084
bc610008 48000021
9061fffc b8610008
80010084 7c0803a6
38210080 8061ff7c
4e800020 3d608000
9421ff80 7c0802a6
90010084 bc610008
7ca55b78 3d80800a
618c4f10 7d8803a6
4e800021 9061fffc
b8610008 80010084
7c0803a6 38210080
8181ff7c 2c0c0000
4182000c 38600001
4e800020 3ca08000
9421ff80 7c0802a6
90010084 bc610008
3d80800a 618c4f10
7d8803a6 4e800021
9061fffc b8610008
80010084 7c0803a6
38210080 8061ff7c
4e800020 9421ffe0
60000000 00000000
0409ebd0 38000000


(PAL)
c20a4fb0 0000001e
7cac2b78 558c463e
718c0080 2c0c0080
40820014 3d807fff
618cffff 7ca56038
480000c4 9421ff80
7c0802a6 90010084
bc610008 48000021
9061fffc b8610008
80010084 7c0803a6
38210080 8061ff7c
4e800020 3d608000
9421ff80 7c0802a6
90010084 bc610008
7ca55b78 3d80800a
618c4fb0 7d8803a6
4e800021 9061fffc
b8610008 80010084
7c0803a6 38210080
8181ff7c 2c0c0000
4182000c 38600001
4e800020 3ca08000
9421ff80 7c0802a6
90010084 bc610008
3d80800a 618c4fb0
7d8803a6 4e800021
9061fffc b8610008
80010084 7c0803a6
38210080 8061ff7c
4e800020 9421ffe0
60000000 00000000
0409ec70 38000000


(NTSC-J)
c20a4ed0 0000001e
7cac2b78 558c463e
718c0080 2c0c0080
40820014 3d807fff
618cffff 7ca56038
480000c4 9421ff80
7c0802a6 90010084
bc610008 48000021
9061fffc b8610008
80010084 7c0803a6
38210080 8061ff7c
4e800020 3d608000
9421ff80 7c0802a6
90010084 bc610008
7ca55b78 3d80800a
618c4ed0 7d8803a6
4e800021 9061fffc
b8610008 80010084
7c0803a6 38210080
8181ff7c 2c0c0000
4182000c 38600001
4e800020 3ca08000
9421ff80 7c0802a6
90010084 bc610008
3d80800a 618c4ed0
7d8803a6 4e800021
9061fffc b8610008
80010084 7c0803a6
38210080 8061ff7c
4e800020 9421ffe0
60000000 00000000
0409EB90 38000000


(NTSC-K)
c20a5010 0000001e
7cac2b78 558c463e
718c0080 2c0c0080
40820014 3d807fff
618cffff 7ca56038
480000c4 9421ff80
7c0802a6 90010084
bc610008 48000021
9061fffc b8610008
80010084 7c0803a6
38210080 8061ff7c
4e800020 3d608000
9421ff80 7c0802a6
90010084 bc610008
7ca55b78 3d80800a
618c5010 7d8803a6
4e800021 9061fffc
b8610008 80010084
7c0803a6 38210080
8181ff7c 2c0c0000
4182000c 38600001
4e800020 3ca08000
9421ff80 7c0802a6
90010084 bc610008
3d80800a 618c5010
7d8803a6 4e800021
9061fffc b8610008
80010084 7c0803a6
38210080 8061ff7c
4e800020 9421ffe0
60000000 00000000
0409ecd0 38000000


Code:
#Source

#First ASM

#inject at 0x800a4f10 (NTSC-U)
#inject at 0x800a4fb0 (PAL)
#inject at 0x800a4ed0 (NTSC-J)
#inject at 0x800a5010 (NTSC-K)

.macro call_link address
lis r12, \address@h
ori r12, r12, \address@l
mtlr r12
blrl
.endm

.macro pushStack
    stwu sp, -0x80 (sp)
    mflr r0
    stw r0, 0x84 (sp)
    stmw r3, 8 (sp)
.endm

.macro popStack
    lmw r3, 8 (sp)
    lwz r0, 0x84 (sp)
    mtlr r0
    addi sp, sp, 0x80
.endm

.set region, 'K'

.if (region == 'P')
    .set nw4r__snd__StrmFileReader__readStrmTrackInfo, 0x800a4fb0
.elseif (region == 'E')
    .set nw4r__snd__StrmFileReader__readStrmTrackInfo, 0x800a4f10
.elseif (region == 'J')
    .set nw4r__snd__StrmFileReader__readStrmTrackInfo, 0x800a4ed0
.elseif (region == 'K')
    .set nw4r__snd__StrmFileReader__readStrmTrackInfo, 0x800a5010
.else
        .err
.endif

    mr r12, r5
    rlwinm  r12, r12, 8, 24, 31
    andi. r12, r12, 0x80
    cmpwi r12, 0x80
    bne not_default_behave
    lis r12, 0x7FFF
    ori r12, r12, 0xFFFF
    and r5, r5, r12
    b skip_all
    not_default_behave:
    pushStack
    bl strmTrackInfoReadHook
    stw r3, -4 (sp)
    popStack
    lwz r3, -0x84 (sp)
    blr
strmTrackInfoReadHook:
    lis r11, 0x8000
    pushStack
    #r3 = this pointer (nw4r::snd::StrmFileReader)
    #r4 = pointer to soundInfo
    #r5 = trackId
    or r5, r5, r11
    call_link nw4r__snd__StrmFileReader__readStrmTrackInfo
    stw r3, -4 (sp)
    popStack
    lwz r12, -0x84 (sp)
    cmpwi r12, 0
    beq read_track_0
    li r3, 1
    blr
    read_track_0:
    lis r5, 0x8000
    pushStack
    call_link nw4r__snd__StrmFileReader__readStrmTrackInfo
    stw r3, -4 (sp)
    popStack
    lwz r3, -0x84 (sp)
    blr
skip_all:
    stwu sp, -0x20 (sp) #default instruction

Code:
#Source

#Second ASM
#fix STRM params alloc channel count for brsar to 0

#replace at 0x8009ebd0 (NTSC-U)
#replace at 0x8009ec70 (PAL)
#replace at 0x8009eb90 (NTSC-J)
#replace at 0x8009ecd0 (NTSC-K)

li r0, 0

Print this item

  Super Ultrawide MK-Wii Code possible?
Posted by: Sonic552 - 08-23-2023, 01:04 AM - Forum: Code Support / Help / Requests - No Replies

Hi there, 

this code is for widescreen 21:9

2.35:1 animorphic widescreen [Davidevgen NTSC-U]
change the FFAD000 to change the screen appearance optional.
048B053C 3FAAD000

Credited to Davidevgen

I want to know if the code can be edited to get a 32:9 code for (3840x1080)

I have no clue how to code myself. Anyways how big of a task is it?

Print this item