| Reverse Patches? |
|
Forum Index - SMW Hacking - General SMW Hacking Help - Reverse Patches? |
|
Pages: 1  |
|
|
|
| Posted on 2010-02-25 04:14:33 PM |
Link | Quote |
|
|
is there anyway to reverse a patch? Like unpatch the patch from the rom.
|
| Last edited on 2010-02-25 04:14:55 PM by dubefest. |
|
| Posted on 2010-02-25 04:22:34 PM |
Link | Quote |
|
Originally posted by Nicol BolasWhat kind of patch was it? An IPS patch can be pretty tricky to undo. But xkas patches are relatively easy.
Xkas-based patches come in two forms: those that only modify the SMW source code/data, and those that modify the source/data as well as adding more information. If an xkas patch requires that you provide some free space, then you're talking about the latter kind.
It's easy to remove the effects of either kind. Simply change the bytes back into what it used to be. All.log is a great resource to find out what exactly was overwritten, as well as what it used to be.
Somewhere in the .asm file will be at least one line of the form:
org [ some number ]:
The "some number" is the byte address into the ROM of where the following source code should go. So load up the ROM in a hex editor, find that memory address, and insert the original values. Again, use all.log to find out what used to go there.
Things get more complicated when you're dealing with xkas patches that take freespace. Even with these, there will be at least one line like the above, where it directly changes a section of the SMW code. If you revert that part back to what it used to be, then it doesn't matter what was written elsewhere; that code will never be called.
Unfortunately, if they used the "RATS" tag in their code, as they should, then that chunk of memory will never be used. However, since you have the memory address of where you put it, since you had to write that address in to properly patch your ROM, you can easily enough simply write zeros into that space.
Try this.
|
|
| Posted on 2010-02-25 06:22:57 PM |
Link | Quote |
|
Originally posted by RabeesOriginally posted by Nicol BolasWhat kind of patch was it? An IPS patch can be pretty tricky to undo. But xkas patches are relatively easy.
Xkas-based patches come in two forms: those that only modify the SMW source code/data, and those that modify the source/data as well as adding more information. If an xkas patch requires that you provide some free space, then you're talking about the latter kind.
It's easy to remove the effects of either kind. Simply change the bytes back into what it used to be. All.log is a great resource to find out what exactly was overwritten, as well as what it used to be.
Somewhere in the .asm file will be at least one line of the form:
org [ some number ]:
The "some number" is the byte address into the ROM of where the following source code should go. So load up the ROM in a hex editor, find that memory address, and insert the original values. Again, use all.log to find out what used to go there.
Things get more complicated when you're dealing with xkas patches that take freespace. Even with these, there will be at least one line like the above, where it directly changes a section of the SMW code. If you revert that part back to what it used to be, then it doesn't matter what was written elsewhere; that code will never be called.
Unfortunately, if they used the "RATS" tag in their code, as they should, then that chunk of memory will never be used. However, since you have the memory address of where you put it, since you had to write that address in to properly patch your ROM, you can easily enough simply write zeros into that space.
Try this.
try wut?
|
|
| Posted on 2010-02-25 06:56:51 PM |
Link | Quote |
|
Originally posted by omegazeroINFItry wut?
Try doing whats in the quote.
...Also, even though this is kind of backseat modding, its usually better to only quote the information you're responding to.
|
| Last edited on 2010-02-25 06:57:40 PM by Thomas. |
|
| Posted on 2010-02-25 08:08:13 PM |
Link | Quote |
|
|
It was an Xkas patch, and i don't know how to hex edit or do ASM...
|
|
| Posted on 2010-02-25 08:11:17 PM |
Link | Quote |
|
Originally posted by dubefesti don't know how to hex edit or do ASM...
You don't need to, just replace the spot the patch wrote over with the original code. Copy n' paste.
|
|
| Posted on 2010-02-25 08:23:58 PM |
Link | Quote |
|
Where do i find the ASM file? I need a Hex editor? WTF? I am totally confused
|
| Last edited on 2010-02-25 08:25:37 PM by dubefest. |
|
| Posted on 2010-02-25 08:36:56 PM |
Link | Quote |
|
Originally posted by Nicol BolasSo load up the ROM in a hex editor
Oops, didn't see that. Its pretty simple though.
1. Download this hex editor.
2. In the patch's asm file, find org [some number]. This is the address that the patch overwrote.
3. Open the rom in the hex editor.
4. Open a clean rom in the hex editor.
5. Find the address, and replace the values that the patch wrote with the values from the original Super Mario World.
|
|
| Posted on 2010-02-25 08:52:13 PM |
Link | Quote |
|
|
OH CRAP!!!! It was an IPS file...Help? is there a way to un do the ips patch?
|
|
| Posted on 2010-02-25 09:37:06 PM |
Link | Quote |
|
Originally posted by dubefestOH CRAP!!!! It was an IPS file...Help? is there a way to un do the ips patch?
There is a way, but I don't know how and Nicol Bolas doesn't explain how to in his quote oddly.
|
|
| Posted on 2010-02-26 03:43:57 AM |
Link | Quote |
|
There is a very simple way to do this: Revert to a backup made before patching. Really, you should always make one before applying any patch to your ROM.
If you haven't, well... let's just say I think this page might interest you.
|
|
| Posted on 2010-02-26 07:28:10 AM |
Link | Quote |
|
Originally posted by yoshicookiezeusThere is a very simple way to do this: Revert to a backup made before patching. Really, you should always make one before applying any patch to your ROM.
If you haven't, well... let's just say I think this page might interest you.
Well I did make a backup but the patch worked on the rom so I edited everything...so I guess i'll port. Is there anyway to save the ExGFX in the game?
|
|
| Posted on 2010-02-26 10:57:39 AM |
Link | Quote |
|
|
Don't you already have them all in the ExGraphics folder?
|
|
| Posted on 2010-02-26 12:03:59 PM |
Link | Quote |
|
Originally posted by yoshicookiezeusDon't you already have them all in the ExGraphics folder?
Nevermind, I already transferred everything.
|
|
|
Pages: 1  |
|
|
|
|
Forum Index - SMW Hacking - General SMW Hacking Help - Reverse Patches? |