home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / gamefly / monlth.arj / MONLTH.DOC < prev    next >
Text File  |  1991-02-10  |  7KB  |  222 lines

  1.  
  2.  
  3.                              MONOLITH
  4.                              --------
  5.  
  6.                     "My God, It's full of stars!"
  7.  
  8.  
  9. This was the last transmission from Dave Bowman in '2001: A Space Odyssey'.
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.        Please run monlth.mod & try COM radio before reading further!
  23.                              ----------
  24.  
  25.  
  26.  
  27.  
  28. File:  MONLTH.DOC                       Date: Feb. 10, 1991
  29.  
  30.    By: Andrew Tuline                    Ph: 604-521-3540
  31.        327 Devoy St.
  32.        New Westminster, BC              CIS: 70465,1223
  33.        CANADA  V3L 4E8
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40. Introduction
  41. ------------
  42.  
  43. Microsoft/BAO have added code and structures in FS4/A&SD that have not yet
  44. been put to full use.  I have recently investigated the ability to add
  45. height and rotation to objects in the A&SD universe.  I'm sure there are
  46. numerous other abilities of which I'm not yet aware.  For instance, the
  47. Shareware program 'SEE' allows the designer to import custom made objects,
  48. such as a lighthouse, buoys, boats, etc.  You can even place buildings on some
  49. of the above objects.  This document tells you to modify your existing objects
  50. in A&SD for height and rotation.
  51.  
  52.  
  53. Monlth.mod & Monlth.sc1
  54. -----------------------
  55.  
  56. The plane in MONLTH.MOD is flying away from the monolith.  We are looking out
  57. the rear of the plane, facing the monolith.  As you turn around, you are faced
  58. with the lines, a polygon and a building, all raised from the ground.
  59.  
  60. These files have been created to demonstrate adding height and rotation to
  61. objects.  The black monolith from 2001 has been raised and rotated on two axes.
  62. As well, lines and polygons have been also been raised.  Unfortunately I don't
  63. know if those lines and polygons can be rotated in a similar fashion.  It could
  64. be done in one form or another if the A&SD designer knew the structure of .SC1
  65. files.  I, for one would like to be able to create my own objects.  Power lines
  66. running across the city are a real hazard to low flying planes.  A raised
  67. transport system with cars on top.  Multi-shaped buildings, unfinished
  68. buildings, cranes, etc.  Some of these effects can now be done with the
  69. information included here.
  70.  
  71.  
  72. How was this done
  73. -----------------
  74.  
  75. You too can spend an afternoon flipping bytes in .SC1 files.  Create a simple
  76. .SC1 file, insert a single object and start hacking away.  This method is
  77. not advisable once you start adding multiple objects.  This is where SEE comes
  78. in handy.  You can perform the following steps:
  79.  
  80. - Add an object to a .SC1 file
  81. - Find out the object type and number you wish to modify
  82. - Export object to a .ELE file
  83. - Modify the .ELE file with debug
  84. - Delete the object from the original file with SEE
  85. - Import the modified .ELE file into your .SC1 file
  86.  
  87. Warning:   Once you have performed these 'unsupported' modifications, do not
  88.            edit the file with A&SD.  You will lose the mods.  I have even ended
  89.            up with a corrupted .SC1 file.  Be careful!!!
  90.  
  91.  
  92. Modifying .ELE files
  93. --------------------
  94.  
  95. Using SEE is the simplest method to modify your objects.  This requires the
  96. latest version (2 or better) of SEE, obtainable from Compuserve as follows:
  97.  
  98.   'go gamers', 'dl 12', 'cat/key:laemming/des'.
  99.  
  100. British Columbians can get it from Mindlink (604-576-1214), a pay for use BBS
  101. with 16+ lines.  It's located in the MSDOS.FLIGHT section.
  102.  
  103.  
  104. Lines
  105. -----
  106.  
  107. I don't know how to vertically rotate a line.  Lord knows I've tried.
  108.  
  109. Offset 10h, modifies the low byte of height.
  110. Offset 11h, modifies the high byte of height.
  111.  
  112.  
  113. Polygons.
  114. ---------
  115.  
  116. Same rotation problems, although I didn't really try hard this time.
  117.  
  118. Offset 10h modifies low byte of height.
  119. Offset 10h modifies high byte of height.
  120.  
  121.  
  122. Buildings
  123. ---------
  124.  
  125. These are much more flexible objects.  If you add height to a tree, however, it
  126. turns into a line when you fly below its height.  I have only tested this with
  127. a rectangular building.
  128.  
  129. Offset 18h modifies low byte of height
  130. Offset 19h modifies high byte of height
  131. Offset 21h modify one angle of rotation
  132. Offset 23h modifies another rotation angle
  133.  
  134.  
  135. Sample modification
  136. -------------------
  137.  
  138. 1) Create a new .SC1 file with A&SD and add a building.
  139.  
  140. 2) This building is object type 9, element 1.  Create a SEE '.ELE' file by
  141.    exporting the building in the following SEE '.DAT' file. You must also
  142.    delete the building from the .SC1 file.  The object's location is contained
  143.    within the .ELE file.
  144.  
  145.    ---- Sample .DAT file to export an element ----
  146.  
  147.    indir, c:\fs4\see
  148.    input, test.sc1
  149.    outdir, c:\fs4\see
  150.    output, test1.sc1
  151.    libdir, c:\fs4\see
  152.  
  153.    report
  154.  
  155.    export, build.ele, 9, 1
  156.    delete, 9, 1
  157.  
  158.    save
  159.    end
  160.    ------------ end of export file --------------
  161.  
  162. 3) Now go into debug and perform the following:
  163.  
  164.    c:\fs4>debug build.ele
  165.  
  166.    -e 118
  167.    20
  168.    -w
  169.    -q                               (You have now added height to the building)
  170.  
  171.  
  172. 4) Now import the building into a .SC1 file with another SEE '.DAT' file.
  173.  
  174.    ---- Sample .DAT file to import an element ----
  175.  
  176.    indir, c:\fs4\see
  177.    input, test1.sc1
  178.    outdir, c:\fs4\see
  179.    output, test2.sc1
  180.    libdir, c:\fs4\see
  181.  
  182.    report
  183.  
  184.    import, build.ele, 9
  185.  
  186.    save
  187.    end
  188.    ------------ end of import file --------------
  189.  
  190.  
  191. 5) VOILA!!!  The file test2.sc1 now has the modified building.  Test1.sc1 has
  192.    the elements to be changed, removed.  Test.sc1 is the original, unmodified
  193.    file.
  194.  
  195.  
  196. Hints
  197. -----
  198.  
  199. The above offsets were tested on simple objects.  For now, it is up to the
  200. reader to find offsets for other objects.  Hopefully, SEE or another program
  201. will be published/updated to do this for us.  (I don't program much these days,
  202. so you're on your own for now).  In a .ELE file, somewhere around the offset 10h
  203. are four 0's in a row.  The low byte of height is the second 0.
  204.  
  205.  
  206. Conclusions
  207. -----------
  208.  
  209. This information greatly expands the designs that we can now produce with A&SD.
  210. Once we can vertically rotate angles and lines, and create objects out of them,
  211. ie. object oriented, I will be MUCH happier.  Microsoft probably didn't include
  212. these ability in the first release of A&SD because of some of the anomalies that
  213. may show up when you do this.  Anyone who can modify their files as discussed
  214. above can surely deal with these problems.
  215.  
  216.  
  217.  
  218.                         Happy designing!!!
  219.  
  220.  
  221.                             [The End]
  222.