MKDS Star Character Animation [Ro]
#1
MKDS Star Character Animation [Ro]

This code will make your character animated (item hit success, win animation is broken) when you are in a Star, similarly to Mario Kart DS's character animation when in a star. It is done by modifying what loads the damage animation to execute the damage animation when in a star, and also when hit, and then load a different animation if in a star. As mentioned above, the win animation breaks - it resets when another animation is about to start and it will only stop the animation (after star ends) when another animation starts. No other animations can happen during the process of the star animation.

This code is poorly done andwritten and had me confused on why the other ways I tried didn't worked, so I am releasing it in the only way I got to work. Tips and helps are highly appreciated.

NTSC-U:
C27BCCC4 00000004
80040008 54000001
4182000C 38000001
48000008 80040008
60000000 00000000
C27BCD0C 00000004
80040008 54000001
4182000C 38800014
48000008 3880001A
60000000 00000000


PAL (Untested):
C27CB724 00000004
80040008 54000001
4182000C 38000001
48000008 80040008
60000000 00000000
C27CB76C 00000004
80040008 54000001
4182000C 38800014
48000008 3880001A
60000000 00000000


NTSC-J (Untested):
C27CAD90 00000004
80040008 54000001
4182000C 38000001
48000008 80040008
60000000 00000000
C27CADD8 00000004
80040008 54000001
4182000C 38800014
48000008 3880001A
60000000 00000000

NTSC-K (Untested):
C27B9AE4 00000004
80040008 54000001
4182000C 38000001
48000008 80040008
60000000 00000000
C27B9B2C 00000004
80040008 54000001
4182000C 38800014
48000008 3880001A
60000000 00000000

Code:
Play Animation
Write to:
NTSC-U: 807BCCC4
PAL: 807CB724
NTSC-J: 807CAD90
NTSC-K: 807B9AE4

lwz r0, 8(r4) #Loads player status
rlwinm. r0, r0, 0, 0, 0 #Checks if player status is star
beq notIn #If not in a star, skip to original instruction (or else breaks, idk why)
li r0, 1 #Load 1 if in star (the address below checks for it to load damage animation)
b end #Skip original instruction
notIn: #Label name for original instruction
lwz r0, 8(r4) #Original instruction
end: #End of function (return)



Animation Replacement
Write to:
NTSC-U: 807BCD0C
PAL: 807CB76C
NTSC-J: 807CADD8
NTSC-K: 807B9B2C

lwz r0, 8(r4) #Loads player status
rlwinm. r0, r0, 0, 0, 0 #Checks if player status is star
beq notIn #If not in a star, skip to original instruction (or else breaks, idk why)
li r4, 0x14 #Loads item hit success animation
b end #Skip original instruction
notIn: #Label name for original instruction
li r4, 0x1A #Original instruction
end: #End of function (return)

Code by: Ro
Code credits: Skullface (for the address) and mdmwii for animation values
Reply


Messages In This Thread
MKDS Star Character Animation [Ro] - by _Ro - 03-05-2022, 05:51 AM
RE: MKDS Star Character Animation [Ro] - by Seeky - 03-05-2022, 02:55 PM
RE: MKDS Star Character Animation [Ro] - by _Ro - 03-05-2022, 04:11 PM
RE: MKDS Star Character Animation [Ro] - by Seeky - 03-05-2022, 05:47 PM
RE: MKDS Star Character Animation [Ro] - by Vega - 03-06-2022, 01:07 AM
RE: MKDS Star Character Animation [Ro] - by _Ro - 03-06-2022, 08:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)