• Welcome to Smashboards, the world's largest Super Smash Brothers community! Over 250,000 Smash Bros. fans from around the world have come to discuss these great games in over 19 million posts!

    You are currently viewing our boards as a visitor. Click here to sign up right now and start on your path in the Smash community!

Completed Display Animation Name For Special Moves In Develop Mode

UnclePunch

Smash Ace
Joined
Nov 9, 2014
Messages
673
This code pulls the animation name from the PlAJXX.dat file instead of displaying numbers like 360/361 for Fox shine.


Code:
$Display Animation Name For Special Moves In Develop Mode [UnclePunch]
C2226ACC 00000013
7F83E378 809C0014
3D808008 618C5FD4
7D8903A6 4E800421
80630000 8C830001
2C04004E 4082FFF8
8C830001 2C04005F
4082FFEC 38630001
48000035 7CA802A6
3885FFFF 3863FFFF
8CC30001 2C06005F
4182000C 9CC40001
4BFFFFF0 38600000
9C640001 7CA42B78
48000024 4E800021
00000000 00000000
00000000 00000000
00000000 00000000
00000000 7FE3FB78
4CC63182 00000000
Code:
#Inject @ 80226acc

.macro branchl reg, address
lis \reg, \address @h
ori \reg,\reg,\address @l
mtctr \reg
bctrl
.endm

.set playerdata,28
.set player,r29

#Get Animation Data Pointer
mr    r3,playerdata
lwz    r4,0x14(playerdata)
branchl    r12,0x80085fd4

#Get Move Name String
lwz    r3,0x0(r3)

#Get Start of Move Name
StringSearchLoop:
lbzu    r4,0x1(r3)
cmpwi    r4,0x4E        #Check For "N"
bne    StringSearchLoop
lbzu    r4,0x1(r3)
cmpwi    r4,0x5F        #Check for Underscore
bne    StringSearchLoop
addi    r3,r3,0x1        #Start of Move Name in r3

#Copy Move Name To Cut Off "fiagtree" Text
bl    StringSpace
mflr    r5
subi    r4,r5,0x1
subi    r3,r3,0x1
StringCopyLoop:
lbzu    r6,0x1(r3)
cmpwi    r6,0x5F        #Check for Underscore
beq    ExitCopyLoop
stbu    r6,0x1(r4)
b    StringCopyLoop

ExitCopyLoop:
li    r3,0x0
stbu    r3,0x1(r4)
mr    r4,r5
b    exit

StringSpace:
blrl
.long 0x00000000
.long 0x00000000
.long 0x00000000
.long 0x00000000
.long 0x00000000
.long 0x00000000
.long 0x00000000

exit:
mr    r3,r31
crclr     6
 
Last edited:
Top Bottom