Variables Comparison Help

Discussions Related to Game Hacking and Memory Hacking Software

Moderators: g3nuin3, SpeedWing, WhiteHat, mezzo

Variables Comparison Help

Postby martix » Wed Mar 11, 2009 5:54 am

I have 2 savegames here - one is working and one is broken.
I also have an editor for the game that can modify the save's global variables.

Now - I need to compare those 2 sets of vars to each other to see what is broken. Going thru 1K of the by hand is out of the question, so I need some automation.
Any help greatly appreciated.
User avatar
martix
Acker
 
Posts: 55
Joined: Sun Feb 17, 2008 5:53 pm

Postby martix » Wed Mar 11, 2009 9:37 pm

Question:
How do I copy a chunk of memory?

I found where all the variables reside in memory, but I cannot copy that chunk to any editor and so I cannot compare anything at the moment.
User avatar
martix
Acker
 
Posts: 55
Joined: Sun Feb 17, 2008 5:53 pm

Postby minorutono » Thu Mar 12, 2009 12:02 am

Uhh. Try looking at the area in the Hex Editor.
User avatar
minorutono
i R t3h nUB!!111
 
Posts: 944
Joined: Thu Apr 17, 2008 10:10 am
Location: 2845 Vista Verde Way Cameron Park CA 95682

Postby martix » Thu Mar 12, 2009 2:48 am

Yea but how do I copy the code?
User avatar
martix
Acker
 
Posts: 55
Joined: Sun Feb 17, 2008 5:53 pm

Postby minorutono » Thu Mar 12, 2009 6:27 am

Do you need to copy it or do you just have to compare it?

Try this : open the Hex Editor, take a SS of the area you wanna compare, paste it into MS Paint or Adobe PS or w/e. Go back to your game, move things around, compare the Live Hex Editor with the SS.

Would that work?
User avatar
minorutono
i R t3h nUB!!111
 
Posts: 944
Joined: Thu Apr 17, 2008 10:10 am
Location: 2845 Vista Verde Way Cameron Park CA 95682

Postby spunge » Thu Mar 12, 2009 7:32 am

Assuming the file is not an executable, and the file is not encrypted or have additional virtual allocations, just use a .diff engine.
spunge
NULL
 
Posts: 121
Joined: Sun Jul 27, 2008 4:58 am
Location: VEH callback

Postby martix » Thu Mar 12, 2009 7:43 am

Well since I did not find any way to copy the code, I used a screen capture utility that turned what it saw to text.
But it took a lot of time to do for all of them. Then I had to format with some regexes, then to write something to compare them... whole lot of stuff.
But I did it in the end.
User avatar
martix
Acker
 
Posts: 55
Joined: Sun Feb 17, 2008 5:53 pm

Postby L. Spiro » Thu Mar 12, 2009 8:41 am

Select what you want to copy in the Hex Editor.

Edit/Copy As/Copy As Hex Text (Ctrl-Shift-C).




4D 5A 90 00 03 00 00 00 04 00 00 00 FF FF 00 00 B8 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 E0 00 00 00 0E 1F BA 0E 00 B4 09 CD 21 B8 01 4C CD 21 54 68 69 73 20 70 72 6F 67 72 61 6D 20 63 61 6E 6E 6F 74 20 62 65 20 72 75 6E 20 69 6E 20 44 4F 53 20 6D 6F 64 65 2E 0D 0D 0A 24 00 00 00 00 00 00 00 9E 5A 34 7B DA 3B 5A 28 DA 3B 5A 28 DA 3B 5A 28 FD FD 21 28 D8 3B 5A 28 FD FD 27 28 DF 3B 5A 28 FD FD 37 28 D4 3B 5A 28 19 34 07 28 DD 3B 5A 28 DA 3B 5B 28 98 3B 5A 28 FD FD 34 28 D6 3B 5A 28 FD FD 26 28 DB 3B 5A 28 FD FD 22 28 DB 3B 5A 28 52 69 63 68 DA 3B 5A 28 00 00 00 00 00 00 00 00 50 45 00 00 4C 01 05 00 FA 0E 9C 49 00 00 00 00



L. Spiro
Our songs remind you of songs you’ve never heard.
User avatar
L. Spiro
L. Spiro
 
Posts: 3129
Joined: Mon Jul 17, 2006 10:14 pm
Location: Tokyo, Japan


Return to General Related Discussions

Who is online

Users browsing this forum: No registered users and 0 guests