Results Screen - Hold Z for Clapping Win Animation

Achilles1515

Moderator
Moderator
Joined
Jun 18, 2007
Messages
3,211
Location
Cincinnati / Columbus OH
#1
Results Screen - Hold Z for Clapping Win Animation (1.02) [Achilles]
Code:
C20BEAD4 00000006
809D0008 2C040003
40800024 3C60804C
60631FAC 899F006C
1D8C0044 7D8C182E
558306F7 41820008
38800004 00000000



By "clapping" I just mean the losing animation, which is clapping for most characters.

Code:
Hold Z for clapping [losing] win animation
inject @ 800bead4

#default, load win ID
lwz r4,8(r29)
#if not winning, then ignore
cmpwi r4,3
bge- END
lis r3,0x804c
ori r3,r3,0x1fac
#load player slot
lbz r12,0x6c(r31)
mulli r12,r12,0x44
#load buttons pressed during this frame
lwzx r12,r12,r3
#pressing Z?
rlwinm. r3,r12,0,27,27
#if not, then ignore
beq- END
#load losing animation ID
li r4,4
END:
 
Last edited:

MeleePlayer5

Smash Rookie
Joined
Nov 25, 2015
Messages
2
#4
Here is a DOL mod I made for this code (version 1.2):

@BB6B4
809D0008 -> 4BF44B58

@62C
809D0008 2C040003
40800024 3C60804C
60631FAC 899F006C
1D8C0044 7D8C182E
558306F7 41820008
38800004 480BB480
 

DRGN

Technowizard
Moderator
Premium
Joined
Aug 20, 2005
Messages
2,029
Location
Sacramento, CA
#5
I tried converting this to the other game versions (primarily for PAL, for ***Justice*** ***Justice*** ), but didn't have any luck. I first converted the RAM address for the injection to the DOL offsets, which is 0xBB6B4 for all game versions. But the code in these locations varies, so I did a search for the actual code at the v1.02 location in the other versions, and found one occurrence of the same code in PAL at 0xBBE50.

upload_2016-1-4_1-38-7.png


But using that to create the mod below didn't work (the game seems to work fine, but holding Z gives no different win animation).

-==-


Results Screen - Hold Z for Clapping Win Animation
i.e. the losing animation, which is clapping for most characters.
[Achilles]
Version -- DOL Offset ------ Hex to Replace ---------- ASM Code
1.02 ----- 0x800BEAD4 --- 809D0008 -> Branch

809D0008 2C040003
40800024 3C60804C
60631FAC 899F006C
1D8C0044 7D8C182E
558306F7 41820008
38800004 00000000


1.01 ------ 0xBB440 ---- 809D0008 -> Branch

809D0008 2C040003
40800024 3C60804C
60631FAC 899F006C
1D8C0044 7D8C182E
558306F7 41820008
38800004 00000000


1.00 ------ 0xBB2FC ---- 809D0008 -> Branch

809D0008 2C040003
40800024 3C60804C
60631FAC 899F006C
1D8C0044 7D8C182E
558306F7 41820008
38800004 00000000


PAL ------- 0xBBE50 ---- 809D0008 -> Branch

809D0008 2C040003
40800024 3C60804C
60631FAC 899F006C
1D8C0044 7D8C182E
558306F7 41820008
38800004 00000000

Is there something specific in this code that doesn't work with the other game versions, or am I missing something? The v1.01 variation didn't work either. Haven't tried v1.00.
 

***Justice***

Smash Journeyman
Joined
Dec 10, 2014
Messages
443
Location
Middle of Nowhere
#6
I tried converting this to the other game versions (primarily for PAL, for ***Justice*** ***Justice*** ), but didn't have any luck. I first converted the RAM address for the injection to the DOL offsets, which is 0xBB6B4 for all game versions. But the code in these locations varies, so I did a search for the actual code at the v1.02 location in the other versions, and found one occurrence of the same code in PAL at 0xBBE50.

View attachment 90765

But using that to create the mod below didn't work (the game seems to work fine, but holding Z gives no different win animation).

-==-


Results Screen - Hold Z for Clapping Win Animation
i.e. the losing animation, which is clapping for most characters.
[Achilles]
Version -- DOL Offset ------ Hex to Replace ---------- ASM Code
1.02 ----- 0x800BEAD4 --- 809D0008 -> Branch

809D0008 2C040003
40800024 3C60804C
60631FAC 899F006C
1D8C0044 7D8C182E
558306F7 41820008
38800004 00000000


1.01 ------ 0xBB440 ---- 809D0008 -> Branch

809D0008 2C040003
40800024 3C60804C
60631FAC 899F006C
1D8C0044 7D8C182E
558306F7 41820008
38800004 00000000


1.00 ------ 0xBB2FC ---- 809D0008 -> Branch

809D0008 2C040003
40800024 3C60804C
60631FAC 899F006C
1D8C0044 7D8C182E
558306F7 41820008
38800004 00000000


PAL ------- 0xBBE50 ---- 809D0008 -> Branch

809D0008 2C040003
40800024 3C60804C
60631FAC 899F006C
1D8C0044 7D8C182E
558306F7 41820008
38800004 00000000

Is there something specific in this code that doesn't work with the other game versions, or am I missing something? The v1.01 variation didn't work either. Haven't tried v1.00.

Thanks for your efforts! i really appreciate it!!
 

SinsOfApathy

Smash Journeyman
Joined
Feb 24, 2015
Messages
444
NNID
Psion312
#7
Is there something specific in this code that doesn't work with the other game versions, or am I missing something? The v1.01 variation didn't work either. Haven't tried v1.00.
Probably the fact that 0x804C1FAC isn't the location for P1 inputs across versions. According to Magus's debug display, it's 804BFE08 for 1.0.
 
