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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 645
» Latest member: tiktokexpert
» Forum threads: 1,814
» Forum posts: 13,999

Full Statistics

Online Users
There are currently 87 online users.
» 1 Member(s) | 84 Guest(s)
Bing, Google, _Ro

Latest Threads
Show Ice Cube on Online P...
Forum: Online Non-Item
Last Post: _Ro
4 hours ago
» Replies: 0
» Views: 20
CPU Control Cycler [Ro]
Forum: Offline Non-Item
Last Post: _Ro
4 hours ago
» Replies: 7
» Views: 988
Thunder Cloud Effect Modi...
Forum: Offline; Item
Last Post: JerryHatrick
Yesterday, 11:13 PM
» Replies: 11
» Views: 1,064
MKW Coder/Developer of th...
Forum: Coding & Hacking General Discussion
Last Post: Vega
Yesterday, 09:10 PM
» Replies: 10
» Views: 13,817
Make it to 10,000
Forum: General Discussion
Last Post: Vega
Yesterday, 08:15 PM
» Replies: 7,338
» Views: 5,669,767
Miniturbos and Inside Dri...
Forum: Coding & Hacking General Discussion
Last Post: JerryHatrick
Yesterday, 09:54 AM
» Replies: 1
» Views: 856
Code request???
Forum: Code Support / Help / Requests
Last Post: DrTap
01-09-2025, 06:06 PM
» Replies: 3
» Views: 4,952
CPUs/Online Players Have ...
Forum: Visual & Sound Effects
Last Post: Zeraora
01-09-2025, 02:26 AM
» Replies: 2
» Views: 501
Offline Hide and Seek
Forum: Code Support / Help / Requests
Last Post: FelX
01-08-2025, 03:43 PM
» Replies: 11
» Views: 732
Show Nametags During Coun...
Forum: Visual & Sound Effects
Last Post: _Ro
01-08-2025, 07:48 AM
» Replies: 1
» Views: 666

 
  Engine Class Modifier [Leseratte]
Posted by: Vega - 02-10-2019, 08:00 PM - Forum: Offline Non-Item - No Replies

Engine Class Modifier [Leseratte]

This code allows you to adjust the speed of every CC Mode. W values are for 50cc Mode. X for 100cc Mode. Y for 150/Mirror. Z for Battle.

NTSC-U
048B1414 WWWWWWWW
048B1418 XXXXXXXX
048B141C YYYYYYYY
048B1420 ZZZZZZZZ

PAL
048B5CD4 WWWWWWWW
048B5CD8 XXXXXXXX
048B5CDC YYYYYYYY
048B5CE0 ZZZZZZZZ

NTSC-J
048B4E34 WWWWWWWW
048B4E38 XXXXXXXX
048B4E3C YYYYYYYY
048B4E40 ZZZZZZZZ

NTSC-K
048A414C WWWWWWWW
048A4150 XXXXXXXX
048A4154 YYYYYYYY
048A4158 ZZZZZZZZ

Example Values:
3F4CCCCD = 0.8 = 50cc Speed
3F666666 = 0.9 = 100cc Speed
3F800000 = 1.0 = 150cc/Mirror Speed
3F333333 = 0.7 = Battle Speed

Code creator: Leseratte

Print this item

  Draw Text To Screen [Star / Riidefi]
Posted by: Star - 02-09-2019, 02:29 AM - Forum: Incomplete & Outdated Codes - Replies (1)

Draw Text To Screen [Star / Riidefi]

This code will display the specified text on the television screen.

(NTSC-U)
C200A3F0 00000007
9421FF80 BC410008
806DA358 80630044
80630000 3D808002
618C23E0 7D8903A6
4E800421 B8410008
38210080 80010014
60000000 00000000
C2009640 0000000E
9421FF80 BC410008
38600000 388000DC
38A00001 4800002D
44726177 20546578
7420546F 20536372
65656E20 62792053
74617220 26205269
69646566 69000000
7CC802A6 3FE08002
63EC1DF0 7D8903A6
4E800421 63EC1DD0
7D8903A6 4E800421
B8410008 38210080
81830000 00000000

(PAL)
C200A430 00000007
9421FF80 BC410008
806DA360 80630044
80630000 3D808002
618C2480 7D8903A6
4E800421 B8410008
38210080 80010014
60000000 00000000
C2009680 0000000E
9421FF80 BC410008
38600000 388000DC
38A00001 4800002D
44726177 20546578
7420546F 20536372
65656E20 62792053
74617220 26205269
69646566 69000000
7CC802A6 3FE08002
63EC1E90 7D8903A6
4E800421 63EC1E70
7D8903A6 4E800421
B8410008 38210080
81830000 00000000

(NTSC-J)
C200A38C 00000007
9421FF80 BC410008
806DA360 80630044
80630000 3D808002
618C23A0 7D8903A6
4E800421 B8410008
38210080 80010014
60000000 00000000
C20095DC 0000000E
9421FF80 BC410008
38600000 388000DC
38A00001 4800002D
44726177 20546578
7420546F 20536372
65656E20 62792053
74617220 26205269
69646566 69000000
7CC802A6 3FE08002
63EC1DB0 7D8903A6
4E800421 63EC1D90
7D8903A6 4E800421
B8410008 38210080
81830000 00000000

(NTSC-K)
C200A538 00000007
9421FF80 BC410008
806DA380 80630044
80630000 3D808002
618C24E0 7D8903A6
4E800421 B8410008
38210080 80010014
60000000 00000000
C2009788 0000000E
9421FF80 BC410008
38600000 388000DC
38A00001 4800002D
44726177 20546578
7420546F 20536372
65656E20 62792053
74617220 26205269
69646566 69000000
7CC802A6 3FE08002
63EC1EF0 7D8903A6
4E800421 63EC1ED0
7D8903A6 4E800421
B8410008 38210080
81830000 00000000

Code:
#============================================================#
#                          Source                            #
#------------------------------------------------------------#
# bLoadStaticRel Function Return Address Ports:              #
# RMCE - 0x8000A3F0                                          #
# RMCP - 0x8000A430                                          #
# RMCJ - 0x8000A38C                                          #
# RMCK - 0x8000A538                                          #
#============================================================#

.macro push_stack size, registers
      stwu r1, \size(r1)
      stmw \registers, 8(r1)
.endm

.macro absolute_bl register, address
      lis \register, \address@h
      ori \register, \register, \address@l
      mtctr \register
      bctrl
.endm

.macro pop_stack registers, size
      lmw \registers, 8(r1)
      addi r1, r1, \size
.endm

.set region, ''

.if     (region == 'E' || region == 'e') # RMCE
        .set nw4r_db_DirectPrint_SetupFB, 0x800223E0
.elseif (region == 'P' || region == 'p') # RMCP
        .set nw4r_db_DirectPrint_SetupFB, 0x80022480
.elseif (region == 'J' || region == 'j') # RMCJ
        .set nw4r_db_DirectPrint_SetupFB, 0x800223A0
.elseif (region == 'K' || region == 'k') # RMCK
        .set nw4r_db_DirectPrint_SetupFB, 0x800224E0
.else # Invalid Region
        .abort
.endif

# Function Prologue...
push_stack -128, r2

# Get the Render Mode (RKSystem->m_pVideo->m_pRenderMode)
.if     (region == 'E' || region == 'e') # RMCE
        lwz r3, -0x5CA8(r13)
.elseif (region == 'P' || region == 'p') # RMCP
        lwz r3, -0x5CA0(r13)
.elseif (region == 'J' || region == 'j') # RMCJ
        lwz r3, -0x5CA0(r13)
.elseif (region == 'K' || region == 'k') # RMCK
        lwz r3, -0x5C80(r13)
.endif

lwz r3, 0x44(r3)
lwz r3, 0(r3)

# Call nw4r::db::DirectPrint_SetupFB
absolute_bl r12, nw4r_db_DirectPrint_SetupFB

# Function Epilogue...
pop_stack r2, 128

# Original Instruction
lwz r0, 20(r1)

