adventure revision 1.1.1.1 1 1.1 christos
2 1.1 christos #------------------------------------------------------------------------------
3 1.1 christos # adventure: file(1) magic for Adventure game files
4 1.1 christos #
5 1.1 christos # from Allen Garvin <earendil (a] faeryland.tamu-commerce.edu>
6 1.1 christos # Edited by Dave Chapeskie <dchapes (a] ddm.on.ca> Jun 28, 1998
7 1.1 christos # Edited by Chris Chittleborough <cchittleborough (a] yahoo.com.au>, March 2002
8 1.1 christos #
9 1.1 christos # ALAN
10 1.1 christos # I assume there are other, lower versions, but these are the only ones I
11 1.1 christos # saw in the archive.
12 1.1 christos 0 beshort 0x0206 ALAN game data
13 1.1 christos >2 byte <10 version 2.6%d
14 1.1 christos
15 1.1 christos
16 1.1 christos # Infocom (see z-machine)
17 1.1 christos #------------------------------------------------------------------------------
18 1.1 christos # Z-machine: file(1) magic for Z-machine binaries.
19 1.1 christos #
20 1.1 christos # This will match ${TEX_BASE}/texmf/omega/ocp/char2uni/inbig5.ocp which
21 1.1 christos # appears to be a version-0 Z-machine binary.
22 1.1 christos #
23 1.1 christos # The (false match) message is to correct that behavior. Perhaps it is
24 1.1 christos # not needed.
25 1.1 christos #
26 1.1 christos 16 belong&0xfe00f0f0 0x3030 Infocom game data
27 1.1 christos >0 ubyte 0 (false match)
28 1.1 christos >0 ubyte >0 (Z-machine %d,
29 1.1 christos >>2 ubeshort x Release %d /
30 1.1 christos >>18 string >\0 Serial %.6s)
31 1.1 christos
32 1.1 christos #------------------------------------------------------------------------------
33 1.1 christos # Glulx: file(1) magic for Glulx binaries.
34 1.1 christos #
35 1.1 christos # I haven't checked for false matches yet.
36 1.1 christos #
37 1.1 christos 0 string Glul Glulx game data
38 1.1 christos >4 beshort x (Version %d
39 1.1 christos >>6 byte x \b.%d
40 1.1 christos >>8 byte x \b.%d)
41 1.1 christos >36 string Info Compiled by Inform
42 1.1 christos
43 1.1 christos
44 1.1 christos
45 1.1 christos # For Quetzal and blorb magic see iff
46 1.1 christos
47 1.1 christos
48 1.1 christos # TADS (Text Adventure Development System)
49 1.1 christos # All files are machine-independent (games compile to byte-code) and are tagged
50 1.1 christos # with a version string of the form "V2.<digit>.<digit>\0" (but TADS 3 is
51 1.1 christos # on the way).
52 1.1 christos # Game files start with "TADS2 bin\n\r\032\0" then the compiler version.
53 1.1 christos 0 string TADS2\ bin TADS
54 1.1 christos >9 belong !0x0A0D1A00 game data, CORRUPTED
55 1.1 christos >9 belong 0x0A0D1A00
56 1.1 christos >>13 string >\0 %s game data
57 1.1 christos # Resource files start with "TADS2 rsc\n\r\032\0" then the compiler version.
58 1.1 christos 0 string TADS2\ rsc TADS
59 1.1 christos >9 belong !0x0A0D1A00 resource data, CORRUPTED
60 1.1 christos >9 belong 0x0A0D1A00
61 1.1 christos >>13 string >\0 %s resource data
62 1.1 christos # Some saved game files start with "TADS2 save/g\n\r\032\0", a little-endian
63 1.1 christos # 2-byte length N, the N-char name of the game file *without* a NUL (darn!),
64 1.1 christos # "TADS2 save\n\r\032\0" and the interpreter version.
65 1.1 christos 0 string TADS2\ save/g TADS
66 1.1 christos >12 belong !0x0A0D1A00 saved game data, CORRUPTED
67 1.1 christos >12 belong 0x0A0D1A00
68 1.1 christos >>(16.s+32) string >\0 %s saved game data
69 1.1 christos # Other saved game files start with "TADS2 save\n\r\032\0" and the interpreter
70 1.1 christos # version.
71 1.1 christos 0 string TADS2\ save TADS
72 1.1 christos >10 belong !0x0A0D1A00 saved game data, CORRUPTED
73 1.1 christos >10 belong 0x0A0D1A00
74 1.1 christos >>14 string >\0 %s saved game data
75 1.1 christos
76 1.1 christos # Danny Milosavljevic <danny.milo (a] gmx.net>
77 1.1 christos # this are adrift (adventure game standard) game files, extension .taf
78 1.1 christos # depending on version magic continues with 0x93453E6139FA (V 4.0)
79 1.1 christos # 0x9445376139FA (V 3.90)
80 1.1 christos # 0x9445366139FA (V 3.80)
81 1.1 christos # this is from source (http://www.adrift.org.uk/) and I have some taf
82 1.1 christos # files, and checked them.
83 1.1 christos #0 belong 0x3C423FC9
84 1.1 christos #>4 belong 0x6A87C2CF Adrift game file
85 1.1 christos #!:mime application/x-adrift
86