home *** CD-ROM | disk | FTP | other *** search
/ Pelit 2000 / pelit2000.iso / ohjelmat / compar13.zip / COMPARE.TXT < prev    next >
Text File  |  1995-11-20  |  8KB  |  164 lines

  1.                                     COMPARE 1.3
  2.                           by Jean "Flynn" Flinois, 1986-1995
  3.                 100631,3345@compuserve.com
  4.  
  5.  
  6. 1)Disclaimer
  7. ------------
  8.  
  9. This program is freeware.
  10. It is a free utility, and therefore neglecting the cost of diskette, no price is to be entailed with its distribution. 
  11. On another hand, it is copyrighted stuff, so you can't modify it.
  12.  
  13. If you really want to, you can consider it as a charityware, and send $10 to any charity organization you want. A nice thank you message is always appreciated, too ...
  14.  
  15.  
  16. 2)Purpose
  17. ---------
  18.  
  19. This program is a freeware programming aid and a game helper. It's main purpose is to compare two binary files and find quickly where are the differences between them, so you can for example find where are the lives in a game by comparing two differents save game files.
  20.  
  21. It is able to compare the files even if they don't have the same size. It can SEARCH each file for data, EDIT each file, copy some (small) part of one file into the other one.
  22.  
  23. It works under DOS and WINDOWS 3.X NT. I didn't test it with WIN95.
  24.  
  25.  
  26. 3)Keywords
  27. ----------
  28.  
  29. DOS WINDOWS UTIL COMPARE EDIT HACK HACKER GAME CHEET HELPER HEX HEXA HEXADECIMAL FREEWARE
  30.  
  31.  
  32. 4)WARNING
  33. ---------
  34.  
  35. This program allow you to modify any file you can open in write mode.
  36.  
  37. This implies you may screw up everything in your computer using this program, especially if you don't know what you are doing. I will not be responsible for whatever you do with this program, or whatever the program does. Use it on backed-up files, so you can easily restore your mess.
  38.  
  39.  
  40. 5)Some user's guide
  41. -------------------
  42.  
  43. First please apologize my english mistakes. I am french and english is not my cup of tea.
  44.  
  45. I wrote this program in 1986. That's a long time ago, and you will find that it has a smell of good ol'time DOS look. Nevertheless, I can't do anything with my computer today without it. I never released it because I did not finished it, expecting somebody to come up with a nice better product that would do a lot of more nice stuff, but I still wait for this. So I fixed the few bugs it had and here it is !
  46.  
  47. Syntax
  48. ------
  49.  
  50. To start COMPARE to edit one file, you simply type in :
  51.  
  52.         COMPARE myfile <enter>
  53.  
  54. To start COMPARE to edit and compare two file, guess what :
  55.  
  56.         COMPARE myfile1 myfile2 <enter>
  57.  
  58. If you don't remember that syntax, type in :
  59.  
  60.         COMPARE <enter>    (neat, huh?)
  61.  
  62. The Main Menu
  63. -------------
  64.  
  65. What you see next is the hexadecimal dump of your first file. If you requested a compare of two files,  any byte that differ between the two files will appear highlighted.
  66.  
  67. Press the "RIGHT" key to see file 2
  68. Press the "LEFT"  key to see file 1
  69. Press the "DOWN"  key to see the next bytes of the file(s).
  70. Press the "UP"    key to see the previous bytes of the file(s).
  71.  
  72. Press the "END" key to go at the end of the files (synchro at the end of the current file)
  73. Press the "HOME" key to get to the begining of both files.
  74.  
  75. If you want to find forward the next difference between the two files, press F1
  76. If you want to find backward the previous difference between the two files, press F2
  77.  
  78. if you suspect that there is a desynchronisation between the two files (for example if a couple of byte seem to have been inserted), you can move only one file regarding the other one :
  79.  
  80. Press F3 to go forward into file 1
  81. Press F4 to go backwrd into file 1
  82. Press F5 to go forward into file 2
  83. Press F6 to go backwrd into file 2
  84.  
  85.  
  86. If that kind of synchronisation is too slow, you can set up each file to any address you want directly by pressing the F7 key to enter the "GOTO" sub-menu.
  87.  
  88. If you want to EDIT the area you are looking at, press F8 and go into the EDIT sub-menu. Obviously the file you will edit is the one you selected with the "RIGHT" and "LEFT" keys
  89.  
  90. If you want to SEARCH any of your two files, select the file you want to search with the LEFT and RIGHT keys, and press F9 and enter the SEARCH sub-menu; unless you want to repeat a previous search operation, done by pressing the F10 key.
  91.  
  92. Warning: the F10 repeats the search operation starting the first byte you see on your screen. If you repeat pressing the F10 key, it keeps finding the same data over and over and nothing moves. So you need to go forward with the "DOWN" key before you press the F10 key again. I know it's weird, but nobody is perfect, huh?
  93.  
  94. The EDIT mode
  95. -------------
  96.  
  97. Once you hit the F8 key, you enter the EDIT sub menu, and that's where you may screw up thing for good if you don't know what you are doing.
  98.  
  99. Your cursor goes into the data field and you can modify them directly using Hexadecimal notation. Use the cursor keys to move from a byte to another.
  100.  
  101. If you want to enter your modifications in ASCII mode, hit the TAB key, and your cursor goes in the ASCII part of the display. Enter your modifications in ASCII then.
  102.  
  103. In EDIT mode, the F5 key allow you to copy the other file (assuming you set the other file properly). This is kind of a useful feature though.
  104.  
  105. Once you finished your changes, you may :
  106.     hit ESC to cancel them and not change the file (changed your mind huh?)
  107.     hit F9 to confirm the changes.
  108.  
  109. If the files are in write protect, the changes won't be made (but you oddingly won't be warned)
  110.  
  111. The GOTO mode
  112. -------------
  113.  
  114. The program will first ask you if you want to position the 1st file, the 2nd file, or Both files. It will ask you this question only if you edit two files at a time of course.
  115. After you answer, you will be prompted for the location to reach. You may enter any number in decimal or hexadecimal like this :
  116.  
  117.         12345 <enter>    (decimal)
  118.         0x3039 <enter>    (hexadecimal)
  119.         ESCape key    (changed your mind)
  120.  
  121. The SEARCH mode
  122. ---------------
  123.  
  124. You may make 3 different kind of searching :
  125.  
  126.     - search in Hexademimal mode
  127.     - search in strict Ascii mode (upper/lower case matters)
  128.     - search in non Case sensitive ascii mode (upper/lower case doen't matter)
  129.  
  130. If you choose hexadecimal, you will have to enter an hexadecimal string like this :
  131.     suppose you want find the bytes "12 34 56 AB CD"
  132.     you will enter : 123456ABCD<enter>
  133.  
  134. If you choose Ascii or "no Case", you just enter the string you are looking for.
  135.  
  136. You are limited to a search of 30 bytes.
  137.  
  138.  
  139.  
  140. 6) How do I use this to cheet on a game ?
  141. -----------------------------------------
  142.  
  143. Briefly, here is one method. It doen't work for all games, but it works pretty often.
  144.  
  145. 1) Start your game. Let's say you have 5 lives. 
  146. 2) Save it. You get a saved game file name MYGAME1.SAV (rename it if needed)
  147. 3) Reload this MYGAME1 file and lose one life (you have only 4 now). 
  148. 4) Save the game promptly under the name MYGAME2.SAV.
  149. 5) Exit your game (not needed if you work with Windows NT)
  150. 6) Start COMPARE MYGAME1.SAV MYGAME2.SAV
  151. 7) Press F1 until you find a "4" of file2 which has the "5" value in file 1
  152. 8) Use the edit mode to change the value you found from "4" to "6" in file2. If you found several values, you will have to make several tests
  153. 9) Reload your game and the saved game2 MYGAME2
  154. 10) If you get 6 lives, you are through ! if not, restore MYGAME2.SAV and goto step 5 to find a better candidate for the life counter.
  155. 11) Don't forget to save the Galaxy and shut the light before you leave.
  156.  
  157.  
  158.  
  159.  
  160. I hope you'll enjoy this tool as much as I do. Suggestions and comments are welcome, but I don't really intend to modify this thing soon.
  161.  
  162. Rgds
  163. Flynn.
  164.