Author
|
Topic: How exactly do IPS patches work? (Read 2 times)
|
sb iq
Guest
|
|
« on: December 14, 2008, 06:09:07 pm » |
|
I know what an IPS patch is and what it does, but how exactly does it work?
Does it just retain where changes in the file were made, and go to those locations to replace data? In other words, is it the equivalent of someone writing down a hex address, going to that hex address, and using a hex editor to copy and replace data?
Or does it actually store the data that will be replaced and search for it? Like if someone didn't have the hex address of what they want to change, so they use the hex editor's search function to look for it and change it?
|
|
|
|
Aerdan
Guest
|
|
« Reply #1 on: December 14, 2008, 06:18:15 pm » |
|
IPS patches are strictly a series of addresses and bytes to write there, though there are two extensions to it that I know of (one being RLE).
|
|
|
|
sb iq
Guest
|
|
« Reply #2 on: December 14, 2008, 06:21:25 pm » |
|
So it is like someone writing down a hex address, going to that hex address, and copying and replacing data via a hex editor?
|
|
|
|
Tauwasser
Guest
|
|
« Reply #3 on: December 14, 2008, 06:28:57 pm » |
|
Essentially, yes!
cYa,
Tauwasser
|
|
|
|
sb iq
Guest
|
|
« Reply #4 on: December 14, 2008, 06:35:29 pm » |
|
Thanks, I was confused about that for awhile.
Is there a patch format that changes data by searching for what should be changed instead of just jumping to a hex address? Like if I wanted to make a patch for a game and there were ROM dumps floating around of varying sizes. Is there a patch format that would work on all those different sized files?
|
|
|
|
Next gen Cowboy
Guest
|
|
« Reply #5 on: December 14, 2008, 06:52:02 pm » |
|
http://www.romhacking.net/utils/329/ Not exactly what you were looking for, but it validates sizes to ensure proper rom size, as well as supports a great deal of formats. This will ensure that people have the proper file to be patched before a patching occurs. I imagine that is what you are worried about?
|
|
|
|
sb iq
Guest
|
|
« Reply #6 on: December 14, 2008, 07:19:28 pm » |
|
Hmmm. It's something like this:
Suppose I have a file called "w" that is composed of this:
[snip]
And I have a patch called "z" that replaces the data that says "x" with "z".
[snip]
Now, let's say I have a different sized file called "u" that goes something like this:
[snip]
Now, I also want my "z" patch to work with the different "pussy" file so it will replace "x" with "z", even though it is a different file and "x" is at a different hex address.
[snip]
So let's say my "z" patch works with "x", is there a way to make it work with "u", too? I want to put my "z" in the "y".
In essence, a patch format that works like "search, find, replace".
My g0D this post is the worst Freudian slip in history.
[EDIT: Removing a few words we don't want Google indexing us with.]
|
|
« Last Edit: December 15, 2008, 09:56:36 am by Kiyoshi Aman »
|
|
|
|
Kitsune Sniper
Guest
|
|
« Reply #7 on: December 14, 2008, 07:39:38 pm » |
|
And now RHDN is going to get search engine hits whenever someone searches for all those words. Good job.
|
|
|
|
Deathlike2
Guest
|
|
« Reply #8 on: December 14, 2008, 07:47:28 pm » |
|
Thanks, I was confused about that for awhile.
Is there a patch format that changes data by searching for what should be changed instead of just jumping to a hex address? Like if I wanted to make a patch for a game and there were ROM dumps floating around of varying sizes. Is there a patch format that would work on all those different sized files?
Before this thread becomes obliterated to the point of no return, you are just better off just using a hex editor and just run the same search+replace function and that would save you time.
|
|
|
|
Tauwasser
Guest
|
|
« Reply #9 on: December 14, 2008, 07:47:32 pm » |
|
This won't work, because how would you say which occurrence is the one meant to be changed? Think a second line of "penis" before the one you want to change.
Also, I guess RHDN's policy disapproves of such postings...
cYa,
Tauwasser
|
|
|
|
sb iq
Guest
|
|
« Reply #10 on: December 14, 2008, 07:50:48 pm » |
|
But what if my intention is to replace any additional lines of "penis" as well? Is there a patch format that does that?
|
|
|
|
Aerdan
Guest
|
|
« Reply #11 on: December 14, 2008, 07:51:59 pm » |
|
Locking this thread before becomes any bigger a trainwreck. And sb iq, please get yourself some maturity. -_-;
|
|
|
|
Nightcrawler
Guest
|
|
« Reply #12 on: December 15, 2008, 09:33:27 am » |
|
The final answer for this topic: http://www.romhacking.net/docs/139/We had the IPS format specs on the site. I'm surprised nobody bothered to search for them. sb iq:Make no mistake, you have been officially warned and are on the radar.
|
|
|
|
|