home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 4 / AUCD4.iso / _aacade / website / features / diyoff.002 < prev    next >
Text File  |  1998-08-27  |  7KB  |  217 lines

  1. Installing DIY once you've got everything you need     (revision 1.00)
  2. ================================================== 
  3. By Graham of Acorn Arcade - www.acornarcade.com
  4.  
  5. You should have:
  6.  
  7.   - SparkFS loaded
  8.   
  9.   - Longfiles from Jason Tribbeck will also help.
  10.  
  11.   - A directory on your hard disc containing:
  12.  
  13.      - cc1/zip
  14.      - clib/zip
  15.      - DIY/zip
  16.      - DIYupdt3/zip
  17.      - doomsrc/zip
  18.      - drlink/spk/gz
  19.      - gccmain/zip
  20.      - make/absolute
  21.      - patch/absolute
  22.      - patch1/zip
  23.      - sockets/arc
  24.      - unixlib37b/spk/gz
  25.  
  26. If anything there is missing, get back to the web page and download it!
  27.  
  28. 1. Create a new directory somewhere called 'GCC' this will be called <gccdir>
  29.     from this point on.
  30. 2. Open gccmain/zip
  31. 3. Copy gccmain/zip.!gcc to <gccdir>
  32. 4. If you have a pre-RISC OS 3.7 machine, copy gccmain/zip.CallASWI.CallASWI
  33.     to $.!Boot.Resources.!System.Modules
  34. 5. Close gccmain/zip and open cc1/zip
  35. 6. Copy cc1/zip.!gcc to <gccdir> (over the top of the first)
  36. 7. Close cc1/zip and open clib/zip
  37. 8. Copy cc1/zip.!clib to <gccdir>
  38. 9. Close clib/zip and open patch1/zip
  39. 10. Copy patch1/zip.!gcc to <gccdir> (over the top of the first)
  40. 11. Close patch1/zip and drop unixlib37b/spk/gz onto the SparkFS icon
  41. 12. A new archive called 'unixlib300' will be created and opened.
  42. 13. Copy unixlib300.!UnixLib37 to <gccdir>
  43. 14. Close unixlib300 and drop drlink/spk/gz onto the SparkFS icon
  44. 15. A new archive called 'drlink/s00' will be created and opened.
  45. 16. Copy drlink/s00.Drlink to $.!Boot.Library
  46. 17. Close drlink/s00 and open sockets.arc
  47. 18. Shift doubleclick on <gccdir>.!clib and create a new directory within it
  48.      called 'sockets'
  49. 19. Copy the contents of sockets.arc to <gccdir>.!clib.sockets
  50. 20. Close <gccdir>.!clib and sockets.arc
  51. 21. Set the type of make/absolute to 'Absolute'
  52. 22. Rename it 'Make'
  53. 23. Copy it to $.!Boot.Library
  54. 24. Shift doubleclick on <gccdir>.!UnixLib37
  55. 25. Load <gccdir>.!UnixLib37.!Run into a text editor
  56. 26. Change the line reading
  57.       'Set Unix$Path <Obey$Dir>.src.Clib.'
  58.      to
  59.       'Set Unix$Path <C$Path>
  60.      And save the file. Close it.
  61. 27. Close <gccdir>.!UnixLib37
  62.  
  63. *** You now have a fully installed copy of GCC ***
  64.  
  65. - Open DIY/zip and copy the DoomItYs directory to somewhere on your HD.
  66.  
  67. - Set type of patch/absolute to 'Absolute', rename as 'Patch' and copy to
  68.  !Boot.Library
  69.  
  70. - Open doomsrc/zip and copy linuxdoom-1/10/src/ to the DoomItYs directory.
  71.  
  72. - Drag linuxdoom-1/10/src/ to SparkFS. A directory display of a new archive
  73.  called linuxdoo00 will open. Close this.
  74.  
  75. - Delete DoomItYs.linuxdoom-1/10/src/
  76.  
  77. - Create a new directory in DoomItYs called 'psource'
  78.  
  79. - Doubleclick on DoomItYs.!Patch
  80.  
  81. - Enter the full pathname of linuxdoo00.
  82.  
  83. - Enter the full pathname of psource.
  84.  
  85. - Type 'y' (lower case is important)
  86.  
  87. - !Patch will now produce a complete set of RISC OS sources for DOOM.
  88.  
  89. - Delete linuxdoo00.
  90.  
  91. - Open DIYupdt3/zip and copy the DoomItYs directory in it over the top of your
  92.  own DoomItYs directory.
  93.  
  94. - Create a new directory: psource.newdoom
  95.  
  96. - Run DoomItYs.!Update
  97.  
  98. - Enter the full pathname of psource.doom
  99.  
  100. - Enter the full pathname of psource.newdoom
  101.  
  102. - The sources will be updated to include all the latest features. Please note
  103.  that the original patched source (psource.doom) should be retained as it is
  104.  the base to which future updates are applied.
  105.  
  106. - You can now make the following changes to improve things if you have a
  107.  Risc PC:
  108.  
  109. 1.    load psource.newdoom.h.doomdef into a text editor, search for the
  110.     line 
  111.         /*#define FULL_NEW_FEATURES*/
  112.     and replace with
  113.         #define FULL_NEW_FEATURES
  114.  
  115.     Note that doing this makes the game incompatible with pre-M3
  116.     versions. This should not be a problem for most people.
  117.  
  118. 2.    load psource.newdoom.h.ROsupport into a text editor, and below the
  119.     first line, add the line:
  120.         #define BUFFERED_KEYBOARD
  121.  
  122.     Some people with slower machines are wary of using this as it makes
  123.     movement triggered by a keypress happen, even if it takes a
  124.     noticable amount of time to respond.
  125.  
  126. 3.    load psource.newdoom.c.i_video into a text editor, search for the
  127.     line:
  128.         /*#define HARDWARE_GAMMA*/
  129.     and replace with
  130.         #define HARDWARE_GAMMA
  131.  
  132.     This improves the display greatly on Risc PC/A7000's but wil not
  133.     work on earlier machines.
  134.  
  135. 4.    also find the line:
  136.         #define LINEAR_COLOURMAP_LIGHT
  137.     (just above HARDWARE_GAMMA) and change the number after it to:
  138.         0x1500
  139.  
  140. 5.    load psource.newdoom.s.arm_plot32 into a text editor, locate the
  141.     line beginning:
  142.         fuzz_darken    equ
  143.     and change the number after it to:
  144.         0x15
  145.  
  146. - Double click on the following, one after the other, closing the directories
  147.  that open as you do so:
  148.  
  149.     <gccdir>.!UnixLib37
  150.     <gccdir>.!gcc
  151.     <gccdir>.!clib
  152.  
  153. - Load psource.newdoom.h.doomdef into a text editor such as Zap.
  154.  
  155. - Find "LD_PIXEL_DEPTH" (it's midway through the file)
  156.  
  157. - Set the number after it depending on how many colours you want to use:
  158.  
  159.     256 colours: LD_PIXEL_DEPTH    3
  160.     32,000     : LD_PIXEL_DEPTH    4
  161.     16 million : LD_PIXEL_DEPTH    5
  162.  
  163. - Save the file and close it.
  164.  
  165. - Change the Currently Selected Directory to psource.newdoom (the basic way
  166.   to do this is to press F12 and type:
  167.    *dir <full pathname of psource.newdoom>.
  168.  
  169. - Press F12 and type, depending on how many colours you set before:
  170.  
  171.     256 colours: *make -r !RunImage
  172.     32,000     : *make -r !RunImageH
  173.     16 million : *make -r !RunImageT
  174.    
  175. - DOOM will then compile. If you get an error before compilation has gone
  176.  very far, you may not have allocated enough memory. Go back to the desktop
  177.  and change the 'next' and 'free' slots in the Task Manager (click on the
  178.  Acorn icon on the icon bar) so there is at least 2048K in each. If you have
  179.  an older machine, this may need to be as high as 4MB.
  180.  
  181.  Once finished (it will take around 30 mins) copy
  182.  the !RunImage file which has appeared in psource.doom into the !Doom
  183.  application in DoomItYs.
  184.  
  185. - Open !Doom.!Run
  186.  
  187. - If you have a Risc PC or A7000, find the line reading
  188.      
  189.      run Doom:!SetMode -mode13 -frames3 -resx320 -resy256
  190.  
  191.   Now, change the -resx and -resy settings to the resolution you want to
  192.   play in. I recommend 320x200 or 320x256 for ARM3/6/7 users and 640x480 for
  193.   strongARM users. Also remove the -mode13 bit.
  194.   If you are using 32,000 colours, add "-high" to the end of this line, and if
  195.   you are using 16 million colours, add "-true".
  196.  
  197. - Change the line
  198.            set DOOMWADDIR <Obey$Dir>.WAD
  199.   to
  200.            set DOOMWADDIR <full pathname of where you keep your DOOM wads>
  201.            
  202. - Save the file.
  203.  
  204. - Ensure your WAD files are named as follows:
  205.  
  206.     DOOM Shareware: DOOM1/WAD
  207.     DOOM Retail   : DOOM/WAD
  208.     Ultimate DOOM : DOOMU/WAD
  209.     DOOM 2        : DOOM2/WAD
  210.  
  211. It is now ready to play. Doubleclick on !Doom.
  212.  
  213. All the best,
  214.  
  215. Graham
  216.  
  217. © Graham Crockford and Alasdair Bailey, 1998