adventure 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #------------------------------------------------------------------------------
  2. # adventure: file(1) magic for Adventure game files
  3. #
  4. # from Allen Garvin <earendil@faeryland.tamu-commerce.edu>
  5. # Edited by Dave Chapeskie <dchapes@ddm.on.ca> Jun 28, 1998
  6. #
  7. # ALAN
  8. # I assume there are other, lower versions, but these are the only ones I
  9. # saw in the archive.
  10. 0 beshort 0x0206 ALAN text adventure code data
  11. >2 byte <10 version 2.6%d
  12. # Conflicts with too much other stuff!
  13. # Infocom
  14. # (Note: to avoid false matches Z-machine version 1 and 2 are not
  15. # recognized since only the oldest Zork I and II used them. Similarly
  16. # there are 4 Infocom games that use verion 4 that are not recognized.)
  17. #0 byte 3 Infocom game data (Z-machine 3,
  18. #>2 beshort <0x7fff Release %3d,
  19. #>26 beshort >0 Size %d*2
  20. #>18 string >\0 Serial %.6s)
  21. #0 byte 5 Infocom game data (Z-machine 5,
  22. #>2 beshort <0x7fff Release %3d,
  23. #>26 beshort >0 Size %d*4
  24. #>18 string >\0 Serial %.6s)
  25. #0 byte 6 Infocom game data (Z-machine 6,
  26. #>2 beshort <0x7fff Release %3d,
  27. #>26 beshort >0 Size %d*8
  28. #>18 string >\0 Serial %.6s)
  29. #0 byte 8 Infocom game data (Z-machine 8,
  30. #>2 beshort <0x7fff Release %3d,
  31. #>26 beshort >0 Size %d*8
  32. #>18 string >\0 Serial %.6s)
  33. # TADS (Text Adventure Development System)
  34. 0 string TADS TADS game data
  35. >13 string >\0 (ver. %.6s,
  36. >22 string >\0 date %s)