#============================================================#
#                          Source                            #
#------------------------------------------------------------#
# Draw Debug Bar Call Address Ports:                         #
# RMCE - 0x80009640                                          #
# RMCP - 0x80009680                                          #
# RMCJ - 0x800095DC                                          #
# RMCK - 0x80009788                                          #
#============================================================#

.macro push_stack size, registers
      stwu r1, \size(r1)
      stmw \registers, 8(r1)
.endm

.macro DirectPrint_absolute_bl register, address
      ori \register, r31, \address@l
      mtctr \register
      bctrl
.endm

.macro pop_stack registers, size
      lmw \registers, 8(r1)
      addi r1, r1, \size
.endm

.set region, ''

.if     (region == 'E' || region == 'e') # RMCE
        .set nw4r_db_DirectPrint_Printf, 0x80021DF0
        .set nw4r_db_DirectPrint_StoreCache, 0x80021DD0
.elseif (region == 'P' || region == 'p') # RMCP
        .set nw4r_db_DirectPrint_Printf, 0x80021E90
        .set nw4r_db_DirectPrint_StoreCache, 0x80021E70
.elseif (region == 'J' || region == 'j') # RMCJ
        .set nw4r_db_DirectPrint_Printf, 0x80021DB0
        .set nw4r_db_DirectPrint_StoreCache, 0x80021D90
.elseif (region == 'K' || region == 'k') # RMCK
        .set nw4r_db_DirectPrint_Printf, 0x80021EF0
        .set nw4r_db_DirectPrint_StoreCache, 0x80021ED0
.else # Invalid Region
        .abort
.endif

# Function Prologue...
push_stack -128, r2

li r3, 0   # X coordinate of text start
li r4, 220 # Y coordinate of text start
li r5, 1   # Wrap text

bl branch_link_write_printf_statement

.string "Draw Text To Screen by Star & Riidefi\0\0"

branch_link_write_printf_statement:
mflr r6 # Store the pointer to the String into r6

lis r31, 0x8002

# Call nw4r::db::DirectPrint_Printf
DirectPrint_absolute_bl r12, nw4r_db_DirectPrint_Printf

# Call nw4r::db::DirectPrint_StoreCache
DirectPrint_absolute_bl r12, nw4r_db_DirectPrint_StoreCache

# Function Epilogue...
pop_stack r2, 128

# Original Instruction
lwz r12, 0(r3)

Notes:
- The text will flicker since we only set up 1 of the 2 framebuffers to be output to via DirectPrint.

Code Creators: Star, Riidefi

Print this item

  Drop Luma [Dea]
Posted by: Vega - 02-08-2019, 08:57 PM - Forum: Offline Non-Item - No Replies

Drop Luma [Dea]

Equip this code with some sort of drop item hack and have the item value of that drop item hack set to Star. When you use your dropped item hack for star, you will drop Rosalina's Luma. You can pick it up and be activated in a Star.

NTSC-U
048A1490 7469636F

PAL
048A61C0 7469636F

NTSC-J
048A5320 7469636F

NTSC-K
04894620 7469636F

Code creator: Dea

Print this item

  Force 30 FPS [Nick Reynolds]
Posted by: Vega - 02-08-2019, 08:22 PM - Forum: Misc/Other - Replies (4)

Force 30 FPS [Nick Reynolds]

This code is a MUST have if your Dolphin (on Android) seems to almost be good enough to run at 60 fps but isn't quite there. The code will force the game to cap the FPS at 30, which can make your dolphin emulation no longer drop frames.

NTSC-U
004250D4 00000002
0029FD69 00000002

PAL
00429454 00000002
002A40E9 00000002

NTSC-J
00428DD4 00000002
002A3A69 00000002

NTSC-K
00417474 00000002
002920E9 00000002

Code creator: Nick Reynolds

Print this item

  Deception [XeR]
Posted by: Vega - 02-06-2019, 07:27 PM - Forum: Online Non-Item - No Replies

Deception [XeR]

This code will deceive your opponents in regards to your location on their mini map. You will show a false mini map location. Thus causing you to not show on the track on everyone's screen.

