SEVERANCE, BLADE OF DARKNESS

Bigtruck's pages

Updated August 19, 2005

HOME PAGETOOLS > LED EDITOR > CODES FORMAT MP FILES


CODES STRUCTURES OF THE MP FILES, BY SGI 1981

 

Ylor wrote "I'm currently investigating the format to see if I can understand how it work"

What format of a type (*.mp or *.bw).

If it "*.mp", I can while only lay out the incomplete information on a format "*.mp".
Researches of a format I carried out(spent) so:
I have created one simple map all from one sectors and has kept å ¸ under different names. The file / compare on contents - has compared to the help of the program WINDOWS COMMANDER commands two these of a file. They have appeared identical. Then I have opened the second file and beginnings to change a map, has kept again å ¸ in this file and has compared contents again. In a window I have found in a hexadecimal format a difference between these files and has seen, what bytes have changed. It means, that in them that number is kept which I have changed. So I have learned(found out), where in a file are written down the majority of numbers

READ....

I. Line with the name such as a map (in case of a map for Blade of Darkness
The name such as a map " Mapa Blade " length 10 symbols).
II. Byte equal to unit.
III. Nine zero bytes.
IV. The value such as longint (4 bytes) - is equal to unit.
V. Value such as WORD (2 bytes) - quantity(amount) of *.bmp-files òåêñòóð.

VI. Further there are consistently structures (one or severaled),
Each of which contains the description of an own *.bmp-file òåêñòóðû.
Format of structure:
1. Còðîêà with a name of a *.bmp-file (with expansion without ways to it(him)).
2. Line containing a way to a *.bmp-file (with a name and expansion).
( If the *.bmp-file contains in the same catalogue, as the file of a map or it(he) contains
In a *.mmp-file, which contains in the same catalogue, as file of a map,
That the line of a way to a file contains only name of a file without expansion).
3. Value such as Byte (1 byte) - is equal to unit.
4. Sequence of zero bytes from thirty one bytes.
The end of structure of the description of an own *.bmp-file òåêñòóðû.

VII. Value such as WORD (2 bytes) - total of atmospheres of a map.

VIII. Further there are consistently structures (one or severaled),
Each of which contains the description of an own atmosphere.
Format of structure:
1. Line with a name of an atmosphere.
2. Sequence from three bytes
( First - intensity of red colour of an atmosphere 0... 255,
Second - intensity of green colour of an atmosphere 0... 255,
Third - intensity of dark blue colour of an atmosphere 0... 255).
3. Value such as Single (material 4 bytes) - intensity of an atmosphere.
The end of structure of the description of an atmosphere.

IX. Further there is a structure describing INITIAL POINT a maps.
Format of structure:
1. Value such as DOUBLE (material 8 bytes) - position X of a point.
2. Value such as DOUBLE (material 8 bytes) - position Y of a point.
3. Value such as DOUBLE (material 8 bytes) - position Z of a point.
4. Value such as DOUBLE (material 8 bytes) - orientation X of a point.
5. Value such as DOUBLE (material 8 bytes) - orientation Y of a point.
6. Value such as DOUBLE (material 8 bytes) - orientation Z of a point.
The end of structure of the description INITIAL POINT of a map.

X. Further there is a structure describing dX and dY a maps.
Format of structure:
1. Value such as DOUBLE (material 8 bytes) - dX.
1. Value such as DOUBLE (material 8 bytes) - dY.
The end of structure of the description dX and dY of a map.

XI. Further there is a structure describing MAP LIMITS a maps.
Format of structure:
1. Value such as DOUBLE (material 8 bytes) - Left.
2. Value such as DOUBLE (material 8 bytes) - Right.
3. Value such as DOUBLE (material 8 bytes) - Upper.
4. Value such as DOUBLE (material 8 bytes) - Lower.
The end of structure of the description MAP LIMITS of a map.

XII. Value such as WORD (2 bytes) - total of sectors of a map. (? Or it
Value such as longint (4 bytes)?).
XIII. The value such as WORD (2 bytes) - is equal 1 (? Why?).

XIV. Further there are consistently structures (one or severaled),
Each of which contains the description of own sector.
Format of structure:
1. Value such as longint (4 bytes) - length of a line with the name of sector.
2. Line with the name of sector.
3. 14 zero bytes (? What they mean?).
4. Byte $F0 (? What it(he) means?).
5. Byte $BF (? What it(he) means?).
6. 8 zero bytes (? What they mean?).

