WiiRd forum

USB Gecko Related => Gecko OS Game Compatibility => Topic started by: FL4SHK on September 28, 2010, 01:50:24 AM

Title: How the "Disable Write Protection" code was made?
Post by: FL4SHK on September 28, 2010, 01:50:24 AM
Specifically, in Metroid:  Other M.  How could it be made if there's write protection?
Title: Re: How the "Disable Write Protection" code was made?
Post by: dcx2 on September 28, 2010, 03:06:32 AM
Honestly, I think this sort of discussion shouldn't be held in the public areas of the forum.  It is possible that Nintendo could be lurking and they may use this information to improve their protection.
Title: Re: How the "Disable Write Protection" code was made?
Post by: FL4SHK on September 28, 2010, 03:28:21 AM
Oh, sorry.  That's a good point.

Edit:  Well, then, should I send a P.M. to someone?
Title: Re: How the "Disable Write Protection" code was made?
Post by: Dude on September 28, 2010, 05:29:16 PM
Very good point, dcx2.

I'd also love to know how the code was made, what it does, how it does it, etc!

Would be tricky to find out from those that know, though - would be a fair job for the people to reply to PMs, and how do you know that a nintendo rep isn't one of the ones requesting??

Info on this would be awesome to know  :cool:
Title: Re: How the "Disable Write Protection" code was made?
Post by: FL4SHK on September 28, 2010, 08:22:44 PM
Dude... I don't work for Nintendo, nor do I have contact with anyone who works for Nintendo.  For one thing, I have a hacked 4.2 (not 4.3) Wii.  The main thing that I want to know is how to search for more complicated things than just the current (or max) values for things like health and missiles.  I was thinking that I could make better codes if someone could tell me how to find values.  Additionally, what can I do with a breakpoint?  In hindsight, I probably should have mentioned this from the start.
Title: Re: How the "Disable Write Protection" code was made?
Post by: dcx2 on September 28, 2010, 08:38:09 PM
I don't think anyone meant to imply that you, FLSHK specifically, are somehow related to Nintendo.  But these forums can be viewed by anyone, even those without accounts.

As far as making better codes...you need to use your imagination.  For instance, in Resident Evil 4, the sniper rifle zoom is stored as a float somewhere in memory.  Zooming in and out while doing less than/greater than searches helped me to find the zoom value.  Looking around the zoom value in Memory Viewer helped me find other things related to the sniper rifle, like the offset that makes the aim unsteady.  Using breakpoints, I could see who was reading and/or writing this unsteady aim offset.  Then I found the code that was reading the value and adding it to your current aim, so I patched the ASM so that it doesn't add the offset anymore.

In Okami, there are items that you can equip called artifacts.  I repeatedly equipped and unequipped an artifact while doing equal/notequal searches.  Eventually, you find the variable that indicates what artifact you have equipped in a particular slot.  I then used a read breakpoint to see who was asking "what artifact is in that slot?".  Once I found it, I was able to convince the game that the answer was "every artifact is in this slot".

I found it easiest to start with timers, though.  Find something that counts down (like the temporary invincibility after getting hit in Super Mario Galaxy), and do repeated less-than searches while pausing the game and stepping through it one frame at a time.  Eventually you may find a timer that's counting down.  Set a write breakpoint on it and try to find the code that is subtracting 1 from it.  Then you can patch subtraction out of the code, and you have permanent invincibility.
Title: Re: How the "Disable Write Protection" code was made?
Post by: FL4SHK on September 28, 2010, 09:09:44 PM
Oh, okay.  Thanks for the tips.  I'll be sure to use them.
Title: Re: How the "Disable Write Protection" code was made?
Post by: Skiller on September 30, 2010, 05:52:31 PM
Quote from: dcx2 on September 28, 2010, 03:06:32 AM
Honestly, I think this sort of discussion shouldn't be held in the public areas of the forum.  It is possible that Nintendo could be lurking and they may use this information to improve their protection.

its not always a bad thing :P its always fun finding new ways to do things but it is true that this kinda information should be Kept in the hackers section mainly do to the fact of u dont know whos goin to use this info and for what ..
Title: Re: How the "Disable Write Protection" code was made?
Post by: Bully@Wiiplaza on October 04, 2010, 01:39:30 PM
Quote from: Skiller on September 30, 2010, 05:52:31 PM
Quote from: dcx2 on September 28, 2010, 03:06:32 AM
Honestly, I think this sort of discussion shouldn't be held in the public areas of the forum.  It is possible that Nintendo could be lurking and they may use this information to improve their protection.

its not always a bad thing :P its always fun finding new ways to do things but it is true that this kinda information should be Kept in the hackers section mainly do to the fact of u dont know whos goin to use this info and for what ..
wait, how can you access the hacking part?
I can´t, but I need to make the hacker test, right? :D
If I get some time for it, I´ll pown this noobish test, I am a lot better now than all of this stuff, easy going ;)

And I also know how the write protection code was made, but not exactly...
Title: Re: How the "Disable Write Protection" code was made?
Post by: matt123337 on October 07, 2010, 03:00:20 AM
dude bro. Just PM Link
Title: Re: How the "Disable Write Protection" code was made?
Post by: Romaap on October 07, 2010, 07:09:34 PM
Just PM one of the Mod's with a link to a couple of your codes and we'll grant you Hacker Status. :)
Title: Re: How the "Disable Write Protection" code was made?
Post by: matt123337 on October 08, 2010, 01:00:56 AM
that'll work as well :P
Title: Re: How the "Disable Write Protection" code was made?
Post by: Bully@Wiiplaza on October 11, 2010, 08:20:48 PM
Quote from: Romaap on October 07, 2010, 07:09:34 PM
Just PM one of the Mod's with a link to a couple of your codes and we'll grant you Hacker Status. :)
alright, I PM´ed it to you, there won´t be any doubts, I sent about 30 codes xD
Title: Re: How the "Disable Write Protection" code was made?
Post by: Romaap on October 11, 2010, 09:05:47 PM
Quote from: Bully@Wiiplaza on October 11, 2010, 08:20:48 PM
Quote from: Romaap on October 07, 2010, 07:09:34 PM
Just PM one of the Mod's with a link to a couple of your codes and we'll grant you Hacker Status. :)
alright, I PM´ed it to you, there won´t be any doubts, I sent about 30 codes xD
Yep, congratulations with your brand new Hacker Status. ;)
Title: Re: How the "Disable Write Protection" code was made?
Post by: benny3t3 on October 17, 2010, 12:46:26 AM
hmm... can you bcc (i think it is bcc) me in to that PM?

It's just plain interesting
Title: Re: How the "Disable Write Protection" code was made?
Post by: megazig on November 02, 2010, 06:19:19 AM
Quote from: Skiller on September 30, 2010, 05:52:31 PM
Quote from: dcx2 on September 28, 2010, 03:06:32 AM
Honestly, I think this sort of discussion shouldn't be held in the public areas of the forum.  It is possible that Nintendo could be lurking and they may use this information to improve their protection.

its not always a bad thing :P its always fun finding new ways to do things but it is true that this kinda information should be Kept in the hackers section mainly do to the fact of u dont know whos goin to use this info and for what ..

things like this won't be patched by Nintendo because it's posted on a forum.  this "hackers" forum is also hidden to people who do other asm hacking and haven't done wiird codes yet. seems hard for people to contribute when that's the case
Title: Re: How the "Disable Write Protection" code was made?
Post by: Romaap on November 02, 2010, 08:40:06 AM
Oh, Hi megazig.
I gave you hacker status because I know you deserve it. ;)