Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Help] Binary Diff

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Jvlaple
Grandmaster Cheater
Reputation: 0

Joined: 15 Dec 2008
Posts: 768

PostPosted: Wed Apr 01, 2009 4:10 am    Post subject: [Help] Binary Diff Reply with quote

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 Very Happy

_________________
jadeling wrote:
how do i save my npc?

samerj13 wrote:
What the fuck is visual basic?
Back to top
View user's profile Send private message
Zerith
Master Cheater
Reputation: 1

Joined: 07 Oct 2007
Posts: 468

PostPosted: Wed Apr 01, 2009 4:22 am    Post subject: Reply with quote

This makes sense.
Back to top
View user's profile Send private message MSN Messenger
nog_lorp
Grandmaster Cheater
Reputation: 0

Joined: 26 Feb 2006
Posts: 743

PostPosted: Wed Apr 01, 2009 7:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jvlaple
Grandmaster Cheater
Reputation: 0

Joined: 15 Dec 2008
Posts: 768

PostPosted: Thu Apr 02, 2009 7:07 am    Post subject: Reply with quote

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
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Thu Apr 02, 2009 9:54 am    Post subject: Reply with quote

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
View user's profile Send private message
Jvlaple
Grandmaster Cheater
Reputation: 0

Joined: 15 Dec 2008
Posts: 768

PostPosted: Thu Apr 02, 2009 9:41 pm    Post subject: Reply with quote

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 Very Happy thanks

_________________
jadeling wrote:
how do i save my npc?

samerj13 wrote:
What the fuck is visual basic?
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Fri Apr 03, 2009 3:27 am    Post subject: Reply with quote

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 Very Happy 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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites