home *** CD-ROM | disk | FTP | other *** search
/ Cheet Sheets 1995 April/May / CHEET40.ZIP / 4ECENT.TXT < prev    next >
Text File  |  1995-05-07  |  10KB  |  199 lines

  1. ~Descent
  2.  
  3. Unofficial *.PLR file specs for Descent, v0.1 from Darren Lo, via 
  4. EMail/Internet.
  5.  
  6. Well, after a little poking around in the *.PLR files, I discovered 
  7. how to get all sorts of cool stuff... there seems to be interest, 
  8. so I'm posting cursory offset tables. There are a couple things that 
  9. don't seem to do anything, plus others that I haven't bothered to 
  10. figure out yet. If you have any additions feel free to send them to 
  11. darrenlo@umich.edu.
  12.  
  13. Each saved game begins with the game name (an ASCIIZ string). This 
  14. is an easy way to tell which game you're messing around with. All 
  15. offsets are in hex. All ints and long ints in the file are stored 
  16. "back-words" in true x86 fashion.  (i.e., least significant byte 
  17. first, most significant byte last).
  18.  
  19. You may want to back up your pilot file before mucking about in it 
  20. with your hex editor, because I make no claims as to the accuracy of 
  21. my typing, counting, record-keeping, or hex arithmetic. Please let 
  22. me know if I have messed something up, or if I am just plain wrong.
  23.  
  24. `Offset:         Offset in save:      Description:
  25. `------          ---------------      -----------
  26. `0-13            X                    Header info?
  27. `14-2C           0-18                 Saved game name
  28. `2E-38           1A-24                Pilot name saved under
  29. `4B              37                   Quad lasers if 4, no quads 
  30.                                       for other values??
  31. `50-51           3C-3D                Energy level when last level 
  32.                                       was completed. This appears to 
  33.                                       be a signed int. If it is less 
  34.                                       than 100, you get 100 energy..
  35.                                       max energy value is for FF 7F 
  36.                                       in these two bytes.
  37. `52-53           3E-3F                ???
  38. `54-55           40-41                Shield levels. see energy notes
  39. `56              42                   Number of lives, besides this 
  40.                                       one (so 06 gives you five lives 
  41.                                       spare) 
  42. `57              43                   Last level completed???
  43. `58              44                   Laser descriptor byte... see 
  44.                                       table below 
  45. `59              45                   Level at which game was started
  46. `5C              48                   Weapon inventory bit field:
  47.                                       00000100 = spreadfire,
  48.                                       00000010 = Vulcan,
  49.                                       00000001 = lasers
  50. `5D              49                   Missile inventory bit field:
  51.                                       00000100 = mines,
  52.                                       00000010 = homing missiles,
  53.                                       00000001 = concussion
  54. `60-61           4C-4D                Vulcan ammo packs (one pack is
  55.                                       approx. = to 25.501 rounds). I 
  56.                                       think this is signed, so don't
  57.                                       go overboard folks ;)
  58. `68-69           54-55                # concussion missiles unsigned
  59. `6A-6B           56-57                # homing missiles (unsigned)
  60. `6C-6D           58-59                # mines (unsigned)
  61.  
  62.  
  63. ~smart missiles and mega missiles most likely will follow
  64.  
  65.  
  66. `72-75           5E-61                Possibly score at beginning of 
  67.                                       last level? Can anybody help ?
  68. `76-79           62-65                Current score (signed I think)
  69. `7A-81           66-6D                No clue...
  70.  
  71.  
  72. ~long stretch of ignorance... time of play must be stored somewhere
  73.  
  74.  
  75. `A2              8E                   difficulty level (0=trainee,
  76.                                       1=rookie, etc.)
  77. `A6              92                   selected weapon (0=laser, 
  78.                                       1=Vulcan, 2=spreadfire) Odd 
  79.                                       things will happen if you put
  80.                                       higher numbers here
  81. `AA              96                   selected missile (0=concussion,
  82.                                       1=homing, 2=mines)
  83. `AE              9A                   Display mode
  84.                                       0: Cockpit mode
  85.                                       1: Weird.bitmap-type background
  86.                                          behind a squashed screen... 
  87.                                          looks as if video RAM isn't 
  88.                                          cleared up or something...
  89.                                       2: Status bar mode
  90.                                       3: Full screen mode
  91.                                       4: Cinematic, shaped like a 
  92.                                          movie screen... like the 
  93.                                          screen you get when you blow 
  94.                                          up 
  95.                                       5: "Weird" on bottom half, 
  96.                                           cinematic on top... reverts 
  97.                                           to cinematic after death
  98. `B2-B3           9E-9F                # of pixels to display in 
  99.                                       horizontal direction. In 
  100.                                       conjunction with the vertical 
  101.                                       pixel settings, you can play
  102.                                       with some pretty weird screen 
  103.                                       sizes. I like 320 X 23 myself 
  104. `B6              A2                   # of pixels to display in 
  105.                                       vertical direction. This may be 
  106.                                       only one byte, but I'm not sure.
  107.                                       the VR modes may require two 
  108.                                       bytes... ???
  109. `BA              A6                   Current level # (starts from 1)
  110.  
  111. `C2              00                   Saved game 2
  112.  
  113. `170             00                   Saved game 3
  114.  
  115.  
  116. ~many saved games follow...
  117.  
  118.  
  119. `6E0             XX                   Taunt macro 1. A 19-byte 
  120.                                       ASCIIZ string
  121. `6F9             XX                   Taunt macro 2
  122. `712             XX                   Taunt macro 3
  123. `72B             XX                   Taunt macro 4
  124.  
  125. and some junk toward the end, probably representing controller 
  126. configurations?
  127.  
  128.  
  129. Laser Descriptor Byte table:
  130.  
  131. This byte, at offset 44 within each saved game, is IMHO the funnest 
  132. to play with. It appears that Descent references all weapons 
  133. internally, both of the player and the baddies, using the same 
  134. numbering system. So after level 4 lasers, you start getting into 
  135. some neat weapons. :) What's more, slapping on a quad will make you 
  136. more powerful than almost anything! Each weapon, regardless of type, 
  137. runs off your energy. It takes four shots to deplete one energy unit, 
  138. or two shots if you have quads.
  139.  
  140. CAUTION: If you're running about with level 17 lasers (my personal 
  141. favorite) and hit a laser powerup, your lasers will revert to 
  142. level 4. But when you die, 16 laser powerups will still go floating 
  143. into the room.
  144.  
  145. ~Descriptor Byte Value:              Description:
  146. ~---------------------               -----------
  147. `00                                  Level 1 lasers
  148. `01                                  Level 2
  149. `02                                  Level 3
  150. `03                                  Level 4
  151. `04                                  Big, slow, weak, blue plasma 
  152.                                      balls... does anybody recognize 
  153.                                      these?
  154. `05                                  Yellow drone's fireballs (WEAK)
  155. `06                                  Reactor's red fireballs
  156. `07                                  Apparently nothing... I speculate
  157.                                      that this might be the weapon of
  158.                                      the green lifter drones... but I 
  159.                                      don't know how to use it 
  160. `08                                  Concussion missiles!
  161. `09                                  Flares
  162. `0A                                  Blue drone's lasers
  163. `0B                                  Vulcan cannon (fires slower than 
  164.                                      normal Vulcan)
  165. `0C                                  Spreadfire cannon balls
  166. `0D                                  Nothing again...
  167. `0E                                  And again...
  168. `0F                                  Homing missiles. Put quads on 
  169.                                      these babies!
  170. `10                                  Mines... Do NOT put quads on 
  171.                                      these! %-{
  172. `11                                  Level 7 boss's missiles... these 
  173.                                      hit for HUGE damage and then 
  174.                                      fragment into tons of little 
  175.                                      green blobs that home onto 
  176.                                      enemies.  The blobs are powerful 
  177.                                      but slow.
  178. `12                                  Nothing...
  179. `13                                  Just the green blobs from the 
  180.                                      boss missiles 
  181. `14                                  Spreadfire cannon balls (possibly 
  182.                                      faster or stronger than for 0C ?)
  183. `15                                  Slow homing missiles
  184. `16                                  Slow (?) concussion missiles
  185. `17                                  Spreadfire cannon balls AGAIN
  186. `18                                  Wimpy, slow red lasers
  187. `19                                  Slow green lasers
  188. `1A                                  Nothing AGAIN...
  189. `1B                                  Yellow drone's fireballs... seem
  190.                                      more powerful, and maybe faster?
  191. `1C                                  Wimpy, FAST red lasers
  192. `1D                                  Same lasers... possibly stronger?
  193.  
  194. `1E and above seem to have the same red lasers... I haven't checked 
  195.     them all of course.  Increasing the difficulty of the game will 
  196.     make some weapons faster or stronger.
  197.  
  198. Happy hacking!
  199.