home *** CD-ROM | disk | FTP | other *** search
/ MegaDoom Add-On 3 / MEGADOOM3.iso / other / doomhelp / windoom.hlp < prev   
Text File  |  1994-11-22  |  14KB  |  467 lines

  1.  
  2.                      How to run Doom under Windows
  3.                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  4.  
  5.                          5th Edition 2/Nov/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 (redundant since this problem has been fixed in
  18.    v1.666). For others, it may just be convenience.
  19.  
  20.  
  21. Note that the PIF file may, or may not, work on your system (the above
  22. 'Machine tested with' specification refers to 'SECTION I' help only).
  23.  
  24. Contents:
  25.  
  26. SECTION I:   How to run Doom under windows.
  27. SECTION II:  An example PIF file.
  28. SECTION III: How to get sound under windows as well.
  29. SECTION IV:  An answer to those who may encounter memory problems.
  30. SECTION V:   Using external PWAD (new level) files.
  31. SECTION VI:  An example Doom icon to use.
  32.  
  33.  
  34. Acknowledgements. Thanks to:-
  35.  
  36. Adam Brown (brouna@world.std.com)
  37.  
  38.      - for writing the how-to-create-the-doom-pif-file information
  39.        given in SECTION I.
  40.  
  41.  
  42. Ethan G. Henry (eghenry@sunee.uwaterloo.ca)
  43.  
  44.      - for the example PIF file given in SECTION II.
  45.  
  46.  
  47. Steve Loughran (slo@hplb.hpl.hp.com)
  48.  
  49.      - for the 'how to get sound under windows' information.
  50.  
  51.  
  52. Adam Brown (brouna@world.std.com)
  53.  
  54.      - for the memory help. Basically, someone emailed me asking for help
  55.        concerning memory allocation. I forwarded the query to Adam and this
  56.        is his response.
  57.  
  58.  
  59. Steven Foust (falcon@mcs.com)
  60.  
  61.      - for the info on the Diamond Viper 2MB card.
  62.  
  63.  
  64. Pete Nilson (pnilson@hpb.hwc.ca)
  65.  
  66.      - for the info on using external PWADs.
  67.  
  68.  
  69. DrFegg (DrFeggBSR@aol.com)
  70.  
  71.      - for the info on Windows for Workgroups v3.11.
  72.  
  73.  
  74. Murphy Taylor (murphy@ssdgwy.mdc.com)
  75.  
  76.      - for supplying the Doom icon (he says he didn't actually make it. So
  77.        who did?)
  78.  
  79.  
  80. Windows experts please feel free to email me with descriptions of
  81. greater detail and clarity if you think that a TOTAL novice would find
  82. such added detail more useful (just imagine you'd never used windows
  83. before. Would this help file be clear enough?).
  84.  
  85. A note:
  86.  
  87. I have been emailed with the following info. Relevant players please note:
  88.  
  89. 'Apparently, the drivers provided by Diamond for their VLB Viper 2MB card
  90. do *not* like the graphics mode used by DOOM under Windows. It works just
  91. *fine* under DOS, but try it under Windows (I've tried both 3.1 and 3.11)
  92. and you get a message stating "not enough memory for desired graphic mode"
  93. or some such guff. If you then bring it up *anyways*, it will go to the
  94. intro screen (the one of the marine), and hang the system... And I do mean
  95. *HANG* -- reset-switch time hang to boot.'
  96.  
  97. Bummer, eh folks? Ah well.
  98.  
  99. And yet another note for those attempting to run Doom under Windows for
  100. Workgroups. Dr Fegg told me: "The fix is very simple but the answer as to
  101. why this works is beyond me. TURN OFF 32BIT FILE AND DISK ACCESS!". I don't
  102. know how universal a solution this is, but there you have it.
  103.  
  104.  
  105. Anyway, on to the main info sections...
  106.  
  107.  
  108. SECTION I:
  109.  
  110. Getting DOOM to run under Windows 3.1
  111. =====================================
  112.  
  113. In order to make DOOM run under Windows, you need to create a .PIF 
  114. file,  which tells Windows where to find the DOOM files, how much
  115. memory to allocate, and how to deal with other tasks that might be
  116. going on at the same time.
  117.  
  118. -----
  119. Step 1 - Open your .PIF Editor
  120. -----
  121.  
  122. If the PIF editor icon is on your Program Manager desktop, double-click
  123. on it to open the editor.
  124.  
  125. If there is no PIF editor icon, then from the Program Manager:
  126.  
  127.   Type ALT-F R, and enter "PIFEDIT" in the box that appears.
  128.  
  129.  
  130. -----
  131. Step 2 - Enter the values required in the editor, as below:
  132. -----
  133.  
  134.     Program Filename:  DOOM.EXE
  135.         Window Title: (leave blank)
  136.  Optional Parameters: (leave blank, or place any DOS command line
  137.                       parameters you normally use here)
  138.   Start-up Directory: C:\DOOM (or the directory containing your DOOM 
  139.                       program)
  140.         Video Memory: High Graphics
  141.  
  142. Memory Requirements:
  143.  
  144.          KB Required: 512   Desired: -1
  145.  
  146. EMS Memory:
  147.  
  148.          KB Required: 1024   KB Limit: -1
  149.  
  150. XMS Memory:
  151.  
  152.          KB Required: 1024   KB Limit: -1
  153.  Display Usage      : Full Screen
  154.  Execution          : Check "Exclusive" but not "Background"
  155. Close Window on Exit: Checked
  156.  
  157. Now click on the "Advanced" button, and fill in the options as follows:
  158.  
  159.     Background Priority: 50
  160.     Foreground Priority: 100
  161.        Detect Idle Time: Checked
  162.       EMS Memory Locked: Not Checked
  163.       XMS Memory Locked: Not Checked
  164.   Uses High Memory Area: Checked
  165. Lock Application Memory: Not Checked
  166.  
  167. Monitor Ports:
  168.                    Text: Checked
  169.            Low Graphics: Checked
  170.           High Graphics: Checked
  171.       Emulate Text Mode: Checked
  172.     Retain Video Memory: Checked
  173.  
  174. Other Options:
  175.  
  176.               Alt+Space: Checked
  177.              All others: Not Checked
  178.  
  179. Now click on the "OK" button.
  180.  
  181.  
  182. -----
  183. Step 3 - Save your PIF file
  184. -----
  185.  
  186. Type ALT-F S (File Save)
  187.  
  188. Select your DOOM directory, and save the file as "DOOM.PIF"
  189.  
  190. Type ALT-F X (File eXit) to leave the PIF editor.
  191.  
  192.  
  193. -----
  194. Step 4 - Put a DOOM icon on your desktop
  195. -----
  196.  
  197. Go back to the program manager, and click on a group that you want the DOOM 
  198. program to appear in.
  199.  
  200. Type ALT-F N (File New)
  201.  
  202. Ensure Program Item is checked, and then click on "OK"
  203.  
  204. Fill in the dialog box as follows:
  205.  
  206.       Description:  DOOM
  207.      Command Line: C:\DOOM\DOOM.PIF  (or wherever you saved the PIF
  208.                    file).
  209. Working Directory: C:\DOOM  (or whatever)
  210.      Shortcut Key: None
  211.     Run Minimized: Not Checked
  212.  
  213. Now click on "OK".  The box will disappear, and you should see an icon
  214. for DOOM appear on your desktop.
  215.  
  216. If anyone more artistically inclined than I feels like producing a
  217. slick  DOOM icon - let's see it!
  218.  
  219. <Send it to me. - Ian.>
  220.  
  221. -----
  222. Step 5 - Try it out!
  223. ----
  224.  
  225. Double click on your DOOM icon to see if it works!
  226.  
  227.  
  228. ****************************************************************************
  229.  
  230.  
  231. SECTIION II:
  232.  
  233. An example PIF file. Cut this out, save it and uudecode it.
  234.  
  235.                      ---- cut here ----
  236.  
  237. begin 600 doom.pif
  238. M ")$;V]M(" @(" @(" @(" @(" @(" @(" @(" @(""  (  1$]/32Y%6$4 
  239. M(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @
  240. M(" @(" @(" @$ !<1T%-15-<1$]/30 @(" @(" @(" @(" @(" @(" @(" @
  241. M(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @                    
  242. M                                                            
  243. M       ! /\94   !P                                          
  244. M                                                            
  245. M                                                            
  246. M         . @34E#4D]33T94(%!)1D58 (<!  !Q 5=)3D1/5U,@,S@V(#,N
  247. M,  % IT!: #__R8"9  ! /__^@#___H #( % ,8                     
  248. M    /P @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @
  249. M(" @(" @(" @(" @(" @(" @(" @(%=)3D1/5U,@,C@V(#,N, #__QL"!@  
  250. %       @
  251.  
  252. end
  253.  
  254.                      ---- cut here ----
  255.  
  256.  
  257. ****************************************************************************
  258.  
  259.  
  260. SECTION III
  261.  
  262. Sound.
  263.  
  264. This is extracted help taken from a posting by slo@hplb.hpl.hp.com (Steve
  265. Loughran). It was a response to somebody elses posting that said they
  266. couldn't get sound for Doom under Windows. Here it is:
  267.  
  268.  
  269. "In a dos box windows creates a Virtual Machine which looks like MS
  270. Dos except all the memory and IO is virtualised: the under 1MB of RAM
  271. available can be anywhere on the machine, and all I/O accesses are
  272. trapped by virtual device drivers. Each VxD emulates a bit of
  273. hardware, so a virtual display driver can translate display accesses
  274. into windows text output commands, the virtual mouse driver and
  275. generate mouse movement information and so on. They also have to
  276. remember the state of the virtual device when VM is suspended
  277.  
  278.  
  279. When a program in VM accesses a port, then the following can happen:
  280.  
  281. 1. If the VM has been set up so it has access to the hardware, then
  282.    the operations take place.
  283.  
  284. 2. If there is no VxD which handles that area of I/O or memory space,
  285.    then the action is either ignored or pops up little dialog box saying
  286.    "This application has violated system integrity and has been
  287.    terminated"
  288.  
  289. 3. If there is a VxD to handle the fault then this VxD is invoked and
  290.    it can then:
  291.  
  292.         a) pass the instruction to the hardware,
  293.         b) emulate the instruction on other hardware,
  294.            [MS Sound system cards can use a VxD to emulate SoundBlaster]
  295.         c) simulate it in software,
  296.         d) deny the request (often because another VM is using the h/w).
  297.  
  298. So, to get sound in a DOS box in Win31, you need to make sure no other
  299. application is using the sound card - including windows itself. Then make
  300. sure that in the file SYSTEM.INI in the section [386 Enh] there are lines
  301. to load the appropriate VxD's:-
  302.  
  303. ; Virtual DMA support
  304. device=*vdmad 
  305.  
  306. ;choose the one for your card & make sure the file is in
  307. ; the \windows\system directory
  308. ; Sound blaster
  309.  
  310. device=vsbd.386
  311.  
  312. ; Sb Pro
  313. device=vsbpd.386
  314.  
  315. ;PAS 16
  316. device=vpas16d.386
  317.  
  318. ; or another for your card...
  319.  
  320. However, even with this setup I find sound isn't always guaranteed.
  321.  
  322. [Don't forget that the game may play somewhat slower. The reason is... ]
  323.  
  324. Because most I/O and memory accesses are virtualised, DOS boxes
  325. run slower than basic DOS. ...
  326.  
  327. Hope this helps. At least you'll know why you can't hear anything any more."
  328.  
  329.  
  330. ****************************************************************************
  331.  
  332.  
  333. SECTION IV
  334.  
  335. Memory Problems? This is a copy of a reply from Adam to a Doomer who had
  336. problems with memory when trying to run Doom under Windows:-
  337.  
  338.  
  339. > I created the pif file as per your example, however when I attempt to
  340. > run it, the I receive an error requested that I reduce the
  341. > maximum kilobyte value.  I played around with the values, reduced
  342. > to a very low figure, but then it proceeded to lock up on me.
  343. > I am running Windows 3.11, and I am not sure if the config.sys
  344. > files are equal.  Can you email me a copy of your config file?
  345. > Also, I am running a 486DX2 with 16megs of Ram, so I don't think that
  346. > ram is the problem :^)
  347. > Thanks much!
  348.  
  349. He didn't say _which_ kilobyte value to reduce.  It was probably the 
  350. conventional memory one, which means that there wasn't enough available 
  351. conventional memory in Windows to run Doom.
  352.  
  353. To increase the amount of conventional memory under Windows, he has to 
  354. increase the amount available in DOS - before running Windows.  The first 
  355. thing to do is look for TSR's in his Autoexec and Config files, and strip
  356. out anything unnecessary. If that fails, try tuning DOS to give more memory.
  357. The way to do this depends on the version of DOS he's using.  I use DOS 5.0,
  358. and my config.sys file looks like:
  359.  
  360. 1  DOS=UMB,HIGH
  361. 2  DEVICE=C:\HIMEM.SYS
  362. 3  DEVICE=C:\EMM386.EXE NOEMS
  363. 4  FILES=30
  364. 5  BUFFERS=3
  365. 6  STACKS=9,256
  366. 7  LASTDRIVE=D
  367. 8  SWITCHES=/W
  368. 9  DEVICEHIGH=C:\UTIL\NU\NCACHE.EXE  /INSTALL
  369. 10 DEVICEHIGH=C:\NDW\NAV&.SYS
  370. 11 DEVICEHIGH=C:\UTIL\STACKER\STACKER.COM C:\STACVOL.DSK /P=1
  371. 12 DEVICEHIGH=C:\UTIL\STACKER\SSWAP.COM C:\STACVOL.DSK /SYNC
  372. 13 DEVICEHIGH=C:\UTIL\DOS\POWER.EXE
  373. 14 SHELL=C:\NDOS.COM /P /S:X /U
  374.  
  375. Line 1-3 relocte DOS into high memory, freeing up considerable amounts of 
  376. RAM below 640k.  Making the number of buffers in line 5 small helps, too.  
  377. Lines 9-13 load up various utilities (Norton Cache, Anti-Virus, Stacker, and
  378. a power manager [this runs on a laptop])
  379.  
  380. If you're using DOS 6.x, I don't know what the commands are to get maximum 
  381. conventional memory, but I do know it's possible to do more than under DOS 
  382. 5.0.
  383.  
  384. Hope that helps.
  385.  
  386. Adam.
  387.  
  388.  
  389. ****************************************************************************
  390.  
  391.  
  392. SECTION V.
  393.  
  394. Using PWAD files.
  395.  
  396. Pete said to me:
  397.  
  398. "Just for your info, I use add-on .wads a lot. You can make them work ... by
  399. adding -file x.wad y.wad etc. in the optional parameters line. Works fine."
  400.  
  401. So there ya go! :)
  402.  
  403.  
  404. ****************************************************************************
  405.  
  406.  
  407. SECTION VI.
  408.  
  409. An example Doom icon to use. Run this through uudecode. You should get a
  410. file called 'doom.ico' that's 766 bytes in size.
  411.  
  412.  
  413. begin 644 doom.ico
  414. M```!``$`("`0``````#H`@``%@```"@````@````0`````$`!```````````
  415. M``````````````````````````````"```"`````@(``@````(``@`"`@```
  416. MP,#``("`@````/\``/\```#__P#_````_P#_`/__``#___\`?_B'CX>(_WCX
  417. M>/AX^'_X__@'CXAX@(>/AX"'CX>/B'@'AXAPCX=_B`B'AX"(>`B'B(!XCX!X
  418. M@(]X"(AX"/AX"(!XB`B(AXB`B'@(B'B`AX@(B("(B("(B(@(B`B`B(@(@("(
  419. MB`B("(@(B`B(B`B`B`@(B`B`B(@(B`B`@(B(B("(@("(B`B(@("(B`B(@("(
  420. M"`B("`B("`B("`B("`B("(B`@(B`@(B`@(B`@(B`@+@+"(@("(@("(@("(@(
  421. M"(N;N["`B("`B("`B("`B("Y&XL;"`@("`@("`@("`@(L9L+D;"`@+"`@+"`
  422. M@+"`@+D;BQD;"`L;"`L;"`NX"`BQFPN1D;"QD;"QD;"YL(N`N1L+&QD;&1D;
  423. M&1D;D;BQN+&;"XNQFY&[BXNQFQFPN;"XBPN+"QL;"XN+"QN1NY&;N(L+RPN;
  424. MFPO+RPN;&;F(B+S#`\,#@X,#P\,#@XB(C,S,PP/#`X.#`\/#`X.(S,S,S,,#
  425. MPP/#PP/#PP/#S,S,S,S#"<F9R<F9R<F9R<S,S)S,R0E$1$E$1$E$1$E$1$D)
  426. M1$D-1$1-1$1-1$1-1$30`-1-#=W=T-W=T-W=T-W=```-T```````````````
  427. M````````````````````````````````````````````````````````````
  428. M````````````````````````````````````````````````````````````
  429. M````````````````````````````````````````````````````````````
  430. M````````````````````````````````````````````````````````````
  431. !````
  432. `
  433. end
  434.  
  435.  
  436. ****************************************************************************
  437.  
  438.                     End of 'Doom Under Windows' Help Text
  439.  
  440.  
  441.  
  442. )*--------------------------------------------------------------------------
  443.  
  444.  
  445. This help brought to you by:
  446.  
  447. The Doom Help Service (DHS).
  448.  
  449. email to: mapleson@cee.hw.ac.uk
  450.  
  451. WWW addresses:   
  452.  
  453.   Home page:     http://www.cee.hw.ac.uk/~mapleson
  454.   DHS:           http://www.cee.hw.ac.uk/~mapleson/doom/doom.html
  455.  
  456. Ian C. R. Mapleson BSc,
  457. Department of Computer Science and Electrical Engineering,
  458. Heriot Watt University,
  459. Riccarton Campus,
  460. Edinburgh,
  461. Scotland,
  462. United Kingdom.
  463.  
  464.