NTSC-U
04586358 7C6802A6

PAL
0458CB7C 7C6802A6

NTSC-J
0458C4FC 7C6802A6

NTSC-K
0457ABD4 7C6802A6

Code creator: XeR

Print this item

  Lap Modifier [MrBean]
Posted by: Vega - 02-06-2019, 06:54 PM - Forum: Offline Non-Item - No Replies

Lap Modifier [MrBean]

This code is needed when wanting to SZS edit the lap amount of a desired track(s). A mini guide of how to edit the lap amount of a track is provided further below.

NTSC-U
C252DD68 00000005
3CA0809C 80A58F28
80A5003C 80A50000
80A50000 80A50000
88050000 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

PAL
C25328B0 00000005
3CA0809C 80A5D6E8
80A5003C 80A50000
80A50000 80A50000
88050000 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

NTSC-J
C2532230 00000005
3CA0809C 80A5C748
80A5003C 80A50000
80A50000 80A50000
88050000 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

NTSC-K
C2520908 00000005
3CA0809B 80A5BD28
80A5003C 80A50000
80A50000 80A50000
88050000 98040B8D
60000000 00000000
04521710 60000000
045223A8 60000000
04522C14 60000000
047120B8 281D0009
047120E8 3BA00009
C27120F8 00000007
4800002D 00000000
00000000 00000000
3F800000 40000000
40400000 40800000
40A00000 40C00000
40E00000 7CA802A6
38800003 00000000




Mini Guide to edit Lap amount of Track:

wit extract /path/of/your/game/nameofgame.wbfs 
wszst patch /path/of/track/szsfile/trackname.szs --kmp XLAPS

For list of szs file track names, view this thread - http://mkwii.com/showthread.php?tid=275

X = Lap Amount

If X value is 1, use 1LAP for wszst command instead of 1LAPS.

X can be any value from 1 thru 9. If you use 9, the game will display the incorrect lap amount (will show 8), but the game will still function correctly and require 9 laps to finish the track.

wit copy /path/of/extractedwbfs/rootdirectory /path/to/destination/newgame.wbfs




Code creator: MrBean
Code credits: Geeh, MrEvil

Print this item

  Disable Data Save Reset For Region ID Change [Vega]
Posted by: Vega - 01-29-2019, 06:50 PM - Forum: Misc/Other - No Replies

Disable Data Save Reset For Region ID Change [Vega]

Whenever you change your Region ID (legitimately or on certain Region ID codes), you will be notified by the game that region settings have changed then you will have to wipe your data save or go back to the Wii Main Menu. This code disables that annoyance entirely.

NTSC-U
0453F3EC 7C601B78

PAL
04544928 7C601B78

NTSC-J
045442A8 7C601B78

NTSC-K
04532980 7C601B78

'Source'
'rlwinm r0,r0,20,28,31' instruction changed to 'mr r0, r3'

Code creator: Vega

Print this item

  Permanently Hex Edit Your Region ID Algorithm in an ISO/WBFS File
Posted by: Vega - 01-29-2019, 02:28 AM - Forum: Other - No Replies

Permanently Hex Edit Your Region ID Algorithm in an ISO/WBFS File

Guide is designed for Linux Users utilizing Wiimm's Tools. HxD hex editor is used for this guide. Linux Users must have Wine installed to run HxD as HxD is natively for Windows.

For the ocarina cheat code version of this, go HERE






This guide will show you where the byte of the Region ID is written in the main.dol. Thus, this allows you to truely change your region ID to via the 'proper' method if you will. The game writes your Region ID very early in the main.dol via a Load Immediate function. With the American Game and Korean Game, there is only one byte to edit. With the Japan, and PAL Games, there are two bytes to edit. For the Japan Game, there is a byte result for not using Taiwan country code, and a byte result when you are using Taiwan Country Code. For the PAL Game, there is a byte result for now using Australia/New Zealand country code, and a byte result result when you are using Australia/NEW Zealand country code.

