ZZT++ ===== By WeP Copyright 1998 published under GNU license wbovela@wxs.nl http://welcome.to/wep Nov-9-1998 Notes ===== This snippet of code is an unfinished part of ZZT++. Ultimately this code will be incorporated in ZZT++ for reading and writing files of the ZZT format. The executable reads the game information, the compressed screen information, further board information and stops at the first object. After that, execution generates a crash resulting in possible damage to your file system. At least Windows95/98 will be unstable after the crash. So be careful if you recompile and remove the "return 99;" statement. Note that this code will eventually end up in ZZT++. This is just a testing phase. If you have any weird crashes with this .exe, send me the .ZZT file and your output file to wbovela@wxs.nl. Oh, and don't forget to zip your stuff using winzip. Thanks to JacobH, creator of ZIG for the necessary file format information. Running ZZTFF ============= Simply unzip ZZTFF.EXE in any directory and place a .ZZT file in the same directory. Run ZZTFF using the following command line: ZZTFF [file[.ZZT] -] Supplying a file name is optional. If no filename is given, ZZTFF will open the file TOWN.ZZT. You may omit the .ZZT extension. ZZTFF will add it for you if no extension is found. Use a - sign after the filename to eliminate the compressed screen information from the output. You must supply a filename in order to use the - parameter. The command "ZZTFF -" will not work. Use the following command to analyse (part of) the file CWARS10.ZZT and catch the output in a file: ZZTFF CWARS10 > FILE.TXT You can open FILE.TXT using an editor like notepad to read ZZTFF's output. If you want to leave out the screen information use: ZZTFF CWARS10 - > FILE.TXT Known Issues ============ An object can have program text attached to it in ZZT. This program text may not be longer than 65535 bytes or ZZTFF will output undefined information or even hang or crash your system. So far I have seen no programs over 7000 bytes. WeP