Ultimate wheel help
#11
Yeah! And bullet doesn't work or doesn't appear? I'll see

EDIT: I forgot to add it
Reply
#12
(Today, 01:45 AM)matfawcett Wrote: Mate this is absolutely spot on!!  Golden doesn't matter, but bullet bill isn't working.  Also can the items mapped to the plus sign and home buttons be remapped to C and Z if possible, they work but obviously bring up Wii menus when pushed.


C278ED0C 0000001A
A01D000C 819D0000
818C0004 818C0014
718C0002 418200B4
3D80809C 818C8F70
818C0028 2C0C0002
408200A0 48000039
40010003 4002000D
4004000E 40080006
00010009 00020001
0004000B 0008000F
04010002 04040008
04080007 1000000C
00000000 7D8802A6
3D608034 A16B1462
A14C0000 2C0A0000
41820048 A08C0002
7D435839 7C0A5800
398C0004 4082FFDC
899D00B2 2C0C0000
40820030 387D0088
38A00000 3D80807A
618CDEE0 7D8903A6
4E800421 38002000
39800001 48000008
39800000 999D00B2
60000000 00000000

Code:
8078ED0C
isMaster:
lhz r0, 0xC (r29)
lwz r12, 0 (r29)
lwz r12, 4 (r12)
lwz r12, 0x14 (r12)
andi. r12, r12, 2
beq end

isRaceState:
lis r12, -0x7F64
lwz r12, -0x7090 (r12)
lwz r12, 0x28 (r12)
cmpwi r12, 2
bne end

bl table
.long 0x40010003
.long 0x4002000D
.long 0x4004000E
.long 0x40080006
.long 0x00010009
.long 0x00020001
.long 0x0004000B
.long 0x0008000F
.long 0x04010002
.long 0x04040008
.long 0x04080007
.long 0x1000000C
.long 0
table:
mflr r12

loop:
lis r11, 0x8034
lhz r11, 0x1462 (r11)
lhz r10, 0 (r12)
cmpwi r10, 0
beq setNotPressed

wasItemButtonPressed:
lhz r4, 2 (r12)
and. r3, r10, r11
cmpw r10, r11

addi r12, r12, 4
bne loop

isPressed:
lbz r12, 0xB2 (r29)
cmpwi r12, 0
bne end

callItem:
addi r3, r29, 0x88
li r5, 0
lis r12, 0x807A
ori r12, r12, 0xDEE0
mtctr r12
bctrl

forceUseItem:
li r0, 0x2000

setPressed:
li r12, 1
b storePressState

setNotPressed:
li r12, 0

storePressState:
stb r12, 0xB2 (r29)

end:
Reply
#13
Yeah, I only noticed those button assignments when testing now, unsure whey the original would have used those buttons but its totally my fault for not checking. I have no idea what i'm doing with the code Sad

This is the issue area
C + Dpad:
Up = Bomb, Down = Golden Mushroom

* Minus = Thundercloud
* Home = Fake Box
* Plus = POW

Can u just move those bottom three onto the C + DPad and remove the Golden? So for example

C + Dpad:
Up = Bomb, Down = Thundercloud, Left = Fake Box, Right = POW

and then the code will be absolutely spot on
Reply
#14
Really? TC crashes and POW throws like Golden, but this didn't happen before... I wonder what the heck is going on, I feel like it's somehow conflicting with other items?


EDIT: It's something bizarre with items on the C, I'm trying to understand how this is even possible.

Any other plans?
Reply
#15
What if the combo used minus + d pad, would that work better? Take C out of the equation
Reply
#16
C can be used for THROWABLE items but not usable. So, you want to take the usables one to - and keep the rest at C or all of them to -?
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)