Coding Questions and other Quandaries
#88
"On your grenade code, -1 is within the 16 bit signed range. Therefore you don't need lis & ori.

cmpwi r31, -1"

Brilliant!!!!!

"It's awesome to see you tackle all these different Wii and GC games. That motivates my lazy ass to make codes again, lul."

If you want a game to make chop suey out of, may I suggest "Cocoto Kart Racer - (USA) Wii"?

This game is a blatant Mario Kart Wii ripoff. Being that you guys have shredded MKW, maybe this game will use the same style of programming, and MKW codes could be adapted to that game.

I have hacked a few codes for the game. One that allows you to keep your current weapon/powerup, or change it using using Wiimote motions for activating/deactivating,
instead of button activators, (who has time to punch in the melody to Funky Town on the Wiimote while racing Smile ).

The Gecko/ASM is terribly elementary. Since I've learned A LOT in the last month or so, I plan on revisiting that code to make it work the way I intended it to.

One of the codes I revisited last night was being able to choose racers that are locked (until you beat certain races), at the racer select screen.
Using the methods described at: https://tcrf.net/Help:Contents/Finding_C..._and_areas

I am able to force the cursor to select the locked characters. However, this is somehow effecting the next operation. Kart selection, which is on the same screen.
You are unable to move through the selection of karts.
I need another holiday weekend (already) to observe what is going on more closely.

I'm sure I'll have some questions once I figure out what's what.

Here's the weapon/powerup code I referenced earlier with notes:

Infinite Ammo/Power-ups (Note)

2C1ADB68 0000BF70
C2054774 00000001
38030000 00000000
C2058FA8 00000001
38000003 00000000
C2058FAC 00000002
38000003 901E0154
60000000 00000000
C2055750 00000001
380000XX 00000000
E0000000 00000000
2C1ADB68 00003F70
2E1ADB68 00004000
C2054774 00000001
3803FFFF 00000000
C2058FA8 00000001
38000001 00000000
C2058FAC 00000001
901E0154 00000000
C2055750 00000001
38000000 00000000
E0000000 80008000

(Note)
Roll the Wiimote 90 degrees to the right (CW), to activate. You'll be given a quantity of 3 on weapons/power-ups that normally only give you 1 upon pick-up. This effects the other racers also. If you lose your current weapon/power-up, you'll automatically be given the item XX you choose to put in the modifier. If they receive XX = 06 – Red Fairy/Storm Angel, or you set this value in the code, it results in a cluster funk, with all of the racers being hit by lightning. Roll the Wiimote 90 degrees to the left (CCW), to deactivate the code if this happens. Or if you want to change weapons/power-ups, deactivate the code to use up the currently held item, then reactivate to get a new weapon/power-up. Don’t activate code until you’re at the starting line.

XX – Weapon/Power-up Modifier

01 – Mosquito Fork/Dart
02 – Fireball/Piranha
03 – Turbo
04 – Invincibility
05 – Blue Fairy/Storm Angel
06 – Red Fairy/Storm Angel
07 – Fireball/Explosive Cloud
08 – Tomato
09 – Sticky Lava Ball/Paralyzing Ice

Obviously there is some problems with the code, (don't want the other racers to have unlimited ammo or weapon/powerup choice like you do).
Now that I know more about compare and branch operations, I should be able to revise it the way it should be.

Have a great day!
Reply


Messages In This Thread
RE: Coding Questions and other Quandaries - by Hackwiz - 01-05-2022, 12:55 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)