How to Make your own Cheat Codes
#27
(04-14-2023, 08:20 PM)Vega Wrote: Usually those type of things are Word or Halfword integers. Focus on your special attack bar first. If bar is zero search for zero. Get the bar to increase, continue the search but select "increased". When bar increases again, continue search using "increased" again. If decreases, continue search using "decreased", etc etc.

Well, I already found the instructions to create the code, but the problem I have now is with the FPRs. The code instructions are:

Code:
8018b4c8 stfs f3, 0x010C (r3) - Levels 1 to 5 (Full Bar)

8018b224 stfs f0, 0x010C (r5) - Level 0 (Empty Bar) #The first instruction changes to this only when the bar is empty, that is, when I do the special attack.

The values of the bar are these:

Level 0 (Empty Bar)

32-bit: 00000000
64-bit: 0000000000000000

Level 1

32-bit: 3E4CCCCD
64-bit: 3FC99999A0000000

Level 2

32-bit: 3ECCCCCD
64-bit: 3FD99999A0000000

Level 3

32-bit: 3F19999A
64-bit: 3FE3333340000000

Level 4

32-bit: 3F4CCCCD
64-bit: 3FE99999A0000000

Level 5 (Full Bar)

32-bit: 3F800000
64-bit: 3FF0000000000000

I was reading the tutorial on Working with Floats (https://mariokartwii.com/showthread.php?tid=1744) and it's not that I didn't have the ability to understand it, but there is something that doesn't add up to me, and it happens in the Chapter 2 of said tutorial, since in one part you say that you set r3 to 0x42013333, but I wonder how you did it? Because the values of the bar appear in 64-bit FPR (f0 to f31), but not They appear in the 32-bit registers (r0 to r31), the 32-bit values appear in memory when I find the address but not in the registers (and that is the problem).

I ask this because I assume it is necessary at assembly time, since the formula you used was this:

Code:
lis rX, 0x4201 #Single precision float value for decimal value of 32.3
ori rX, rX, 0x3333
stw rX, 0x20 (r5) #Write over what's going to be loaded from memory
lfs f2, 0x20 (r5) #Now load it; default statement

P.S: I really hope you can solve my doubt.
Reply


Messages In This Thread
How to Make your own Cheat Codes - by Vega - 08-12-2018, 12:34 AM
RE: How to Make your own Cheat Codes - by Vega - 04-03-2023, 11:52 PM
RE: How to Make your own Cheat Codes - by Vega - 04-06-2023, 11:06 PM
RE: How to Make your own Cheat Codes - by Vega - 04-10-2023, 03:18 PM
RE: How to Make your own Cheat Codes - by Vega - 04-12-2023, 02:32 PM
RE: How to Make your own Cheat Codes - by Vega - 04-13-2023, 01:05 AM
RE: How to Make your own Cheat Codes - by Vega - 04-14-2023, 12:41 AM
RE: How to Make your own Cheat Codes - by Vega - 04-14-2023, 06:01 PM
RE: How to Make your own Cheat Codes - by Vega - 04-14-2023, 08:20 PM
RE: How to Make your own Cheat Codes - by LightKingdom666 - 04-25-2023, 09:15 PM
RE: How to Make your own Cheat Codes - by Vega - 04-26-2023, 01:16 AM
RE: How to Make your own Cheat Codes - by Vega - 04-29-2023, 12:54 PM
RE: How to Make your own Cheat Codes - by Hackwiz - 04-29-2023, 02:41 PM
RE: How to Make your own Cheat Codes - by Hackwiz - 05-01-2023, 11:17 AM
RE: How to Make your own Cheat Codes - by Hackwiz - 05-01-2023, 05:57 PM
RE: How to Make your own Cheat Codes - by Vega - 05-01-2023, 10:05 PM
RE: How to Make your own Cheat Codes - by Hackwiz - 05-02-2023, 10:19 AM
RE: How to Make your own Cheat Codes - by Hackwiz - 05-02-2023, 11:32 PM
RE: How to Make your own Cheat Codes - by Vega - 05-03-2023, 12:12 AM
RE: How to Make your own Cheat Codes - by Hackwiz - 05-03-2023, 10:59 AM
RE: How to Make your own Cheat Codes - by Hackwiz - 05-03-2023, 05:06 PM
RE: How to Make your own Cheat Codes - by Hackwiz - 05-03-2023, 08:51 PM
RE: How to Make your own Cheat Codes - by Vega - 05-03-2023, 09:32 PM
RE: How to Make your own Cheat Codes - by Hackwiz - 05-04-2023, 11:15 AM
RE: How to Make your own Cheat Codes - by Vega - 05-05-2023, 12:13 AM
RE: How to Make your own Cheat Codes - by Vega - 05-05-2023, 02:08 PM
RE: How to Make your own Cheat Codes - by Vega - 05-06-2023, 12:51 AM
RE: How to Make your own Cheat Codes - by Hackwiz - 05-06-2023, 03:57 PM
RE: How to Make your own Cheat Codes - by Vega - 05-08-2023, 01:22 AM
RE: How to Make your own Cheat Codes - by Vega - 05-10-2023, 03:42 PM
RE: How to Make your own Cheat Codes - by Unnamed - 06-08-2023, 02:56 PM
RE: How to Make your own Cheat Codes - by Vega - 06-18-2023, 11:58 PM
RE: How to Make your own Cheat Codes - by Unnamed - 10-10-2024, 11:38 AM

Forum Jump:


Users browsing this thread: 22 Guest(s)