Deleted Added
full compact
adventure (186690) adventure (226048)
1
2#------------------------------------------------------------------------------
1
2#------------------------------------------------------------------------------
3# $File: adventure,v 1.13 2010/12/31 16:32:54 christos Exp $
3# adventure: file(1) magic for Adventure game files
4#
5# from Allen Garvin <earendil@faeryland.tamu-commerce.edu>
6# Edited by Dave Chapeskie <dchapes@ddm.on.ca> Jun 28, 1998
7# Edited by Chris Chittleborough <cchittleborough@yahoo.com.au>, March 2002
8#
9# ALAN
10# I assume there are other, lower versions, but these are the only ones I
11# saw in the archive.
120 beshort 0x0206 ALAN game data
13>2 byte <10 version 2.6%d
14
15
16# Infocom (see z-machine)
17#------------------------------------------------------------------------------
18# Z-machine: file(1) magic for Z-machine binaries.
4# adventure: file(1) magic for Adventure game files
5#
6# from Allen Garvin <earendil@faeryland.tamu-commerce.edu>
7# Edited by Dave Chapeskie <dchapes@ddm.on.ca> Jun 28, 1998
8# Edited by Chris Chittleborough <cchittleborough@yahoo.com.au>, March 2002
9#
10# ALAN
11# I assume there are other, lower versions, but these are the only ones I
12# saw in the archive.
130 beshort 0x0206 ALAN game data
14>2 byte <10 version 2.6%d
15
16
17# Infocom (see z-machine)
18#------------------------------------------------------------------------------
19# Z-machine: file(1) magic for Z-machine binaries.
20# Updated by Adam Buchbinder <adam.buchbinder@gmail.com>
19#
21#
20# This will match ${TEX_BASE}/texmf/omega/ocp/char2uni/inbig5.ocp which
21# appears to be a version-0 Z-machine binary.
22#http://www.gnelson.demon.co.uk/zspec/sect11.html
23#http://www.jczorkmid.net/~jpenney/ZSpec11-latest.txt
24#http://en.wikipedia.org/wiki/Z-machine
25# The first byte is the Z-machine revision; it is always between 1 and 8. We
26# had false matches (for instance, inbig5.ocp from the Omega TeX extension as
27# well as an occasional MP3 file), so we sanity-check the version number.
22#
28#
23# The (false match) message is to correct that behavior. Perhaps it is
24# not needed.
29# It might be possible to sanity-check the release number as well, as it seems
30# (at least in classic Infocom games) to always be a relatively small number,
31# always under 150 or so, but as this isn't rigorous, we'll wait on that until
32# it becomes clear that it's needed.
25#
33#
2616 belong&0xfe00f0f0 0x3030 Infocom game data
27>0 ubyte 0 (false match)
28>0 ubyte >0 (Z-machine %d,
29>>2 ubeshort x Release %d /
30>>18 string >\0 Serial %.6s)
340 ubyte >0
35>0 ubyte <9
36>>16 belong&0xfe00f0f0 0x3030 Infocom game data
37>>>0 ubyte x (Z-machine %d,
38>>>>2 ubeshort x Release %d /
39>>>>18 string >\0 Serial %.6s)
31
32#------------------------------------------------------------------------------
33# Glulx: file(1) magic for Glulx binaries.
34#
35# I haven't checked for false matches yet.
36#
370 string Glul Glulx game data
38>4 beshort x (Version %d
39>>6 byte x \b.%d
40>>8 byte x \b.%d)
41>36 string Info Compiled by Inform
42
43
44
45# For Quetzal and blorb magic see iff
46
47
40
41#------------------------------------------------------------------------------
42# Glulx: file(1) magic for Glulx binaries.
43#
44# I haven't checked for false matches yet.
45#
460 string Glul Glulx game data
47>4 beshort x (Version %d
48>>6 byte x \b.%d
49>>8 byte x \b.%d)
50>36 string Info Compiled by Inform
51
52
53
54# For Quetzal and blorb magic see iff
55
56
48# TADS (Text Adventure Development System)
57# TADS (Text Adventure Development System) version 2
49# All files are machine-independent (games compile to byte-code) and are tagged
58# All files are machine-independent (games compile to byte-code) and are tagged
50# with a version string of the form "V2.<digit>.<digit>\0" (but TADS 3 is
51# on the way).
59# with a version string of the form "V2.<digit>.<digit>\0".
52# Game files start with "TADS2 bin\n\r\032\0" then the compiler version.
530 string TADS2\ bin TADS
54>9 belong !0x0A0D1A00 game data, CORRUPTED
55>9 belong 0x0A0D1A00
56>>13 string >\0 %s game data
57# Resource files start with "TADS2 rsc\n\r\032\0" then the compiler version.
580 string TADS2\ rsc TADS
59>9 belong !0x0A0D1A00 resource data, CORRUPTED

--- 8 unchanged lines hidden (view full) ---

68>>(16.s+32) string >\0 %s saved game data
69# Other saved game files start with "TADS2 save\n\r\032\0" and the interpreter
70# version.
710 string TADS2\ save TADS
72>10 belong !0x0A0D1A00 saved game data, CORRUPTED
73>10 belong 0x0A0D1A00
74>>14 string >\0 %s saved game data
75
60# Game files start with "TADS2 bin\n\r\032\0" then the compiler version.
610 string TADS2\ bin TADS
62>9 belong !0x0A0D1A00 game data, CORRUPTED
63>9 belong 0x0A0D1A00
64>>13 string >\0 %s game data
65# Resource files start with "TADS2 rsc\n\r\032\0" then the compiler version.
660 string TADS2\ rsc TADS
67>9 belong !0x0A0D1A00 resource data, CORRUPTED

--- 8 unchanged lines hidden (view full) ---

76>>(16.s+32) string >\0 %s saved game data
77# Other saved game files start with "TADS2 save\n\r\032\0" and the interpreter
78# version.
790 string TADS2\ save TADS
80>10 belong !0x0A0D1A00 saved game data, CORRUPTED
81>10 belong 0x0A0D1A00
82>>14 string >\0 %s saved game data
83
84# TADS (Text Adventure Development System) version 3
85# Game files start with "T3-image\015\012\032"
860 string T3-image\015\012\032
87>11 leshort x TADS 3 game data (format version %d)
88# Saved game files start with "T3-state-v####\015\012\032"
89# where #### is a format version number
900 string T3-state-v
91>14 string \015\012\032 TADS 3 saved game data (format version
92>>10 byte x %c
93>>11 byte x \b%c
94>>12 byte x \b%c
95>>13 byte x \b%c)
96
76# Danny Milosavljevic <danny.milo@gmx.net>
77# this are adrift (adventure game standard) game files, extension .taf
78# depending on version magic continues with 0x93453E6139FA (V 4.0)
79# 0x9445376139FA (V 3.90)
80# 0x9445366139FA (V 3.80)
81# this is from source (http://www.adrift.org.uk/) and I have some taf
82# files, and checked them.
83#0 belong 0x3C423FC9
84#>4 belong 0x6A87C2CF Adrift game file
85#!:mime application/x-adrift
97# Danny Milosavljevic <danny.milo@gmx.net>
98# this are adrift (adventure game standard) game files, extension .taf
99# depending on version magic continues with 0x93453E6139FA (V 4.0)
100# 0x9445376139FA (V 3.90)
101# 0x9445366139FA (V 3.80)
102# this is from source (http://www.adrift.org.uk/) and I have some taf
103# files, and checked them.
104#0 belong 0x3C423FC9
105#>4 belong 0x6A87C2CF Adrift game file
106#!:mime application/x-adrift