You should be able to do a bitwise AND with the value of the Elegy of Emptiness. The result will be zero if you don't have the Elegy of Emptiness. Or is it not possible to do that as a check in a code?
AR Codes for Ocarina of Time / Master Quest / Majora's Mask
|
(03-27-2019, 08:20 PM)JosJuice Wrote: You should be able to do a bitwise AND with the value of the Elegy of Emptiness. The result will be zero if you don't have the Elegy of Emptiness. Or is it not possible to do that as a check in a code? Hmm? Bitwise. Can that be done with a 8-bit Byte? I never tried that before yet, I might improve quite a bit of my codes if I manage to do so. Basicially, the 8-bit Byte for the code address should be: xxxxxx1x, where x can be either 0 or 1. But as far as I am aware, AR Codes do this in hexadecimal ranging from 00 to FF. If I am correctly, all values within x2, x3, x6, x7, xA, xB, xE and xF should have the Elegy of Emptiness included, where x can be from 0 to F. So how could I only check for the first digit and ignore the value of the second digit? Well, I am not even sure that my calculations for the hexadecimal values are correct. But 8-bitwise, the second bit should always be at 1 while the value of the other bits can be ignored. Code addresses starting with 08 are used for 8-bit Equals, 00 are used for 8-bit Writes, 80 are used for 8-bit Additions, 20 for 8-bit Higher Than and so forth. Is there any code type that could check for a specific bit digit then? 03-27-2019, 09:43 PM
I was using the official Dolphin GitHub wiki.
https://github.com/dolphin-emu/dolphin/w...e-Version) https://github.com/dolphin-emu/dolphin/w...Code-Types 03-27-2019, 10:04 PM
Ah, the GitHub wiki... Sometimes I forget that it exists
If I'm understanding that correctly, you can use 38XXXXXX 00000002 to check whether the second bit of an 8-bit number is 1.
I finally found Phantom Ganon's HP, so I updated the Boss HP codes:
Code: $Master Quest -> All Bosses Have 2x HP (D43E01) (AR Code) So far, only the first four bosses have been included. Code: $Majora's Mask -> Summon Elegy of Emptiness Statue With L + D-Pad Down (PZLE01) (AR Code) Thanks for the tip JosJuice. It works indeed like you said, with this improved code all instances where Link has the Song of Elegy can be found with a single line. I should revise all my previous codes. This is amazing! Just one more question. 38 is used to check if a byte is set to 1. Do we also have a code condition that checks if a byte has been set to 0? 03-28-2019, 01:16 AM
Thanks JosJuice, I myself never knew how to use these bitwise code types.
And Admentus, you're improving your codes in just a short period of time, that's great. I'm glad that you finally found the address that stores the HP of Phantom Ganon. The true is that is harder to find a value in the ram memory of one GameCube game than in a N64 game; for this reason I search for values and ASM code in the N64 version of all the TLOZ games. Porting the codes to the GameCube version of the games is quite easy. I have a question, what does HP mean? Hit Points or Health Points? (03-28-2019, 01:16 AM)darkludx Wrote: I have a question, what does HP mean? Can be both. It doesn't really matter, since both Hit Points or Health Points refer to the same meaning, the amount of health a target has. Some games use Hit Points while others use Health Points. Some games simply use Health. Paper Mario uses HP, but it doesn't really clarify if it is Hit Points or Health Points, but as said, it doesn't matter since it has the exact same meaning. If I am correctly, 38 checks if a bit is set to 1. So how can we check if a bit is set to 0? Do we have code type so that a bit can be set to 0 or 1? For example, I would like to check: xxxx xx01, xxxx xx10 and xxxx xx11 where x can be either 0 or 1 and shouldn't be checked. EDIT 1: I go looking for the remaining bosses tomorrow. EDIT 2: Fixed the "Unequip Shield With Z On Icon", so that you can unequip a shield when no sword is equipped. Code: $Master Quest -> Unequip Shield With Z On Icon (D43E01) (AR Code)
The Hard-Mode Boss code has been updated yet again. Volvagia from the Fire Temple has been included now.
Bosses so far: Gohma, King Dodongo, Barinade, Phantom Ganon & Volvagia. Remaining bosses: Morpha, Bongo Bongo, Twinrova, Ganondorf & Ganon. Code: $Master Quest -> All Bosses Have 2x HP (D43E01) (AR Code) More stuff for Ocarina of Time - Master Quest: Code: Pieces of Heart (8-bit Byte) Code: Deku Stick, Deku Nut Capacity (8-bit Byte) Code: $Master Quest -> Always Have 1 Small Key & Have Boss Key / Compass / Map 03-30-2019, 10:49 PM
I want tell you about a little mistake that you made with your last Hard-Mode Boss codes for Master Quest (D43E01).
With information taken from the document GameCube Action Replay Code Types of the official Dolphin GitHub wiki. Special Notes All addresses MUST be compatible with the data size you want the codes to be using. That means ANY address can be used for BYTE reading/writing. If you don't follow these rules, then the codes won't work (or the AR might crash). Addresses CAN be a multiple of 1 for BYTE reading/writing (last hex number of the address can be either: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F). Addresses MUST be a multiple of 2 for HALFWORD reading/writing (last hex number of the address must be either: 0, 2, 4, 6, 8, A, C, E). Addresses MUST be a multiple of 4 for WORD reading/writing (last hex number of the address must be either: 0, 4, 8, C). I saw in your code addresses like 02CC0D8F or 04CAE95E, I don't know if the codes are working properly since I don't test the codes yet, but these codes have the wrong format. I'm pointing out this little mistake, just so you can see if you can fix it. Thank you for your hard work with the codes and with the textures pack! |
« Next Oldest | Next Newest »
|
Users browsing this thread: 2 Guest(s)