Last edited:

Ph1l

Smash Cadet
Joined
Aug 10, 2015
Messages
32
#8
Results Screen - Hold Z for Clapping Win Animation (1.02) [Achilles]
Code:
C20BEAD4 00000006
809D0008 2C040003
40800024 3C60804C
60631FAC 899F006C
1D8C0044 7D8C182E
558306F7 41820008
38800004 00000000



By "clapping" I just mean the losing animation, which is clapping for most characters.

Code:
Hold Z for clapping [losing] win animation
inject @ 800bead4

#default, load win ID
lwz r4,8(r29)
#if not winning, then ignore
cmpwi r4,3
bge- END
lis r3,0x804c
ori r3,r3,0x1fac
#load player slot
lbz r12,0x6c(r31)
mulli r12,r12,0x44
#load buttons pressed during this frame
lwzx r12,r12,r3
#pressing Z?
rlwinm. r3,r12,0,27,27
#if not, then ignore
beq- END
#load losing animation ID
li r4,4
END:
Just out of curiosity, is it possible to make custom results screen animations?
 

flieskiller

Smash Journeyman
Joined
Jan 3, 2013
Messages
426
#9
Just out of curiosity, is it possible to make custom results screen animations?
If you can make a single custom animation, you could make any custom animations, including the victory ones. It's just needed to be found how to do that.
 

DRGN

Technowizard
Moderator
Premium
Joined
Aug 20, 2005
Messages
2,029
Location
Sacramento, CA
#10
Probably the fact that 0x804C1FAC isn't the location for P1 inputs across versions. According to Magus's debug display, it's 804BFE08 for 1.0.
Thanks. I'd bet that that's it.

I tried to find the controller input addresses for the other game versions, but ran into some strangeness. I booted up v1.02 in Debug Dolphin, held up and to the right on the main stick, and B, and paused dolphin. However, I don't see any changes in memory at 0x804C1FAC. All 0x44 of the space is zeroed out. Dumping the ram shows the same. I was going to use that data to search for the addresses in ram dumps of the other versions (holding the same button input).

Anyone know what might be going on here?
 

Achilles1515

Moderator
Moderator
Joined
Jun 18, 2007
Messages
3,211
Location
Cincinnati / Columbus OH
#11
Thanks. I'd bet that that's it.

I tried to find the controller input addresses for the other game versions, but ran into some strangeness. I booted up v1.02 in Debug Dolphin, held up and to the right on the main stick, and B, and paused dolphin. However, I don't see any changes in memory at 0x804C1FAC. All 0x44 of the space is zeroed out. Dumping the ram shows the same. I was going to use that data to search for the addresses in ram dumps of the other versions (holding the same button input).

Anyone know what might be going on here?
Idk.

For PAL, the 804c1fac equivalent is 804B302C.
 

SinsOfApathy

Smash Journeyman
Joined
Feb 24, 2015
Messages
444
NNID
Psion312
#12
Thanks. I'd bet that that's it.

I tried to find the controller input addresses for the other game versions, but ran into some strangeness. I booted up v1.02 in Debug Dolphin, held up and to the right on the main stick, and B, and paused dolphin. However, I don't see any changes in memory at 0x804C1FAC. All 0x44 of the space is zeroed out. Dumping the ram shows the same. I was going to use that data to search for the addresses in ram dumps of the other versions (holding the same button input).

Anyone know what might be going on here?
Can't see the memory window update, unless you are clicking it continuously during movement. Inputs only show for 1 frame in that memory region, so frame advancing with inputs held is your best bet.
 

DRGN

Technowizard
Moderator
Premium
Joined
Aug 20, 2005
Messages
2,029
Location
Sacramento, CA
#14
Can't see the memory window update, unless you are clicking it continuously during movement. Inputs only show for 1 frame in that memory region, so frame advancing with inputs held is your best bet.
Thanks for the suggestion, but I couldn't get it to work with frame advancing either. Maybe it's my version of Debug Dolphin; it's old (master branch, 4.0, compiled 23/9/2013).

Idk.

For PAL, the 804c1fac equivalent is 804B302C.
Thanks.


Here's both versions together, written in MCM's format (which I believe Benny was using):

-==-


Results Screen - Hold Z for Clapping Win Animation
i.e. the losing animation, which is clapping for most characters.
[Achilles]
Version -- DOL Offset ------ Hex to Replace ---------- ASM Code
1.02 ----- 0x800bead4 --- 809D0008 -> Branch

809D0008 2C040003
40800024 3C60804C
60631FAC 899F006C
1D8C0044 7D8C182E
558306F7 41820008
38800004 00000000

PAL ------- 0xBBE50 ---- 809D0008 -> Branch

809D0008 2C040003
40800024 3C60804B
6063302C 899F006C
1D8C0044 7D8C182E
558306F7 41820008
38800004 00000000

(Didn't add the variant for v1.00, because that code with the controller input address posted earlier, 804BFE08, didn't work.)
 

***Justice***

Smash Journeyman
Joined
Dec 10, 2014
Messages
443
Location
Middle of Nowhere
#15
Code:
Results Screen - Hold Z for Clapping Win Animation (PAL) [Achilles]
C20BF270 00000006
809D0008 2C040003
40800024 3C60804B
6063302c 899F006C
1D8C0044 7D8C182E
558306F7 41820008
38800004 00000000
***Justice*** ***Justice***

OMG HEY!!

THANKS SO MUCH EVERYONE. AS SOON AS I HAVE MY NEW PC BUILT, I'M GONNA LOOK UP HOW TO INJECT THESE CODES AND MAKE AN AWESOME BUILD OF MELEE

EVERYONE HERE ROCKS!
 
Top