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
(Yesterday, 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 418200B8
3D80809C 818C8F70
818C0028 2C0C0002
408200A4 48000039
10010003 1002000D
1004000E 10080006
00010009 00020001
0004000B 0008000F
04010002 04040008
04080007 4000000C
00000000 7D8802A6
3D608034 A16B1462
A14C0000 2C0A0000
4182004C A08C0002
7D435839 7C035000
4182000C 398C0004
4BFFFFD8 899D00B2
2C0C0000 40820030
387D0088 38A00000
3D80807A 618CDEE0
7D8903A6 4E800421
38002000 39800001
48000008 39800000
999D00B2 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 0x10010003
.long 0x1002000D
.long 0x1004000E
.long 0x10080006
.long 0x00010009
.long 0x00020001
.long 0x0004000B
.long 0x0008000F
.long 0x04010002
.long 0x04040008
.long 0x04080007
.long 0x4000000C
.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 r3, r10
beq isPressed

addi r12, r12, 4
b 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
#17
I don't mind either way, whichever option works and makes it easier for you.
Reply
#18
C is problematic only when other buttons are pressed with it. I tried it alone and it worked fine. I even tried with the item hack only having C and D-Pad and it still breaks so it is unrelated to other items. I've updated the code that I posted here, changed the C items to - and D-Pad, and - (Blooper) is now C. It can be easily modified to add and modify the button and items. Also, HOME can be used with "Disable Home Menu" code
Reply
#19
This is absolutely perfect, even while in bullet bill it can still throw shells, its next level. Thank you so much!
Reply
#20
Can be prevented,. So, you want to prevent getting and using items in Bullet?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)