View previous topic :: View next topic |
Author |
Message |
Jvlaple Grandmaster Cheater
Reputation: 0
Joined: 15 Dec 2008 Posts: 768
|
Posted: Wed Apr 01, 2009 4:10 am Post subject: [Help] Binary Diff |
|
|
How would I create a binary diff, such as having one binary file and another then comparing the differences then generating a new patch file which shows the difference between the two files? And then after I've generated the diff how would I apply it? I'm guessing you use some kind of checksum to check which bytes are equal then if they're not you add them into the diff file like:
<byte length><byte offset><AoB to insert>
And then the patcher might read the patch file like
read the length then the offset and the AoB then insert the extra bytes into the file? But how would I be able to accomplish this?
Thanks in advance
_________________
jadeling wrote: | how do i save my npc? |
samerj13 wrote: | What the fuck is visual basic? |
|
|
Back to top |
|
 |
Zerith Master Cheater
Reputation: 1
Joined: 07 Oct 2007 Posts: 468
|
Posted: Wed Apr 01, 2009 4:22 am Post subject: |
|
|
This makes sense.
|
|
Back to top |
|
 |
nog_lorp Grandmaster Cheater
Reputation: 0
Joined: 26 Feb 2006 Posts: 743
|
Posted: Wed Apr 01, 2009 7:29 pm Post subject: |
|
|
Perhaps use one of the patch creators from Crackers Kit.
_________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish |
|
Back to top |
|
 |
Jvlaple Grandmaster Cheater
Reputation: 0
Joined: 15 Dec 2008 Posts: 768
|
Posted: Thu Apr 02, 2009 7:07 am Post subject: |
|
|
nog_lorp wrote: | Perhaps use one of the patch creators from Crackers Kit. |
I want to know how to make one, not use a prexisitng patch creator. I need it for my MMORPG D;
_________________
jadeling wrote: | how do i save my npc? |
samerj13 wrote: | What the fuck is visual basic? |
|
|
Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Thu Apr 02, 2009 9:54 am Post subject: |
|
|
Well, compare EACH byte within the same offset, now if it finds one store it in a variable, if it finds more create an array at run-time and store them all (if it finds more) there and when it gets to end of file save it in a file.
|
|
Back to top |
|
 |
Jvlaple Grandmaster Cheater
Reputation: 0
Joined: 15 Dec 2008 Posts: 768
|
Posted: Thu Apr 02, 2009 9:41 pm Post subject: |
|
|
Rot1 wrote: | Well, compare EACH byte within the same offset, now if it finds one store it in a variable, if it finds more create an array at run-time and store them all (if it finds more) there and when it gets to end of file save it in a file. |
hmm if theres too many differences it might end up that the patch file is larger than the original XD but I will try that thanks
_________________
jadeling wrote: | how do i save my npc? |
samerj13 wrote: | What the fuck is visual basic? |
|
|
Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Fri Apr 03, 2009 3:27 am Post subject: |
|
|
Jvlaple wrote: | Rot1 wrote: | Well, compare EACH byte within the same offset, now if it finds one store it in a variable, if it finds more create an array at run-time and store them all (if it finds more) there and when it gets to end of file save it in a file. |
hmm if theres too many differences it might end up that the patch file is larger than the original XD but I will try that thanks |
No lol, it'll get only the bytes that aren't equal (less size) instead of taking the whole buffer (larger).
|
|
Back to top |
|
 |
|