Ok this is the address to the money.
80390D28 XXXX
If I replace xxxx to 3000, it will be 300dollar. After poke, if I collect extra money, it will max out.
I want to know how you convert this address to work on ocarina?
I read a little on code type, but I don't understand.
16-bit direct type.
02______ YYYYXXXX : 16bits ram write and fill (ba) writes XXXX YYYY+1 times at ba+address
12______ YYYYXXXX : 16bits ram write and fill (po) writes XXXX YYYY+1 times at po+address
help will be appreciated.
Change the first 2 values of the address to 02 from 80:
02390D28
Pad the actual value you want with 0's so its 8 characters long:
0000012C
Gives you:
02390D28 0000012C
the codes are in Hex so 3000 in hex is actually 12288 in decimal
12C = 300 for example
thanks the codes work, but the value is a bit different... When I put 12c as the value, the money value came up $30.00 only. So I try to put 12288 on the value:
02390D28 00012288, the money came up $300.00
It seem that the game doesn't really use hex value.
Two Question Here:
1. Ok now, the complete codes, to make it freeze, how do I go about that? (Code above)
2. How do I combine 10 or more codes into 2 simple codes?
Code for status is 80390CFF - (End at) 80390D1B. Value would be 3F (dec:63 max)
Each code add +4. For example 80390CFF(Punch) +4=80390D03(Kick) +4=80390D07(Weapon) etc....
I hadn't noticed it was a NES game so it's only 8 bit values which actually makes what we've done redundant
The money might be held in 2 places and combined
Basically you only really need 8 bit codes which is 00 instead of 02
Try this:
00390D28 00000FF
FF = 255
regarding values and lengths:
P = padding so use 0's
XX is value in Hex
00 = 8 bit = PPPPPPXX
02 = 16 bit = PPPPXXXX
04 = 32 bit = XXXXXXXX
02390D28 00012288 <-- this is wrong as you are trying to write a 32 bit value with a 16 bit code
02 can only write up to the value 0000FFFF
P.S. Can you post a screengrab of what you see at 80390D28 in wiird memory viewer tab?
the money was found on the 16bits data size... the 8bits doesn't find anything about money,... the 8bits will only finds the stats.
(http://img33.imageshack.us/img33/1996/28874444.jpg)
Edit: Nvm, I found the address at 8bit by decreasing my money down to a lower value.
(http://img34.imageshack.us/img34/3836/85318419.jpg)
Quote from: asianking on May 21, 2009, 05:22:50 PM
2. How do I combine 10 or more codes into 2 simple codes?
Code for status is 80390CFF - (End at) 80390D1B. Value would be 3F (dec:63 max)
Each code add +4. For example 80390CFF(Punch) +4=80390D03(Kick) +4=80390D07(Weapon) etc....
are these values 32bits, 16bits or 8bits?
if they are 16bits or 8bits you only need 1 line.
if you look at the codetype for a 16bits ramwrite you see it writes YYYY times +1 :
02______ YYYYXXXX : 16bits ram write and fill (ba) writes XXXX YYYY+1 times at ba+address
so if you have 15 addresses you should use 02______ 000EXXXX, this will write to the address and the 14 (0xE in hex) addresses after that.
now all codes are 8bit...
Because i'm using 20 codes so it would be
02390CFF 00(13=how many codes)(3F=QTY for Player 1)(3F=QTY for Player2)
But this codes also gives me infinite health, all abilities, etc.... yet it also gives the enermies infinite health too ???
one way i think i can keep this code is to have a button activator. Does button activator codes are the same for all games?
Edit
Done... I put a button activation. Work great. Thanks All for your help.
I don't know how the abilities works, but i do got the codes... If i put my value as 1, i will only have punch, but if i put 2, I have kicks. If I put 9, i have the arc and punch. So I put FF and I have all the abilities...
My Most Wanted Codes
[All abilities]
* 00390D3F 000000FF
* 00390D40 000000FF
[Press Home button (Wiimote) for Money + max stats] (note1)
* 281D74B0 00008000
* 00390D27 000008FF
* 00390D28 000008FF
* 02390CFF 00133F3F
Note 1: When activated, enermies also have max stats too. This codes does not give infinite because if it does, you can't kill anyone at all. This also applies to P2 as well.
I have edit the code for the codes because it would only give player1 money and abilities so I have to refine my codes again. I also have to add button activation for money because if money is activated for both player, you can't run. So this helps a lot by just using button activation. Remember, if you press HOME on the classic controller, it won't work. It has to be the wiimote.