WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: salva23 on June 11, 2009, 05:12:27 AM

Title: Need help with Adventure Island: The Beginning (Wiiware)
Post by: salva23 on June 11, 2009, 05:12:27 AM
Hey gusy I've been playing with my USB Gecko and this wiiware game. So far I have these codes.

WTME
Adventure Island: The Beginning NTSC-U

Unlimited Lives
0432C78C 0000000A

I also found this code but is not stable, it cause the game to freeze and I would like to know why

This is for the Shop. Have xx number of Golden Melons to buy stuff

0259B2C2 000000XX

It works while you are in the shop. You can buy all the items if you want but if the code is left enabled, then the character freezes in the map and you can't move. You can still exit back to the Wii Menu or reboot.

However if I just enabled it to get enough gold melons to buy stuff and then disbale it and then start buying stuff, then re-enable the code and disable it again if needed, it will work and will not freeze.
But I would like to know why this code is unstable.


There is also this code

8059B2C2

This one just changes the number of Golden Melons that you have in the shop but just the number. It doesn't actually give you anything to buy stuff.

This third one comes up always in searches as well but doesn't do anything. Basically the only one that gives you Golden Melons to buy stuff in the shop is the first one I posted. What do you guys do in these cases? I tried to find a P.O with the first 2 codes but nothing came up.

8059C462

Does anyone have this game to test with? Any help would be appreciated.
Title: Re: Need help with Adventure Island: The Beginning (Wiiware)
Post by: Panda On Smack on June 11, 2009, 11:06:38 AM
Your code is constantly writing to that address which is obviously used for other functions when outside of the shop so it would be best if you used a C2 code which can manipulate the amount of melons you have before it is written to 8059B2C2

In WiiRd set a Write break point at 8059B2C2, screengrab the window and post it here
Title: Re: Need help with Adventure Island: The Beginning (Wiiware)
Post by: salva23 on June 11, 2009, 02:56:22 PM
Hi Panda!

Ok I did what you said and here is what I got

