home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 19 / CD_ASCQ_19_010295.iso / vrac / lmpc21.zip / LS.DOC < prev   
Text File  |  1994-10-24  |  4KB  |  120 lines

  1.                      LMP Source Description
  2.  
  3.            Public Version 2.1           24 October, 1994
  4.            by Uwe Girlich 
  5.               (girlich@aix520.informatik.uni-leipzig.de)
  6.  
  7.  
  8. The LMP Source format (LS) is a (ASCII text based) readable description of 
  9. the contents of a (binary) LMP.
  10.  
  11. LMPC produces (with -s) a well formatted LS file. So you can learn by example.
  12. I hope, that the text parser in LMPC (with -l) can parse most of LS files.
  13.  
  14. The LS language is a line oriented language. 
  15. Empty lines are ignored.
  16. The keywords aren't case sensitive.
  17. The rest of line after the character # would be ignored. (like in UNIX 
  18. shell scripts).
  19.  
  20. In front of all other information in a LS file (produced by LMPC -s) there
  21. are some comment lines with derived informations:
  22.  
  23. LMP file:            filename of the LMP file
  24. Number of players:   derived from the number of used colors
  25. Total play time:     derived from the number of game tics
  26. Number of game tics: derived from the filelength
  27.  
  28. I can only hope, that next versions of LMPC will use the same LMP 
  29. source language or are at least compatible.
  30.  
  31.  
  32. 1. Header Area
  33. ==============
  34.  
  35. The Header Area starts with the keyword HeaderStart and ends with the 
  36. keyword HeaderEnd.
  37.  
  38. Between HeaderStart and HeaderEnd there are lines with general information
  39. about the LMP file:
  40.  
  41. Version:      Version Number (old LMP's have here only a <1.4)
  42. Skill:        Player Skill (1-5) 
  43. Episode:      Episode (1-3) 
  44. Map:          Starting Map (1-9)
  45.  
  46. in multiplayer LMP's comes now a table with the colors of the players
  47. Player0:      Color of player 0 (0: green, 1: indigo, 2: brown, 3: red)
  48. Player1:      Color of Player 1
  49. etc.
  50.  
  51. The following lines are special for new LMP's.
  52.  
  53. MultiRule:    Multiplayer Playing Rule (Cooperative, DeathMatch or Altdeath)
  54. Respawn:      number   (This line appears only if the LMP was recorded 
  55.                         with -respwan. The number is the number of the 
  56.                         command line parameter -respawn.)
  57. Fast:         number   (This line appears only if the LMP was recorded 
  58.                         with -fast. The number is the number of the 
  59.                         command line parameter -fast.)
  60. NoMonsters:   number   (This line appears only if the LMP was recorded 
  61.                         with -nomonsters. The number is the number of the 
  62.                         command line parameter -nomonsters.)
  63. ViewOfPlayer: color    (The LMP is recorded from the view of the player 
  64.                         with this color, (0<=color<=3))
  65.  
  66.  
  67. 2. Data Area
  68. ============
  69.  
  70. The Data Area starts with the keyword DataStart and ends with the keyword
  71. DataEnd.
  72.  
  73. All actions of one game tic have to be in one text line. In a multiplayer
  74. LMP there is one line for each player per game tic. LMPC appends in the 
  75. line of the first player a comment with the game tic number and the time 
  76. passed until this game tic.
  77.  
  78.  
  79. 2.1 Movement Codes
  80. ------------------
  81.  
  82. A movement consists of a 2 letter word and an amount n (1<=n<=127)
  83.  
  84. GFn     Go Forward n    
  85. GBn     Go Backward n   
  86. SLn     Strafe Left n  
  87. SRn     Strafe Right n  
  88. TLn     Turn Left n
  89. TRn     Turn Right n
  90.  
  91.  
  92. 2.2 Use Codes
  93. -------------
  94.  
  95. UT      Use Thing  (press button, open door etc.)
  96. NWn     New Weapon (1<=n<=8) (change the weapon manually)
  97. FW      Fire Weapon
  98.  
  99. PS      Pause Start
  100. PE      Pause End
  101. SGn     Save Game in slot n (0<=n<=7)
  102.  
  103. You can not combine PS, PE and SG with other Use Codes. But you can combine the
  104. other Use Codes (ie UT and FW at the same time).
  105.  
  106.  
  107. 2.3 Special Codes
  108. -----------------
  109.  
  110. WT      Wait a Tic
  111. *n      Repeats the current line n times; useful for long waits. 
  112.         LMPC -s does not produce such lines but LMPC -l understands.
  113.  
  114.  
  115. For further information on LMP's look in the "Unofficial LMP format 
  116. description". The current version is 1.10 (LMP110.DOC on infant2).
  117.  
  118. Uwe Girlich             24 October, 1994
  119. girlich@aix520.informatik.uni-leipzig.de
  120.