06-03-2024, 03:13 AM
(06-03-2024, 02:55 AM)emeraldvixen Wrote:(06-03-2024, 02:28 AM)Vega Wrote: Frankenstein'd this up really quick, try this out. untested. In PAL, too lazy to port.
X = slot that code effects, make sure both X values match
PAL
C252F538 00000004
2C1A000X 801E0018
40A20010 2C000000
40820008 38000001
60000000 00000000
C272625C 00000002
5460063E 5464063E
60000000 00000000
C272625C 00000002
2C04000X 41820008
5403D97E 00000000
Code:#PAL
#8052F538
#r26 always = slot
cmpwi r26, 0
lwz r0, 0x0018 (r30) #OG instruction, 0 = Human? 1 = CPU? 3 = idk?
bne+ end
cmpwi r0, 0 #Just incase r0 is 3, we don't wanna change 3 to 1 for w/e reason???
bne- end
li r0, 1 #Force to CPU?
end:
=============
#8072625C
#Original Instruction
#Slot in r3, extract byte and place in r0
rlwinm r0, r3, 0, 24, 31
#Also Save Slot in r4 (safe, preserved til next ASM code)
rlwinm r4, r3, 0, 24, 31
=============
#8072627C
#Appears that r3 is suppose to return some sort of bool? Idk
#Check slot (r4)
cmpwi r4, 0
beq- 0x8 #if eq, go to end
#Original instruction, why mask bits 5 thru 31?
rlwinm r3, r0, 27, 5, 31
I don't have the PAL version of the game, how would I go about getting it / porting this code to NTSC-U? Sorry for the inconvenience.
Nevermind. I was able to get the PAL version. I tried the code and got some errors, I took a screenshot of the first one.
After a few, I hit "ignore" and when the race started it didn't work (I set both X values to 2, so that should mean Player 2 gets set to a CPU, right?)
For further information I tested with CPUs off in a 2 player VS match. Don't know if that effects anything.
Thanks for your help so far, it's greatly appreciated