home *** CD-ROM | disk | FTP | other *** search
/ Chip Hitware 6 A / CHIP_HITWARE6_A.iso / tools / FakeDr / FAKEDR.DOC next >
Text File  |  1996-10-10  |  11KB  |  235 lines

  1. INTRODUCTION
  2. ------------
  3.  
  4. FakeDr is a DOS program that simulates a CD-ROM drive with a directory of
  5. a hard drive. Its intended purpose is to allow running of CD-based
  6. software entirely from a hard drive. This may give you a speed advantage,
  7. but it can also indicate that the CD-ROM is not the bottleneck of your system
  8. if the program does not show a speed increase when run from a hard disk.
  9.  
  10. FakeDr has been developed because FakeCD (a similiar program) has certain
  11. principal barriers that derive from its mechanism to emulate the CD-ROM.
  12. FakeDr hooks itself into the hardware CD-ROM device driver and should there-
  13. fore be indistinguishable from a real CD-ROM drive. Therefore it requires
  14. MSCDEX or a similiar program to be loaded. The use of the accompanying
  15. program InfoDr is also mandatory.
  16.  
  17. This is a BETA release of the program. It was tested with
  18. MS-DOS 6.0, Novell-DOS 7.0, Windows 95 and some CD-based games. It works in
  19. Windows 3.x since these Windows versions use DOS services to access the
  20. CD-ROM. See the Windows 95 section if you are using this operating system,
  21. any comments about the behaviour with other operating systems are welcome.
  22.  
  23. If you find any problems with FakeDr (does not install, does not uninstall,
  24. gives wrong error messages, ...) send an e-mail message to
  25.  
  26. ingo.warnke@rz.uni-rostock.de
  27.  
  28.  
  29. HOW TO USE
  30. ----------
  31.  
  32. Place the files that come with this archive in a directory on your hard
  33. disk. During examples I'll assume that this directory is in your PATH,
  34. otherwise you must give the full path every time you want to run fakedr.exe
  35. or infodr.exe.
  36.  
  37. When you have a CD-ROM that you want to run off the hard disk,
  38. you must copy the content of this CD-ROM to a directory on your
  39. hard disk. You may use any file managing utility or the DOS xcopy command:
  40.  
  41. Example:
  42. xcopy e:\ c:\prog-cd /s 
  43.  
  44. where e: is your CD-ROM drive and c:\prog-cd the destination directory.
  45. Be sure to copy any hidden or system files that may be on the CD.
  46.  
  47. Then (or before the copying) you MUST run InfoDr. This program will copy
  48. all the data that is on the CD-ROM but not in the files onto your hard disk
  49. creating the 3 files fakedr.dat, fakedr.sec and fakedr.aud.
  50.  
  51. The syntax of the InfoDr command line is
  52. infodr /H[elp] | /? | DIRECTORY [x]
  53.  
  54. /Help and /?
  55.   will give you a short description of each option.
  56.  
  57. DIRECTORY
  58.   The place where the fakedr.dat and fakedr.sec files will be put.
  59.   Should be the hard disk directory where the files from the root
  60.   directory of the CD-ROM are, because FakeDr will seek them there,
  61.   but you can as well put them anywhere and copy them later to the
  62.   place where they are needed.
  63.  
  64. x
  65.   Drive letter (without colon) of CD-ROM drive that contains the
  66.   CD-ROM. If this parameter is not given, the first CD-ROM drive
  67.   will be assumed
  68.  
  69. In case the CD-ROM is very complex (many directories and many files)
  70. InfoDr may fail due to memory problems and abort with a Runtime Error.
  71. If this happens, I'd like to be informed (e-mail address see above).
  72. I tested it with some shareware CDs (which were very complex) and InfoDr
  73. worked just fine, so there SHOULD be no problems of this kind.
  74.  
  75. If other fatal problems occur, InfoDr will tell what happened. The reasons
  76. will be that the CD-ROM does not comply with the ISO CD-ROM specification
  77. or even with DOS restrictions (like MYST).
  78.  
  79. A message like
  80. The file E:\EXAMPLE\TEST.}}} is not accessable.
  81. is not fatal.
  82. The emulation still works, but InfoDr thinks that the mentioned file can
  83. not be accessed by normal means. If you can look INTO the file, InfoDr
  84. is obviously wrong and I'd like to be informed for bug correction.
  85.  
  86.  
  87. These 2 steps (copying the files from CD-ROM to hard disk and running
  88. InfoDr) have to be executed successfully only once.
  89. Whenever you want to run the program that was copied to the hard disk
  90. you must run FakeDr. FakeDr is a TSR (memory resident) program. It
  91. will need some 20K of memory during installation and 5 KB during
  92. operation (plus environment) and can be loaded high (with command
  93. "lh fakedr ...").
  94.  
  95.  
  96. The syntax of the FakeDr command line is
  97. fakedr /H[elp] | /? | /U[ninstall] | DIRECTORY [/L:x] [/A[udio]] [/P:DAT-DIR]
  98.  
  99. /Help and /?
  100.   will give you a short description of each option.
  101.  
  102. /Uninstall
  103.   will remove a previously installed FakeDr from memory. This may be
  104.   impossible if some other TSR program was installed after fakeDr. You
  105.   can have only one copy of FakeDr resident in memory at one time. If you
  106.   want to use FakeDr with other parameters, you must first uninstall the
  107.   old copy of FakeDr and then install the new one. If you have several
  108.   CD-ROM based programs on your hard drive you can make batch files like
  109.  
  110.   fakedr c:\prog1-cd /l:e
  111.   e:
  112.   prog1
  113.   fakedr /u
  114.  
  115.   This will load FakeDr and simulate the directory c:\prog1-cd as CD-ROM
  116.   drive E:. After the execution of prog1 the resident copy of FakeDr is
  117.   removed. You can later execute another copy of FakeDr to simulate the
  118.   same directory or another directory.
  119.  
  120. DIRECTORY
  121.   is the name of the directory that will be the root directory of the
  122.   simulated CD-ROM drive. It may be specified as a full path
  123.   (c:\games\kyr1-cd) or as relative path (..\kyr3-cd). The drive on
  124.   which the directory resides may be a local or remote hard disk. It 
  125.   should work with a compressed drive. You can not use another local
  126.   cd-rom drive in this place!
  127.  
  128. /L:x
  129.   gives the drive letter (x) for the simulated CD-ROM drive. x must be
  130.   a CD-ROM drive letter.
  131.   If there is no /L:x parameter, FakeDr takes your first CD-ROM drive
  132.   letter for x.
  133.  
  134. /Audio
  135.   No emulation of cd-audio features. If the program issues commands
  136.   to the cd-rom drive to play audio tracks, they will be passed to
  137.   the real cd-rom drive. This allows the use of audio tracks which
  138.   can not be emulated together with a speed advantage from FakeDr.
  139.   A real cd in the cd-rom drive is required for this option.
  140.  
  141. /P:DAT-DIR
  142.   In case you can not or want not to have the fakedr.dat/sec/aud files
  143.   in the same place as the program files, you can specify another
  144.   path for these files. This may be necessary if the hard drive with
  145.   the program files is actually a remote cd-rom drive.
  146.  
  147. I recommend that you always use the same drive letter for your CD-ROM.
  148. Some programs are run directly from the CD and have some configuration
  149. files on a predetermined place on your hard disk (most often on drive c:).
  150. These programs should not worry if they are started from different drive
  151. letters each time you run them. Other programs copy a small number of
  152. files to your hard disk at installation time and one of these files must
  153. be executed to start the program. This way they can store config files and
  154. (in case of games) savegames to a user selected place on the hard disk.
  155. These programs must find the CD-ROM drive with their CD in it. Some programs
  156. (Legend of Kyrandia series) use CD-ROM specific methods to find the CD-ROM
  157. drive and they work with FakeDr if started from different drive letters each
  158. time they are run. Other programs (Warcraft 2 and Dark Forces)
  159. store the drive letter from which they were installed. If you start them
  160. with FakeDr from a different drive letter they will not find their data and
  161. refuse to run.
  162.  
  163. FakeDr uses extended memory (XMS memory) to have the data from fakedr.dat
  164. readily available. This file should be small ( < 300 KB ). If you are
  165. low on memory and the program complains about to less memory when run
  166. with FakeDr, but works from the CD, you should check the memory requirements
  167. for your program against the free memory after FakeDr is installed (with
  168. DOS mem command). If it turns out that the memory required by FakeDr is
  169. crucial, contact me. I'll try to make a version of FakeDr that requires
  170. less memory and is only slightly slower.
  171.  
  172.  
  173. Windows 95
  174. ----------
  175.  
  176. FakeDr is a utility that uses purely DOS-based methods to accomplish its
  177. task. While Windows 95 is compatible with DOS, the advantage of protected
  178. mode drivers for periphal devices turns into a disadvantage since FakeDr
  179. wants to replace such a driver. Since it can replace only a DOS driver,
  180. you'll have to include this DOS driver in your config.sys, together with
  181. MSCDEX in autoexec.bat (MSCDEX.EXE for Windows 95 can be found in the
  182. COMMAND subdirectory contained in the directory where you installed
  183. Windows 95).
  184.  
  185. If you want to use a DOS program with FakeDr, you'd best have it run in
  186. MS-DOS mode. To do so, open the folder where the program is located and
  187. klick on the executable (.EXE or .BAT file) with the RIGHT mouse button.
  188. Select PROPERTIES and choose the PROGRAM slider. Here click on the EXTENDED
  189. button and select the USE MS-DOS MODE and USE CURRENT MS-DOS CONFIGURATION
  190. boxes. (Note: The capital words are translations from the german Windows 95
  191. version back to english. I'd like to get the original wording for the public
  192. release (version 1.0), so someone not familiar with the process can easily
  193. follow. The same is true for the following paragraph.)
  194.  
  195. If you want to use a Windows program with FakeDr (or don't want to run a
  196. DOS program in MS-DOS mode), you must make the CD-ROM drive that will be
  197. emulated (x in "/l:x" - FakeDr command line option) to be in MS-DOS compa-
  198. tibility mode. Loading the DOS drivers as described above is neccessary, but
  199. Windows 95 will often be smart enough the recognize the drivers and use
  200. its own protected mode drivers instead. How this must be done depends on
  201. what CD-ROM drive you have. It will probably include removing certain
  202. devices from your current configuration in
  203. DESKTOP/CONTROL PANEL/SYSTEM/DEVICE MANAGER
  204. and rebooting. To find out if a drive is in MS-DOS compatibility mode,
  205. open DESKTOP/CONTROL PANEL/SYSTEM/WORK PROPERTIES (the rightmost slider).
  206. This slider will contain a list of all drives that are in MS-DOS compati-
  207. bility mode.
  208.  
  209. There is currently a bug in FakeDr that will crash Windows 95 if the
  210. hard disk with the emulated CD-ROM is in MS-DOS compatibility mode. See
  211. above how to find out if this is true for a certain drive. I am working
  212. on this problem.
  213.  
  214. CD-AUDIO
  215. --------
  216.  
  217. Some games use audio tracks for music. This music is not in a computer
  218. readable form. It was not copied to the hard disk with the other files (and
  219. also not with InfoDr) and it can not be done (at least not in a form useful
  220. for FakeDr). So you will normally not hear that music. FakeDr will however
  221. make the program believe that everything is fine. If you want to enjoy the
  222. game with full audio music but also want speed benefits granted by FakeDr,
  223. add the /A switch to the FakeDr command line. FakeDr will then not emulate
  224. the cd-audio requests from the game but pass them to the real cd-rom drive.
  225. Of course you'll need the real cd-rom in the drive to use this feature.
  226.  
  227.  
  228.  
  229. I hope you will find FakeDr a useful program. If you have comments,
  230. suggestions or bug reports, then send me an e-mail and I will (at least
  231. try to) correct any errors.
  232.  
  233. Ingo Warnke
  234. e-mail to:
  235. ingo.warnke@rz.uni-rostock.de