This thread is for those who want to make the region ID algorithm modifier permanent. This could be useful is somebody was making their own Implied Chinese ISO (like I did in the past), and edit the region ID of w/e ISO you are using to always output China Region ID #6.






Let's say you are doing this for USA wbfs file named USA.wbfs, and your USA ISO is located /home/user/games. First extract USA.wbfs. Open up a Terminal....

wit extract /home/user/games/USA.wbfs /home/user/newfolder

NOTE: Do NOT create 'newfolder' directory beforehand or else an error will occur. WIT Tools will create it for you.

If your ISO/WBFS is NOT scrubbed (has all its partitions), the main.dol is located at..

/home/user/newfolder/DATA/sys/main.dol

If your ISO.WBFS is scrubbed, the main.dol is lcoated at...

/home/user/newfolder/sys/main.dol



Open up HxD, open up your main.dol

Here are the Region ID Algorithm Result Byte main.dol address locations for each MKW game...

RMCE01 game:
0x00006113 (default is 01)

RMCP01 game:
NOT using AUS/NZ Country Codde: 0x0000614F (default is 02)

Using AUS/NZ Country Code: 0x000061AF (default is 03)

RMCJ01 game:
NOT Using TWN Country Code: 0x000060A3 (default is 00)

Using TWN Country Code: 0x000060D3 (default is 04)

RMCK01 game:
0x0000625F (default is 05)

Simply edit the byte(s) to any desired region ID value.

00 = Japan (red line)
01 = Americas (blue line)
02 = Europe (green line)
03 = AUS/NZ (yellow line)
04 = Taiwan (white line)
05 = S. Korea (purple line)
06 = China (white line)



For this tutorial we want our Region ID on our USA iso to be Japan (red line), so we change our byte value from 01 to 00.

Once you have made your changes, save them. A backup copy of the original version of the main.dol (named main.dol.bak), will be saved alongside your new edited main.dol. Delete it for move it somewhere for safekeeping if desired.

Open up terminal again if you still don't have one up... Time to recompile our wbfs file

wit copy ./newfolder /home/user/newUSA.wbfs

newUSA.wbfs is now compiled, throw it on a USB, or launch it on Dolphin. You will be asked to create a new data save, because the region settings have been changed. Make a new data save, go online, start/join a race. You will see that you have the red line (Japan region ID).

Print this item

  Remove Mushroom Bug [Vega]
Posted by: Vega - 01-28-2019, 08:41 PM - Forum: Incomplete & Outdated Codes - No Replies

Remove Mushroom Bug [Vega]

NOTE: Outdated by my 8 bit version in main Codes forum

The mushroom bug is a 'feature' implemented in the game to give you a mushroom for your 16th item, 18th, and 20th plus beyond regardless of your position when picking up an item box. This code removes that 'feature'.

NTSC-U
047AB6BC 38000000

PAL
047BA11C 38000000

NTSC-J
047B9788 38000000

NTSC-K
047A84DC 38000000

Code creator: Vega

Print this item

  Mushroom Bug Item Modifier [Vega]
Posted by: Vega - 01-28-2019, 07:52 PM - Forum: Online; Item - No Replies

Mushroom Bug Item Modifier [Vega]

The mushroom bug is a 'feature' implemented in the game to give you a mushroom for your 17th item, and also continually give you mushrooms nonstop for your 19th item and beyond.  This code allows you modify what item to get from the Mushroom Bug instead of a single mushroom.

NTSC-U
007AB6DB 000000XX

PAL
007BA13B 000000XX

NTSC-J
007B97A7 000000XX

NTSC-K
007A84FB 000000XX

XX = Item Value

XX Values:
00 = Green Shell
01 = Red Shell
02 = Banana
03 = Fib
04 = Shroom (default value)
05 = Triple Shrooms
06 = Bomb
07 = Blue Shell
08 = Shock
09 = Star
0A = Golden
0B = Mega
0C = Blooper
0D = POW
0E = TC
0F = Bullet Bill
10 = Triple Greens
11 = Triple Reds
12 = Triple Nanas

Code creator: Vega

Print this item