home *** CD-ROM | disk | FTP | other *** search
/ WADS of WADS / WadsOfWads.1994.zip / TEXT / WINDOOM.TXT < prev    next >
Text File  |  1994-03-25  |  12KB  |  381 lines

  1.  
  2.                      How to run Doom under Windows
  3.                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  4.  
  5.                           2nd Edition 23/3/94
  6.  
  7.  
  8. Windows version tested with: Windows v3.1.
  9. Machine tested with: Zenith 425Ln laptop with 12MB of RAM.
  10. (The above applies to 'SECTION I' help only)
  11.  
  12. Introduction.
  13. -------------
  14.  
  15. Q: Why would I want to run Doomunder Windows?
  16. A: For some people, this appears to be one way of curing the PS/2
  17.    'psycho mouse' problem. For others, it may just be convenience. And
  18.    then again, maybe some people actually _like_ Windoze... :)
  19.  
  20.  
  21. As far as complete instructions go, this file is in test-mode! Please
  22. report any innacuracies, additions, clearer explanations, etc. to me. I
  23. personally take no responsibility for the accuracy of this information,
  24. as I don't even have a pc of my own to test it on. But as far as I
  25. know, it's pretty comprehensive. The PIF file may, or may not, work
  26. on your system (the above 'tested-with' specification refers to
  27. 'SECTION I' help only).
  28.  
  29. Contents:
  30.  
  31. SECTION I:   How to run Doom under windows.
  32. SECTION II:  An example PIF file.
  33. SECTION III: How to get sound under windows as well.
  34. SECTION IV:  An answer to those who may encounter memory problems.
  35.  
  36. Acknowledgements. Thanks to:-
  37.  
  38. Adam Brown (brouna@world.std.com)
  39.  
  40.      - for writing the how-to-create-the-doom-pif-file information
  41.        given in SECTION I.
  42.  
  43.  
  44. Ethan G. Henry (eghenry@sunee.uwaterloo.ca)
  45.  
  46.      - for the example PIF file given in SECTION II.
  47.  
  48.  
  49. Steve Loughran (slo@hplb.hpl.hp.com)
  50.  
  51.      - for the 'how to get sound under windows' information.
  52.  
  53.  
  54. Adam Brown (brouna@world.std.com)
  55.  
  56.      - for the memory help. Basically, someone emailed me asking for help
  57.        concerning memory allocation. I forwarded the query to Adam and this
  58.        is his response.
  59.  
  60.  
  61. The idea behind this help file is to get it perfected so that it could
  62. perhaps be included in the Doom FAQ sometime in the future. Who knows -
  63. it depends on how much people want to know about how to run Doom under
  64. windows. Much of the necessity will probably vanish once the PS/2
  65. mouse problem is fixed.
  66.  
  67. BTW, do NOT email/pester/harrass/bug Adam, Ethan or Steve with questions,
  68. etc. Email ME! I'll act as a filter if there's anything that people want to
  69. know. That way, they won't get mailed with 50 copies of the same question or
  70. something. :)
  71.  
  72. Windows experts please feel free to email me with descriptions of
  73. greater detail and clarity if you think that a TOTAL novice would find
  74. such added detail more useful (just imagine you'd never used windows
  75. before. Would this help file be clear enough?).
  76.  
  77. Anyway, here goes!...
  78.  
  79.  
  80. SECTION I:
  81.  
  82. Getting DOOM to run under Windows 3.1
  83. =====================================
  84.  
  85. In order to make DOOM run under Windows, you need to create a .PIF 
  86. file,  which tells Windows where to find the DOOM files, how much
  87. memory to allocate, and how to deal with other tasks that might be
  88. going on at the same time.
  89.  
  90. -----
  91. Step 1 - Open your .PIF Editor
  92. -----
  93.  
  94. If the PIF editor icon is on your Program Manager desktop, double-click
  95. on it to open the editor.
  96.  
  97. If there is no PIF editor icon, then from the Program Manager:
  98.  
  99.   Type ALT-F R, and enter "PIFEDIT" in the box that appears.
  100.  
  101.  
  102. -----
  103. Step 2 - Enter the values required in the editor, as below:
  104. -----
  105.  
  106.     Program Filename:  DOOM.EXE
  107.         Window Title: (leave blank)
  108.  Optional Parameters: (leave blank, or place any DOS command line
  109.                       parameters you normally use here)
  110.   Start-up Directory: C:\DOOM (or the directory containing your DOOM 
  111.                       program)
  112.         Video Memory: High Graphics
  113.  
  114. Memory Requirements:
  115.  
  116.          KB Required: 512   Desired: -1
  117.  
  118. EMS Memory:
  119.  
  120.          KB Required: 1024   KB Limit: -1
  121.  
  122. XMS Memory:
  123.  
  124.          KB Required: 1024   KB Limit: -1
  125.  Display Usage      : Full Screen
  126.  Execution          : Check "Exclusive" but not "Background"
  127. Close Window on Exit: Checked
  128.  
  129. Now click on the "Advanced" button, and fill in the options as follows:
  130.  
  131.     Background Priority: 50
  132.     Foreground Priority: 100
  133.        Detect Idle Time: Checked
  134.       EMS Memory Locked: Not Checked
  135.       XMS Memory Locked: Not Checked
  136.   Uses High Memory Area: Checked
  137. Lock Application Memory: Not Checked
  138.  
  139. Monitor Ports:
  140.                    Text: Checked
  141.            Low Graphics: Checked
  142.           High Graphics: Checked
  143.       Emulate Text Mode: Checked
  144.     Retain Video Memory: Checked
  145.  
  146. Other Options:
  147.  
  148.               Alt+Space: Checked
  149.              All others: Not Checked
  150.  
  151. Now click on the "OK" button.
  152.  
  153.  
  154. -----
  155. Step 3 - Save your PIF file
  156. -----
  157.  
  158. Type ALT-F S (File Save)
  159.  
  160. Select your DOOM directory, and save the file as "DOOM.PIF"
  161.  
  162. Type ALT-F X (File eXit) to leave the PIF editor.
  163.  
  164.  
  165. -----
  166. Step 4 - Put a DOOM icon on your desktop
  167. -----
  168.  
  169. Go back to the program manager, and click on a group that you want the DOOM 
  170. program to appear in.
  171.  
  172. Type ALT-F N (File New)
  173.  
  174. Ensure Program Item is checked, and then click on "OK"
  175.  
  176. Fill in the dialog box as follows:
  177.  
  178.       Description:  DOOM
  179.      Command Line: C:\DOOM\DOOM.PIF  (or wherever you saved the PIF
  180.                    file).
  181. Working Directory: C:\DOOM  (or whatever)
  182.      Shortcut Key: None
  183.     Run Minimized: Not Checked
  184.  
  185. Now click on "OK".  The box will disappear, and you should see an icon
  186. for DOOM appear on your desktop.
  187.  
  188. If anyone more artistically inclined than I feels like producing a
  189. slick  DOOM icon - let's see it!
  190.  
  191. <Send it to me. - Ian.>
  192.  
  193. -----
  194. Step 5 - Try it out!
  195. ----
  196.  
  197. Double click on your DOOM icon to see if it works!
  198.  
  199.  
  200. ****************************************************************************
  201.  
  202.  
  203. SECTIION II:
  204.  
  205. An example PIF file. Cut this out, save it and uudecode it.
  206.  
  207.                      ---- cut here ----
  208.  
  209. begin 600 doom.pif
  210. M ")$;V]M(" @(" @(" @(" @(" @(" @(" @(" @(""  (  1$]/32Y%6$4 
  211. M(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @
  212. M(" @(" @(" @$ !<1T%-15-<1$]/30 @(" @(" @(" @(" @(" @(" @(" @
  213. M(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @                    
  214. M                                                            
  215. M       ! /\94   !P                                          
  216. M                                                            
  217. M                                                            
  218. M         . @34E#4D]33T94(%!)1D58 (<!  !Q 5=)3D1/5U,@,S@V(#,N
  219. M,  % IT!: #__R8"9  ! /__^@#___H #( % ,8                     
  220. M    /P @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @
  221. M(" @(" @(" @(" @(" @(" @(" @(%=)3D1/5U,@,C@V(#,N, #__QL"!@  
  222. %       @
  223.  
  224. end
  225.  
  226.                      ---- cut here ----
  227.  
  228.  
  229. ****************************************************************************
  230.  
  231.  
  232. SECTION III
  233.  
  234. Sound.
  235.  
  236. This is extracted help taken from a posting by slo@hplb.hpl.hp.com (Steve
  237. Loughran). It was a response to somebody elses posting that said they
  238. couldn't get sound for Doom under Windows. Here it is:
  239.  
  240.  
  241. "In a dos box windows creates a Virtual Machine which looks like MS
  242. Dos except all the memory and IO is virtualised: the under 1MB of RAM
  243. available can be anywhere on the machine, and all I/O accesses are
  244. trapped by virtual device drivers. Each VxD emulates a bit of
  245. hardware, so a virtual display driver can translate display accesses
  246. into windows text output commands, the virtual mouse driver and
  247. generate mouse movement information and so on. They also have to
  248. remember the state of the virtual device when VM is suspended
  249.  
  250.  
  251. When a program in VM accesses a port, then the following can happen:
  252.  
  253. 1. If the VM has been set up so it has access to the hardware, then
  254.    the operations take place.
  255.  
  256. 2. If there is no VxD which handles that area of I/O or memory space,
  257.    then the action is either ignored or pops up little dialog box saying
  258.    "This application has violated system integrity and has been
  259.    terminated"
  260.  
  261. 3. If there is a VxD to handle the fault then this VxD is invoked and
  262.    it can then:
  263.  
  264.         a) pass the instruction to the hardware,
  265.         b) emulate the instruction on other hardware,
  266.            [MS Sound system cards can use a VxD to emulate SoundBlaster]
  267.         c) simulate it in software,
  268.         d) deny the request (often because another VM is using the h/w).
  269.  
  270. So, to get sound in a DOS box in Win31, you need to make sure no other
  271. application is using the sound card - including windows itself. Then make
  272. sure that in the file SYSTEM.INI in the section [386 Enh] there are lines
  273. to load the appropriate VxD's:-
  274.  
  275. ; Virtual DMA support
  276. device=*vdmad 
  277.  
  278. ;choose the one for your card & make sure the file is in
  279. ; the \windows\system directory
  280. ; Sound blaster
  281.  
  282. device=vsbd.386
  283.  
  284. ; Sb Pro
  285. device=vsbpd.386
  286.  
  287. ;PAS 16
  288. device=vpas16d.386
  289.  
  290. ; or another for your card...
  291.  
  292. However, even with this setup I find sound isn't always guaranteed.
  293.  
  294. [Don't forget that the game may play somewhat slower. The reason is... ]
  295.  
  296. Because most I/O and memory accesses are virtualised, DOS boxes
  297. run slower than basic DOS. ...
  298.  
  299. Hope this helps. At least you'll know why you can't hear anything any more."
  300.  
  301.  
  302. ****************************************************************************
  303.  
  304.  
  305. SECTION IV
  306.  
  307. Memory Problems? This is a copy of a reply from Adam to a Doomer who had
  308. problems with memory when trying to run Doom under Windows:-
  309.  
  310.  
  311. > I created the pif file as per your example, however when I attempt to
  312. > run it, the I receive an error requested that I reduce the
  313. > maximum kilobyte value.  I played around with the values, reduced
  314. > to a very low figure, but then it proceeded to lock up on me.
  315. > I am running Windows 3.11, and I am not sure if the config.sys
  316. > files are equal.  Can you email me a copy of your config file?
  317. > Also, I am running a 486DX2 with 16megs of Ram, so I don't think that
  318. > ram is the problem :^)
  319. > Thanks much!
  320.  
  321. He didn't say _which_ kilobyte value to reduce.  It was probably the 
  322. conventional memory one, which means that there wasn't enough available 
  323. conventional memory in Windows to run Doom.
  324.  
  325. To increase the amount of conventional memory under Windows, he has to 
  326. increase the amount available in DOS - before running Windows.  The first 
  327. thing to do is look for TSR's in his Autoexec and Config files, and strip
  328. out anything unnecessary. If that fails, try tuning DOS to give more memory.
  329. The way to do this depends on the version of DOS he's using.  I use DOS 5.0,
  330. and my config.sys file looks like:
  331.  
  332. 1  DOS=UMB,HIGH
  333. 2  DEVICE=C:\HIMEM.SYS
  334. 3  DEVICE=C:\EMM386.EXE NOEMS
  335. 4  FILES=30
  336. 5  BUFFERS=3
  337. 6  STACKS=9,256
  338. 7  LASTDRIVE=D
  339. 8  SWITCHES=/W
  340. 9  DEVICEHIGH=C:\UTIL\NU\NCACHE.EXE  /INSTALL
  341. 10 DEVICEHIGH=C:\NDW\NAV&.SYS
  342. 11 DEVICEHIGH=C:\UTIL\STACKER\STACKER.COM C:\STACVOL.DSK /P=1
  343. 12 DEVICEHIGH=C:\UTIL\STACKER\SSWAP.COM C:\STACVOL.DSK /SYNC
  344. 13 DEVICEHIGH=C:\UTIL\DOS\POWER.EXE
  345. 14 SHELL=C:\NDOS.COM /P /S:X /U
  346.  
  347. Line 1-3 relocte DOS into high memory, freeing up considerable amounts of 
  348. RAM below 640k.  Making the number of buffers in line 5 small helps, too.  
  349. Lines 9-13 load up various utilities (Norton Cache, Anti-Virus, Stacker, and
  350. a power manager [this runs on a laptop])
  351.  
  352. If you're using DOS 6.x, I don't know what the commands are to get maximum 
  353. conventional memory, but I do know it's possible to do more than under DOS 
  354. 5.0.
  355.  
  356. Hope that helps.
  357.  
  358. Adam.
  359.  
  360.                     End of 'Doom Under Windows' Help Text
  361.  
  362.  
  363. ---------------------------------------------------------------------------
  364.  
  365.  
  366. This help brought to you by:
  367.  
  368. Ian C. R. Mapleson,
  369. Department of Computer Science and Electrical Engineering,
  370. Heriot Watt University,
  371. Riccarton Campus,
  372. Edinburgh,
  373. Scotland,
  374. United Kingdom.
  375.  
  376. email to: mapleson@cee.hw.ac.uk
  377.  
  378.