]> granicus.if.org Git - file/commitdiff
new tads version
authorChristos Zoulas <christos@zoulas.com>
Fri, 31 Dec 2010 16:32:54 +0000 (16:32 +0000)
committerChristos Zoulas <christos@zoulas.com>
Fri, 31 Dec 2010 16:32:54 +0000 (16:32 +0000)
magic/Magdir/adventure

index bfdf29867dafc2da78531b76a6a1154d0ca5a608..6ee899006eb400cbd2e531d859a0345c7d4cab82 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: adventure,v 1.11 2010/06/29 12:42:32 christos Exp $
+# $File: adventure,v 1.12 2010/09/20 18:55:20 rrt Exp $
 # adventure: file(1) magic for Adventure game files
 #
 # from Allen Garvin <earendil@faeryland.tamu-commerce.edu>
 # For Quetzal and blorb magic see iff
 
 
-# TADS (Text Adventure Development System)
+# TADS (Text Adventure Development System) version 2
 #  All files are machine-independent (games compile to byte-code) and are tagged
-#  with a version string of the form "V2.<digit>.<digit>\0" (but TADS 3 is
-#  on the way).
+#  with a version string of the form "V2.<digit>.<digit>\0".
 #  Game files start with "TADS2 bin\n\r\032\0" then the compiler version.
 0      string  TADS2\ bin      TADS
 >9     belong  !0x0A0D1A00     game data, CORRUPTED
 >10    belong   0x0A0D1A00
 >>14   string  >\0             %s saved game data
 
+# TADS (Text Adventure Development System) version 3
+#  Game files start with "T3-image\015\012\032"
+0      string  T3-image\015\012\032
+>11    leshort x               TADS 3 game data (format version %d)
+#  Saved game files start with "T3-state-v####\015\012\032"
+#  where #### is a format version number
+0      string  T3-state-v
+>14    string  \015\012\032    TADS 3 saved game data (format version
+>>10   byte    x               %c
+>>11   byte    x               \b%c
+>>12   byte    x               \b%c
+>>13   byte    x               \b%c)
+
 # Danny Milosavljevic <danny.milo@gmx.net>
 # this are adrift (adventure game standard) game files, extension .taf
 # depending on version magic continues with 0x93453E6139FA (V 4.0)