( PARAMETERS of a FLOOR)
7. Value such as DOUBLE (material 8 bytes) = 0-height of a floor of sector.
8. Value such as longint (4 bytes) - length of a line containing a way to a *.bmp-file with
òåêñòóðîé of a floor.
9. Line containing a way to a *.bmp-file with òåêñòóðîé of a floor.
10. Value such as Single (material 4 bytes) - scale òåêñòóðû of a floor.
11. Value such as Single (material 4 bytes) - corner of turn òåêñòóðû of a floor.
12. Value such as Single (material 4 bytes) - coordinate X òåêñòóðû of a floor.
13. Value such as Single (material 4 bytes) - coordinate Y òåêñòóðû of a floor.
14. Value such as DOUBLE (material 8 bytes) = Height of a floor of sector.
15. Byte, which value defines(determines):
Floor flat either floor spherical or floor elliptic
( If the flat floor - byte is equal 2, if the spherical floor - byte is equal 1,
And if the elliptic floor - byte is equal 0).
16. Byte with value 2. (?)
17. Three zero bytes. (?)
18. Value such as DOUBLE (material 8 bytes) = Spherical radius of a floor.
19. Value such as longint (4 bytes) - quantity(amount) of segments of sphere or ellipse of a floor.
20. Value such as DOUBLE (material 8 bytes) = X-parameter of an ellipse of a floor.
21. Value such as DOUBLE (material 8 bytes) = Y-parameter of an ellipse of a floor.
22. 14 zero bytes (? What they mean?).
23. Byte $F0 (? What it(he) means?).
24. Byte $3F (? What it(he) means?).
25. 8 zero bytes (? What they mean?).

( PARAMETERS of a CEILING)
26. Value such as DOUBLE (material 8 bytes) = Height of a ceiling of sector.
27. Value such as longint (4 bytes) - length of a line containing a way to a *.bmp-file with
òåêñòóðîé of a ceiling.
28. Line containing a way to a *.bmp-file with òåêñòóðîé of a ceiling.
29. Value such as Single (material 4 bytes) - scale òåêñòóðû of a ceiling.
30. Value such as Single (material 4 bytes) - corner of turn òåêñòóðû of a ceiling.
31. Value such as Single (material 4 bytes) - coordinate X òåêñòóðû of a ceiling.
32. Value such as Single (material 4 bytes) - coordinate Y òåêñòóðû of a ceiling.
33. Value such as DOUBLE (material 8 bytes) = Height of a ceiling of sector.
34. Byte, which value defines(determines):
ïòîëîê flat either ceiling spherical or ceiling elliptic
( If the flat ceiling - byte is equal 2, if the spherical ceiling - byte is equal 1,
And if the elliptic ceiling - byte is equal 0).
35. Byte with value 2. (?)
36. Three zero bytes. (?)
37. Value such as DOUBLE (material 8 bytes) = Spherical radius of a ceiling.
38. Value such as longint (4 bytes) - quantity(amount) of segments of sphere or ellipse of a ceiling.
39. Value such as DOUBLE (material 8 bytes) = X-parameter of an ellipse of a ceiling.
40. Value such as DOUBLE (material 8 bytes) = Y-parameter of an ellipse of a ceiling.

( PARAMETERS of ILLUMINATION)

41. Sequence from three bytes,
Determining initial colour of environmental illumination of sector
( First - intensity of red colour 0... 255,
Second - intensity of green colour 0... 255,
Third - intensity of dark blue colour 0... 255).
42. Sequence from three bytes,
Determining initial colour of internal illumination of sector
( First - intensity of red colour 0... 255,
Second - intensity of green colour 0... 255,
Third - intensity of dark blue colour 0... 255).
43. Sequence from three bytes,
Determining colour of external illumination of sector
( First - intensity of red colour 0... 255,
Second - intensity of green colour 0... 255,
Third - intensity of dark blue colour 0... 255).
44. Sequence from three bytes,
Determining final colour of environmental illumination of sector
( First - intensity of red colour 0... 255,
Second - intensity of green colour 0... 255,
Third - intensity of dark blue colour 0... 255).
45. Sequence from three bytes,
Determining final colour of internal illumination of sector
( First - intensity of red colour 0... 255,
Second - intensity of green colour 0... 255,
Third - intensity of dark blue colour 0... 255).
46. Value such as DOUBLE (material 8 bytes) = X-coordinate of internal illumination.
47. Value such as DOUBLE (material 8 bytes) = Y-coordinate of internal illumination.
48. Value such as DOUBLE (material 8 bytes) = Z-coordinate of internal illumination.
49. Value such as DOUBLE (material 8 bytes) = X-coordinate of external illumination.
50. Value such as DOUBLE (material 8 bytes) = Y-coordinate of external illumination.
51. Value such as DOUBLE (material 8 bytes) = Z-coordinate of external illumination.

( Parameters of an atmosphere)
52. Line with the name of an atmosphere.

( Attributes of sector)
53. Value such as LONGINT (4 bytes), equal 2. (?)
54. Line with the name of attribute of sector.

( Parameters of points)
55. Value such as WORD (2 bytes) = quantity(amount) of points VERTEX.
56. Till two values such as DOUBLE (material 8 bytes) on each point it is consecutive -
Coordinates accordingly X and Y.

( Parameters of walls)
57. Value such as WORD (2 bytes) = quantity(amount) of walls.
58. Value such as LONGINT (4 bytes) = colour of a wall.
59. Value such as longbool (4 bytes) - if to include a floor, True.
60. Value such as longbool (4 bytes) - if to include a ceiling, True.
61. Line with a name "*.bmp" of a file òåêñòóðû.
62. Value such as Single (material 4 bytes) - scale òåêñòóðû.
63. Value such as Single (material 4 bytes) - corner of turn òåêñòóðû.
64. Value such as Single (material 4 bytes) - coordinate X òåêñòóðû.
65. Value such as Single (material 4 bytes) - coordinate Y òåêñòóðû.
66. Two zero bytes (?).

 


 

hit counter