author | ecalot
<ecalot> 2007-03-26 15:19:35 UTC |
committer | ecalot
<ecalot> 2007-03-26 15:19:35 UTC |
parent | 4b846264b3e73d0202eae2084337970f18f94bb6 |
FP/doc/FormatSpecifications | +47 | -47 |
FP/doc/FormatSpecifications.tex | +47 | -47 |
diff --git a/FP/doc/FormatSpecifications b/FP/doc/FormatSpecifications index 046e272..f3bc77d 100644 --- a/FP/doc/FormatSpecifications +++ b/FP/doc/FormatSpecifications @@ -5,49 +5,49 @@ Table of Contents ~~~~~ ~~ ~~~~~~~~ -1. Preamble ............................................................ 51 -2. Introduction ........................................................ 60 -3. Primitives .......................................................... 85 -3.1. DAT reading and writing primitives ................................ 92 -3.2. DAT reading primitives ........................................... 104 -3.3. DAT writing primitives ........................................... 113 -4. DAT v1.0 Format Specifications ..................................... 122 -4.1. General file specs, index and checksums .......................... 125 -4.2. Images ........................................................... 209 -4.2.1 Headers ......................................................... 213 -4.2.2 Algorithms ...................................................... 238 -4.2.2.1 Run length encoding (RLE) ..................................... 254 -4.2.2.2 LZ variant (LZG) .............................................. 266 -4.3. Palettes ......................................................... 324 -4.4. Levels ........................................................... 331 -4.4.1 Unknown blocks .................................................. 362 -4.4.2 Room mapping .................................................... 380 -4.4.2.1 Wall drawing algorithm ........................................ 516 -4.4.3 Room linking .................................................... 584 -4.4.4 Guard handling .................................................. 600 -4.4.5 Starting Position ............................................... 647 -4.4.6 Door events ..................................................... 661 -4.5. Digital Waves .................................................... 705 -4.6. Midi music ....................................................... 722 -4.7. Internal PC Speaker .............................................. 725 -4.8. Binary files ..................................................... 730 -5. DAT v2.0 Format Specifications ..................................... 737 -5.1. General file specs, index and checksums .......................... 740 -5.1.1 The master index ................................................ 767 -5.1.2 The slave indexes ............................................... 813 -5.2. Levels ........................................................... 833 -5.2.1 Room mapping .................................................... 856 -5.2.2 Door events ..................................................... 949 -5.2.3 Guard handling .................................................. 970 -5.2.3.1 Static guards ................................................. 000 -5.2.3.2 Dynamic guards ................................................ 000 -6. PLV v1.0 Format Specifications ..................................... 995 -6.1. User data ....................................................... 1022 -6.2. Allowed Date format ............................................. 1052 -7. The SAV v1.0 format ............................................... 1066 -8. The HOF v1.0 format ............................................... 1112 -9. Credits ........................................................... 1135 -10. License .......................................................... 1156 +1. Preamble ............................................................ 53 +2. Introduction ........................................................ 62 +3. Primitives .......................................................... 87 +3.1. DAT reading and writing primitives ................................ 94 +3.2. DAT reading primitives ........................................... 106 +3.3. DAT writing primitives ........................................... 115 +4. DAT v1.0 Format Specifications ..................................... 124 +4.1. General file specs, index and checksums .......................... 127 +4.2. Images ........................................................... 219 +4.2.1 Headers ......................................................... 223 +4.2.2 Algorithms ...................................................... 248 +4.2.2.1 Run length encoding (RLE) ..................................... 264 +4.2.2.2 LZ variant (LZG) .............................................. 276 +4.3. Palettes ......................................................... 334 +4.4. Levels ........................................................... 341 +4.4.1 Unknown blocks .................................................. 372 +4.4.2 Room mapping .................................................... 390 +4.4.2.1 Wall drawing algorithm ........................................ 526 +4.4.3 Room linking .................................................... 594 +4.4.4 Guard handling .................................................. 610 +4.4.5 Starting Position ............................................... 657 +4.4.6 Door events ..................................................... 671 +4.5. Digital Waves .................................................... 715 +4.6. Midi music ....................................................... 732 +4.7. Internal PC Speaker .............................................. 735 +4.8. Binary files ..................................................... 740 +5. DAT v2.0 Format Specifications ..................................... 747 +5.1. General file specs, index and checksums .......................... 750 +5.1.1 The master index ................................................ 777 +5.1.2 The slave indexes ............................................... 823 +5.2. Levels ........................................................... 843 +5.2.1 Room mapping .................................................... 867 +5.2.2 Door events ..................................................... 960 +5.2.3 Guard handling .................................................. 981 +5.2.3.1 Static guards ................................................. 994 +5.2.3.2 Dynamic guards ............................................... 1030 +6. PLV v1.0 Format Specifications .................................... 1047 +6.1. User data ....................................................... 1074 +6.2. Allowed Date format ............................................. 1104 +7. The SAV v1.0 format ............................................... 1118 +8. The HOF v1.0 format ............................................... 1164 +9. Credits ........................................................... 1187 +10. License .......................................................... 1208 1. Preamble @@ -149,9 +149,9 @@ Table of Contents Range: 0 to 65535 2 bytes SS - Signed Short: Little endian, 16 bits, storing two groups of 8 bits - ordered from the less representative to the most representative - with sign. If the first byte is 0 then the number is positive, if not - the number is negative, in that case invert all bits and add 1 to get + ordered from the less representative to the most representative with + sign. If the first byte is 0 then the number is positive, if not the + number is negative, in that case invert all bits and add 1 to get the positive number. i.e. -2 is FFFE in hex and is stored FE FF (1111 1110 1111 1111) Range: -32768 to 32767 @@ -796,7 +796,7 @@ Table of Contents less than 4 bytes, they are ended in hex 0x00 is used. We will denote it with the cardinal # symbol. The character order is inverted, so for example the text SLAP becomes PALS, MARF becomes FRAM, #### becomes empty - or RCS# becomes SCR. They must be un upper case. + or RCS# becomes SCR. They must be in upper case. Table 5.1: Section ID strings ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/FP/doc/FormatSpecifications.tex b/FP/doc/FormatSpecifications.tex index 046e272..f3bc77d 100644 --- a/FP/doc/FormatSpecifications.tex +++ b/FP/doc/FormatSpecifications.tex @@ -5,49 +5,49 @@ Table of Contents ~~~~~ ~~ ~~~~~~~~ -1. Preamble ............................................................ 51 -2. Introduction ........................................................ 60 -3. Primitives .......................................................... 85 -3.1. DAT reading and writing primitives ................................ 92 -3.2. DAT reading primitives ........................................... 104 -3.3. DAT writing primitives ........................................... 113 -4. DAT v1.0 Format Specifications ..................................... 122 -4.1. General file specs, index and checksums .......................... 125 -4.2. Images ........................................................... 209 -4.2.1 Headers ......................................................... 213 -4.2.2 Algorithms ...................................................... 238 -4.2.2.1 Run length encoding (RLE) ..................................... 254 -4.2.2.2 LZ variant (LZG) .............................................. 266 -4.3. Palettes ......................................................... 324 -4.4. Levels ........................................................... 331 -4.4.1 Unknown blocks .................................................. 362 -4.4.2 Room mapping .................................................... 380 -4.4.2.1 Wall drawing algorithm ........................................ 516 -4.4.3 Room linking .................................................... 584 -4.4.4 Guard handling .................................................. 600 -4.4.5 Starting Position ............................................... 647 -4.4.6 Door events ..................................................... 661 -4.5. Digital Waves .................................................... 705 -4.6. Midi music ....................................................... 722 -4.7. Internal PC Speaker .............................................. 725 -4.8. Binary files ..................................................... 730 -5. DAT v2.0 Format Specifications ..................................... 737 -5.1. General file specs, index and checksums .......................... 740 -5.1.1 The master index ................................................ 767 -5.1.2 The slave indexes ............................................... 813 -5.2. Levels ........................................................... 833 -5.2.1 Room mapping .................................................... 856 -5.2.2 Door events ..................................................... 949 -5.2.3 Guard handling .................................................. 970 -5.2.3.1 Static guards ................................................. 000 -5.2.3.2 Dynamic guards ................................................ 000 -6. PLV v1.0 Format Specifications ..................................... 995 -6.1. User data ....................................................... 1022 -6.2. Allowed Date format ............................................. 1052 -7. The SAV v1.0 format ............................................... 1066 -8. The HOF v1.0 format ............................................... 1112 -9. Credits ........................................................... 1135 -10. License .......................................................... 1156 +1. Preamble ............................................................ 53 +2. Introduction ........................................................ 62 +3. Primitives .......................................................... 87 +3.1. DAT reading and writing primitives ................................ 94 +3.2. DAT reading primitives ........................................... 106 +3.3. DAT writing primitives ........................................... 115 +4. DAT v1.0 Format Specifications ..................................... 124 +4.1. General file specs, index and checksums .......................... 127 +4.2. Images ........................................................... 219 +4.2.1 Headers ......................................................... 223 +4.2.2 Algorithms ...................................................... 248 +4.2.2.1 Run length encoding (RLE) ..................................... 264 +4.2.2.2 LZ variant (LZG) .............................................. 276 +4.3. Palettes ......................................................... 334 +4.4. Levels ........................................................... 341 +4.4.1 Unknown blocks .................................................. 372 +4.4.2 Room mapping .................................................... 390 +4.4.2.1 Wall drawing algorithm ........................................ 526 +4.4.3 Room linking .................................................... 594 +4.4.4 Guard handling .................................................. 610 +4.4.5 Starting Position ............................................... 657 +4.4.6 Door events ..................................................... 671 +4.5. Digital Waves .................................................... 715 +4.6. Midi music ....................................................... 732 +4.7. Internal PC Speaker .............................................. 735 +4.8. Binary files ..................................................... 740 +5. DAT v2.0 Format Specifications ..................................... 747 +5.1. General file specs, index and checksums .......................... 750 +5.1.1 The master index ................................................ 777 +5.1.2 The slave indexes ............................................... 823 +5.2. Levels ........................................................... 843 +5.2.1 Room mapping .................................................... 867 +5.2.2 Door events ..................................................... 960 +5.2.3 Guard handling .................................................. 981 +5.2.3.1 Static guards ................................................. 994 +5.2.3.2 Dynamic guards ............................................... 1030 +6. PLV v1.0 Format Specifications .................................... 1047 +6.1. User data ....................................................... 1074 +6.2. Allowed Date format ............................................. 1104 +7. The SAV v1.0 format ............................................... 1118 +8. The HOF v1.0 format ............................................... 1164 +9. Credits ........................................................... 1187 +10. License .......................................................... 1208 1. Preamble @@ -149,9 +149,9 @@ Table of Contents Range: 0 to 65535 2 bytes SS - Signed Short: Little endian, 16 bits, storing two groups of 8 bits - ordered from the less representative to the most representative - with sign. If the first byte is 0 then the number is positive, if not - the number is negative, in that case invert all bits and add 1 to get + ordered from the less representative to the most representative with + sign. If the first byte is 0 then the number is positive, if not the + number is negative, in that case invert all bits and add 1 to get the positive number. i.e. -2 is FFFE in hex and is stored FE FF (1111 1110 1111 1111) Range: -32768 to 32767 @@ -796,7 +796,7 @@ Table of Contents less than 4 bytes, they are ended in hex 0x00 is used. We will denote it with the cardinal # symbol. The character order is inverted, so for example the text SLAP becomes PALS, MARF becomes FRAM, #### becomes empty - or RCS# becomes SCR. They must be un upper case. + or RCS# becomes SCR. They must be in upper case. Table 5.1: Section ID strings ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~