(http://img188.imageshack.us/img188/2921/break.th.png) (http://img188.imageshack.us/i/break.png/)

The game is in ablack screen and this is the WiiRd log. This happened after entering a level.

Setting write breakpoint on 8059B2C2
Please wait - press the enter key to abort!
Breakpoint hit! Registers stored to regs.bin.
> dump "diss.bin" 800043e0 80004420
Dumping 800043E0 to 80004420 to file: diss.bin
Dumping.. done!
Dumping took 0.047 seconds!
> gamestatus
Sending command
Command succesful
Game is in breakpoint hit mode!
Title: Re: Need help with Adventure Island: The Beginning (Wiiware)
Post by: Panda On Smack on June 11, 2009, 02:58:23 PM
Ok, my fault but can you set the breakpoint while in the shop and have some melons etc to use please?

Also can you tick the Exact Match box?
Title: Re: Need help with Adventure Island: The Beginning (Wiiware)
Post by: salva23 on June 11, 2009, 04:41:16 PM
Ok no problem. I will do it when I get home. I'm at work now. So basically do you want me to add a value for the golden melons while in the shop and then set a write break. Or set the write break first while in the shop and then add some golden melons?

Normally to get golden melons you have to collect them in the levels and then you used them in the shop to buy stuff.
Title: Re: Need help with Adventure Island: The Beginning (Wiiware)
Post by: Panda On Smack on June 11, 2009, 04:59:48 PM
Be handy to have some melons available while in the shop and then set the breakpoint, buy something and then the breakpoint should trigger

ta
Title: Re: Need help with Adventure Island: The Beginning (Wiiware)
Post by: salva23 on June 12, 2009, 05:55:47 AM
OK sorry about the delay but I messed up on what I posted. I searched again and there are 2 values that are coming up. This time I searched for 32-bit values.

Code 1: 80598810 000000XX
Code 2: 8059B2C0 000000XX


Code 1 is in fact the code that will give me the melons and will allow me to buy stuff. Code 2 only changes the number on the screen and it appears like it has given you melons but it hasn't. You can't buy anything with code 2. However this 2 codes are the only 2 that come up ins earches while in the shop. I have done what you asked for. I had 4 melons and I did a break on the value that actually gives me melons which is 80598810. It inmediately froze the game when I tried to buy something and gave me this.

(http://img146.imageshack.us/img146/8063/break2.th.png) (http://img146.imageshack.us/i/break2.png/)
Title: Re: Need help with Adventure Island: The Beginning (Wiiware)
Post by: Panda On Smack on June 12, 2009, 09:39:32 AM
Can you try this:

C20C8814 00000002
38800063 909F02B0
60000000 00000000

What is the maximum amount of melons you can have?
Title: Re: Need help with Adventure Island: The Beginning (Wiiware)
Post by: salva23 on June 12, 2009, 01:59:46 PM
Hi Panda. According to Gamefaqs the Maximum is 100

Ok I tried the code you posted and it doesn't freeze the game at all. It also does not alter the number of melons I have. However when I buy something, the amount changes to 100 but it only changes the number on the screen, I actually don't have enough to buy anything else. If I have 5 melons and buy something worth 3, your code makes it seem like I have 99 but I think I still only have 2 left because verything else is grayed out and I can't buy the items.

Oh yeah one more thing. If I follow this tutorial http://wiird.l0nk.org/forum/index.php/topic,3473.0.html (http://wiird.l0nk.org/forum/index.php/topic,3473.0.html) and try to nop the value at 800C8814. All it does is not count the melons I get in the levels so when I get to the shop, it shows that I have 0 melons and I can't buy stuff. But if I restart the game without the code, all the melons I have collected are there.
Title: Re: Need help with Adventure Island: The Beginning (Wiiware)
Post by: Panda On Smack on June 12, 2009, 07:21:42 PM
ok, can you try a exact write breakpoint on 8059B2C0 please and screengrab?

If possible do it when you have some melons and so that you still have some left after

ta
Title: Re: Need help with Adventure Island: The Beginning (Wiiware)
Post by: salva23 on June 13, 2009, 12:23:01 AM
Ok here is the new screenshot with break at 8059B2C0

(http://img31.imageshack.us/img31/8410/break3.th.png) (http://img31.imageshack.us/i/break3.png/)

As you can see, I had 11 Golden Melons and tried to buy an item that cost 8 Melons.

(http://img31.imageshack.us/img31/9025/screend.th.jpg) (http://img31.imageshack.us/i/screend.jpg/)

Oh yeah I also did a nop on 80063AEC and all it does, is freeze the value on the screen at 11 but you still run out of Melons. Mmm this seems way more complicated than what I thought.
Title: Re: Need help with Adventure Island: The Beginning (Wiiware)
Post by: Romaap on June 13, 2009, 01:40:51 AM
can you check if there is an sub r4,rA,rB? it should be somewhere before 80063AEC, you can check it by going to the disassembler tab and press the up arrow a couple of times.
Title: Re: Need help with Adventure Island: The Beginning (Wiiware)
Post by: salva23 on June 13, 2009, 02:27:31 AM
Hi Romaap. I did what you asked me and there is no sub command showing up just before the breakpoint as you can see from the screenshot when setting a write break point on 8059B2C0. It hits a break point at 80063AEC and there is a fsubs that comes right after I guess? but nothing before.


(http://img196.imageshack.us/img196/6942/nosub.th.png) (http://img196.imageshack.us/i/nosub.png/)


I also did a break back on 80598810

and this one has a sub. r4,r0,r3 that comes before the break on 800C8814. Screenshot attached as well. I hope that helps.

(http://img196.imageshack.us/img196/9986/subn.th.png) (http://img196.imageshack.us/i/subn.png/)


BTW none of you seem to have this game so it's ok if we can't get a stable code. I just wanted a code for Inf Melons for the shop to share with everyone since having all the items to start with makes the game so much easier. I used the unstable code to buy all the shop items and then made a save. If anyone wants the save just pm me. The Inf lives code works fine though. I guess next I'll try to find a code so that I don't lose a weapon after dying or maybe try to find a code to always have a certain weapon. I don't know if it will be any easier than the Inf Melons code though.




Title: Re: Need help with Adventure Island: The Beginning (Wiiware)
Post by: Romaap on June 13, 2009, 11:26:39 AM
OK, click on the sub and then replace the sub. with add., if you buy something now it will add the melons instead of subtracting them when you buy something.
If this works then the rightclick on the 800C8808 and click gctcode, then go to the gct code tab and replace the first 80 with 04 and add the code :) ( 040C8808 7C801A15 )

Explanation: :)
the sub. command subtracts the melons the item costs to the melons you have and store it in r4 then the stw command writes r4 to 80598810, so if you replace the sub with add then it will add the melons the item costs to the melons you have and store it in r4 :)
Title: Re: Need help with Adventure Island: The Beginning (Wiiware)
Post by: salva23 on June 13, 2009, 04:19:45 PM
I already thought of that Romaap and I tried the code: 040C8808 7C801A15

It does add instead of substracting but it only changes the on screen value. In reality it still does substract and you do run out of melons. The only way to have unlimited melons that I have found is by freezing the value at : 80598810: 000000XX

Then you really do have unlimited melons and you can buy everything in the shop, however when leaving the shop. You can't move on the map and the game seems frozen. If you disabled all codes then the game responds again sometimes. So the code works but it causes problems.
Title: Re: Need help with Adventure Island: The Beginning (Wiiware)
Post by: Romaap on June 13, 2009, 05:11:38 PM
Then you could just use a button activator, so the value is only written when those buttons are pressed :)
Title: Re: Need help with Adventure Island: The Beginning (Wiiware)
Post by: salva23 on June 13, 2009, 11:28:34 PM
Exactly that would work. A button to turn on/off the code. I din't really know that could be done. Any idea on how to go about doing that? Basically this code can only be used in the shop and should not be used anywhere else. If the game boots up with this code enabled then it just freezes on the map.

I guess mapping the code to the Gamecube Controller on the Z button would work fine if that's possible.
Title: Re: Need help with Adventure Island: The Beginning (Wiiware)
Post by: g6flavor on June 14, 2009, 05:21:20 AM
Or just add an IF code on the first line
Title: Re: Need help with Adventure Island: The Beginning (Wiiware)
Post by: Romaap on June 14, 2009, 04:32:01 PM
use this guide (http://wiird.l0nk.org/forum/index.php/topic,2582.0.html) to know how to use button activators.

Just an IF code to check if you are in the shop is also possible, but you need something that is always the same in the shop and different outside.

Could you check what the value of that address wich contains the actual number of melons is outside the shop? (check at different points)
Title: Re: Need help with Adventure Island: The Beginning (Wiiware)
Post by: salva23 on June 14, 2009, 07:29:24 PM
Wow this gets even more interesting everytime. It's amazing all you can do with USB Gecko. I just wish I knew a lot more about how everything works though.

Anyways here is my update. I followed the guide for the button activators. I thought that this game supported the GC controller but it doesn't. So I tried finding the value for a button on the Wii controller. However no matter how I search I always end up with 25-30 results and when I go to memory viewer and click the on/off button, all of them seem to respond correct to the button presses. I tried picking the top to make my code and then another one but no luck.

I searched for 16-bit values and I searched for the values of the buttons like 0100, or 0200, or 1000 or whatever it's for the button I want to find the address for. I followed the guide as posted but this didn't work for me. I also tried making it a 20XXXXXX FFBFMyButtonCode and 28XXXXXX FFBFMyButtonCode and no luck.

So I'm now in the path for the what If code. Although I have no idea yet of what you guys are talking about. But here are the values for 80598810 at different parts of the game. I used Memory Viewer to see how the value changes. This is really interesting. The value is not the same.


When in a level and it doesn't matter if you are collecting Melons or not. This is the same on all levels it seems.

80598810 00000000

After passing the level and when your score is all added up according to the items colelcted and how much your life bar has left. This is the same on all levels at the end it seems.

80598810 FFFFFF00

In the World Map. This seems to be the same all over the map.

80598810 00030001


In the shop. This really is the number of melons you have collected in levels. And it changes as you buy stuff.

80598810 000000XX
Title: Re: Need help with Adventure Island: The Beginning (Wiiware)
Post by: Romaap on June 14, 2009, 07:51:03 PM
The IF codetype is used to check if an address has a certain value, if it does not meet the requirments it will not enable the code.
The IF codetype's all start with 2 or 3.
The button activator is also an IF code, it checks wich button is pressed.

So in this case you could add a code that checks if the value is lower than 100 (because it is only lower than 100 when you are in the shop and in a level), so we would need the IF lower codetype:
26______ YYYYYYYY : 32bits If lower (ba) (signed) Compares if 32bits at [ba+address]<YYYYYYYY.
If yes, codes are executed (else code execution set to false).


so the code would be:
26598810 00000065  //check if the value is lower than 101
04598810 00000064  //set the value to 100 if it is indeed lower than 101
E0000000 80008000  //Full Terminator (acts as an End IF)
Title: Re: Need help with Adventure Island: The Beginning (Wiiware)
Post by: salva23 on June 14, 2009, 08:12:07 PM
Amazing. That is the code. It works like a charm. No freezes, no lockups. This is really interesting. Thanks for explaining it to me. I'm so new at this and this sure is different than tools like Tsearch or ArtMoney because well in those tools once you have found the address you just freze or change the value and it seems to work, then you just save your cheats. Cheating in Emulators also seems so easy compared to this.

This is really handy though. So basically the same address is different depending where you are, so just freezing the address to a espesific value caused the game to freeze but by telling the program to only change it if the value is lower than 101 which it's when you are in the shop or in a level, it works fine :)

Awesome thanks a lot to everyone that helped me out here. I was totally lost.