WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: The D3mon on May 01, 2011, 04:19:13 AM

Title: geckodotnet created 05 gct code
Post by: The D3mon on May 01, 2011, 04:19:13 AM
I was wondering why I would get a 05 code when I found an address I had it create code. It was a 05 instead of 04. I'm a nood still I thought 05 types were dvar codes made from ramdumps. I don't really care as the code created is simple and will not work as a 04 for some reason.

Title: Re: geckodotnet created 05 gct code
Post by: The D3mon on May 01, 2011, 04:36:49 AM
Thanks learn something new everyday I missed that some where and this is the first address that I have found that was 81 so far. I was under the impression 05 was for dvars but now i know better.
Title: Re: geckodotnet created 05 gct code
Post by: dcx2 on May 01, 2011, 04:57:54 AM
Look at the pretty colors at the bottom of the code type doc on Gecko Codes.  It shows you how a code type is split up, in bits instead of hex.

http://www.geckocodes.org/index.php?arsenal=1#CodetypeDetail

Code types are actually 7 bits, but two hex digits (like 05) are 8 bits.  That last bit is actually *not* a part of the code type, it's a part of the address.

---

If you read the old code type doc's introduction, it will mention that only the first 7 bits of the ba are added to the address (NOTE: there are some errors in the old code type doc; use the Gecko Codes for code types).

Quote from: http://wiird.l0nk.org/codetypes.htmlba : Base Address. Set at 0x80000000 each time the code handler is executed. Each time the ba is added to a code address, the code handler do : address = address + (ba & 0xFE000000)

This means the only legal values for ba are 80000000, 90000000, and 92000000.  If you try to put 81000000 into the ba, you will actually get 80000000.
Title: Re: geckodotnet created 05 gct code
Post by: The D3mon on May 01, 2011, 05:13:58 AM
thanks i see how it works I just need now is to do a break point as it only locks a set number and I still want it to increase similiar to another code I made for another game.