author | ecalot
<ecalot> 2007-05-10 14:22:37 UTC |
committer | ecalot
<ecalot> 2007-05-10 14:22:37 UTC |
parent | 51e95a8e082f71635012d6d717f8794cebbb530c |
FP/doc/FormatSpecifications | +75 | -39 |
FP/doc/FormatSpecifications.tex | +75 | -39 |
diff --git a/FP/doc/FormatSpecifications b/FP/doc/FormatSpecifications index f1b58a4..ca4178f 100644 --- a/FP/doc/FormatSpecifications +++ b/FP/doc/FormatSpecifications @@ -5,45 +5,46 @@ Table of Contents ~~~~~ ~~ ~~~~~~~~ -1. Preamble ............................................................ 49 -2. Introduction ........................................................ 58 -3. DAT v1.0 Format Specifications ...................................... 91 -3.1. General file specs, index and checksums ........................... 94 -3.2. Images ........................................................... 186 -3.2.1 Headers ......................................................... 190 -3.2.2 Algorithms ...................................................... 215 -3.2.2.1 Run length encoding (RLE) ..................................... 231 -3.2.2.2 LZ variant (LZG) .............................................. 243 -3.3. Palettes ......................................................... 301 -3.4. Levels ........................................................... 384 -3.4.1 Unknown blocks .................................................. 415 -3.4.2 Room mapping .................................................... 433 -3.4.2.1 Wall drawing algorithm ........................................ 569 -3.4.3 Room linking .................................................... 637 -3.4.4 Guard handling .................................................. 653 -3.4.5 Starting Position ............................................... 701 -3.4.6 Door events ..................................................... 715 -3.5. Digital Waves .................................................... 759 -3.6. Midi music ....................................................... 776 -3.7. Internal PC Speaker .............................................. 779 -3.8. Binary files ..................................................... 784 -4. DAT v2.0 Format Specifications ..................................... 791 -4.1. General file specs, index and checksums .......................... 794 -4.1.1 The master index ................................................ 821 -4.1.2 The slave indexes ............................................... 870 -4.2. Levels ........................................................... 904 -4.2.1 Room mapping .................................................... 926 -4.2.2 Door events .................................................... 1019 -4.2.3 Guard handling ................................................. 1040 -4.2.3.1 Static guards ................................................ 1053 -4.2.3.2 Dynamic guards ............................................... 1100 -5. PLV v1.0 Format Specifications .................................... 1133 -5.1. User data ....................................................... 1160 -5.2. Allowed Date format ............................................. 1190 -6. The SAV v1.0 format ............................................... 1204 -7. The HOF v1.0 format ............................................... 1250 -8. Credits ........................................................... 1273 -9. License ........................................................... 1294 +1. Preamble ............................................................ 50 +2. Introduction ........................................................ 59 +3. DAT v1.0 Format Specifications ...................................... 92 +3.1. General file specs, index and checksums ........................... 95 +3.2. Images ........................................................... 187 +3.2.1 Headers ......................................................... 191 +3.2.2 Algorithms ...................................................... 216 +3.2.2.1 Run length encoding (RLE) ..................................... 232 +3.2.2.2 LZ variant (LZG) .............................................. 244 +3.3. Palettes ......................................................... 302 +3.4. Levels ........................................................... 385 +3.4.1 Unknown blocks .................................................. 416 +3.4.2 Room mapping .................................................... 434 +3.4.2.1 Wall drawing algorithm ........................................ 570 +3.4.3 Room linking .................................................... 638 +3.4.4 Guard handling .................................................. 654 +3.4.5 Starting Position ............................................... 702 +3.4.6 Door events ..................................................... 716 +3.5. Digital Waves .................................................... 760 +3.6. Midi music ....................................................... 777 +3.7. Internal PC Speaker .............................................. 780 +3.8. Binary files ..................................................... 785 +3.9. Levels in POP1 for Mac ........................................... 791 +4. DAT v2.0 Format Specifications ..................................... 826 +4.1. General file specs, index and checksums .......................... 829 +4.1.1 The master index ................................................ 856 +4.1.2 The slave indexes ............................................... 905 +4.2. Levels ........................................................... 939 +4.2.1 Room mapping .................................................... 961 +4.2.2 Door events .................................................... 1054 +4.2.3 Guard handling ................................................. 1075 +4.2.3.1 Static guards ................................................ 1088 +4.2.3.2 Dynamic guards ............................................... 1135 +5. PLV v1.0 Format Specifications .................................... 1168 +5.1. User data ....................................................... 1195 +5.2. Allowed Date format ............................................. 1225 +6. The SAV v1.0 format ............................................... 1239 +7. The HOF v1.0 format ............................................... 1285 +8. Credits ........................................................... 1308 +9. License ........................................................... 1330 1. Preamble @@ -787,6 +788,40 @@ Table of Contents saving n records of a 16-colour-palette of 3 bytes in the specified palette format. +3.9. Levels in POP1 for Mac + In the case of Mac, executable and resource data are embedded in the + one run-time file. Level data is a part of resources, for examples + graphics, icons and sounds. Level blocks are very similar to PC but + not exactly identical. Following table has a summary of the blocks of + DAT 1.0 for Mac. + + Table 3.9: DAT 1.0 Level blocks for Mac + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Length Offset Block Name + ~~~~~~ ~~~~~~ ~~~~~~~~~~ + 720 0 pop1_foretable + 720 720 pop1_backtable + 256 1440 door I + 256 1696 door II + 96 1952 links + 64 2048 unknown I + 3 2112 start_position + 21 2115 unknown II+III + 24 2136 guard_location + 24 2160 guard_direction + 24 2184 unknown IV (a) + 24 2208 unknown IV (b) + 24 2232 guard_skill + 24 2256 unknown IV (c) + 24 2280 guard_colour + 4 2304 unknown IV (d) + + All levels have a size of 2308. Also there are two different things + in comparison with DAT 1.0 for PC. DAT 1.0 for Mac does not have + any index and checksums. 16 levels including demo and potion level + are only chained in sequence. See 3.4 for reference on each block. + 4. DAT v2.0 Format Specifications ~~~ ~~~~ ~~~~~~ ~~~~~~~~~~~~~~ @@ -1281,6 +1316,7 @@ Table of Contents Indexes . . . . . . . . . . . . . . . . . . . . . . . . . Enrique Calot Levels . . . . . . . . . . . . . . . . . . . . . . . . . Enrique Calot Brendon James + MAC Levels . . . . . . . . . . . . . . . . . . . . . . . . Dongsoo Lim Images . . . . . . . . . . . . . . . . . . . . . . . Tammo Jan Dijkema RLE Compression . . . . . . . . . . . . . . . . . . . Tammo Jan Dijkema LZG Compression . . . . . . . . . . . . . . . . . . . . . Anke Balderer diff --git a/FP/doc/FormatSpecifications.tex b/FP/doc/FormatSpecifications.tex index f1b58a4..ca4178f 100644 --- a/FP/doc/FormatSpecifications.tex +++ b/FP/doc/FormatSpecifications.tex @@ -5,45 +5,46 @@ Table of Contents ~~~~~ ~~ ~~~~~~~~ -1. Preamble ............................................................ 49 -2. Introduction ........................................................ 58 -3. DAT v1.0 Format Specifications ...................................... 91 -3.1. General file specs, index and checksums ........................... 94 -3.2. Images ........................................................... 186 -3.2.1 Headers ......................................................... 190 -3.2.2 Algorithms ...................................................... 215 -3.2.2.1 Run length encoding (RLE) ..................................... 231 -3.2.2.2 LZ variant (LZG) .............................................. 243 -3.3. Palettes ......................................................... 301 -3.4. Levels ........................................................... 384 -3.4.1 Unknown blocks .................................................. 415 -3.4.2 Room mapping .................................................... 433 -3.4.2.1 Wall drawing algorithm ........................................ 569 -3.4.3 Room linking .................................................... 637 -3.4.4 Guard handling .................................................. 653 -3.4.5 Starting Position ............................................... 701 -3.4.6 Door events ..................................................... 715 -3.5. Digital Waves .................................................... 759 -3.6. Midi music ....................................................... 776 -3.7. Internal PC Speaker .............................................. 779 -3.8. Binary files ..................................................... 784 -4. DAT v2.0 Format Specifications ..................................... 791 -4.1. General file specs, index and checksums .......................... 794 -4.1.1 The master index ................................................ 821 -4.1.2 The slave indexes ............................................... 870 -4.2. Levels ........................................................... 904 -4.2.1 Room mapping .................................................... 926 -4.2.2 Door events .................................................... 1019 -4.2.3 Guard handling ................................................. 1040 -4.2.3.1 Static guards ................................................ 1053 -4.2.3.2 Dynamic guards ............................................... 1100 -5. PLV v1.0 Format Specifications .................................... 1133 -5.1. User data ....................................................... 1160 -5.2. Allowed Date format ............................................. 1190 -6. The SAV v1.0 format ............................................... 1204 -7. The HOF v1.0 format ............................................... 1250 -8. Credits ........................................................... 1273 -9. License ........................................................... 1294 +1. Preamble ............................................................ 50 +2. Introduction ........................................................ 59 +3. DAT v1.0 Format Specifications ...................................... 92 +3.1. General file specs, index and checksums ........................... 95 +3.2. Images ........................................................... 187 +3.2.1 Headers ......................................................... 191 +3.2.2 Algorithms ...................................................... 216 +3.2.2.1 Run length encoding (RLE) ..................................... 232 +3.2.2.2 LZ variant (LZG) .............................................. 244 +3.3. Palettes ......................................................... 302 +3.4. Levels ........................................................... 385 +3.4.1 Unknown blocks .................................................. 416 +3.4.2 Room mapping .................................................... 434 +3.4.2.1 Wall drawing algorithm ........................................ 570 +3.4.3 Room linking .................................................... 638 +3.4.4 Guard handling .................................................. 654 +3.4.5 Starting Position ............................................... 702 +3.4.6 Door events ..................................................... 716 +3.5. Digital Waves .................................................... 760 +3.6. Midi music ....................................................... 777 +3.7. Internal PC Speaker .............................................. 780 +3.8. Binary files ..................................................... 785 +3.9. Levels in POP1 for Mac ........................................... 791 +4. DAT v2.0 Format Specifications ..................................... 826 +4.1. General file specs, index and checksums .......................... 829 +4.1.1 The master index ................................................ 856 +4.1.2 The slave indexes ............................................... 905 +4.2. Levels ........................................................... 939 +4.2.1 Room mapping .................................................... 961 +4.2.2 Door events .................................................... 1054 +4.2.3 Guard handling ................................................. 1075 +4.2.3.1 Static guards ................................................ 1088 +4.2.3.2 Dynamic guards ............................................... 1135 +5. PLV v1.0 Format Specifications .................................... 1168 +5.1. User data ....................................................... 1195 +5.2. Allowed Date format ............................................. 1225 +6. The SAV v1.0 format ............................................... 1239 +7. The HOF v1.0 format ............................................... 1285 +8. Credits ........................................................... 1308 +9. License ........................................................... 1330 1. Preamble @@ -787,6 +788,40 @@ Table of Contents saving n records of a 16-colour-palette of 3 bytes in the specified palette format. +3.9. Levels in POP1 for Mac + In the case of Mac, executable and resource data are embedded in the + one run-time file. Level data is a part of resources, for examples + graphics, icons and sounds. Level blocks are very similar to PC but + not exactly identical. Following table has a summary of the blocks of + DAT 1.0 for Mac. + + Table 3.9: DAT 1.0 Level blocks for Mac + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Length Offset Block Name + ~~~~~~ ~~~~~~ ~~~~~~~~~~ + 720 0 pop1_foretable + 720 720 pop1_backtable + 256 1440 door I + 256 1696 door II + 96 1952 links + 64 2048 unknown I + 3 2112 start_position + 21 2115 unknown II+III + 24 2136 guard_location + 24 2160 guard_direction + 24 2184 unknown IV (a) + 24 2208 unknown IV (b) + 24 2232 guard_skill + 24 2256 unknown IV (c) + 24 2280 guard_colour + 4 2304 unknown IV (d) + + All levels have a size of 2308. Also there are two different things + in comparison with DAT 1.0 for PC. DAT 1.0 for Mac does not have + any index and checksums. 16 levels including demo and potion level + are only chained in sequence. See 3.4 for reference on each block. + 4. DAT v2.0 Format Specifications ~~~ ~~~~ ~~~~~~ ~~~~~~~~~~~~~~ @@ -1281,6 +1316,7 @@ Table of Contents Indexes . . . . . . . . . . . . . . . . . . . . . . . . . Enrique Calot Levels . . . . . . . . . . . . . . . . . . . . . . . . . Enrique Calot Brendon James + MAC Levels . . . . . . . . . . . . . . . . . . . . . . . . Dongsoo Lim Images . . . . . . . . . . . . . . . . . . . . . . . Tammo Jan Dijkema RLE Compression . . . . . . . . . . . . . . . . . . . Tammo Jan Dijkema LZG Compression . . . . . . . . . . . . . . . . . . . . . Anke Balderer