|
CC2 maps are stored on disk in a binary format with an FCW file extension. Each individual file consists of a header followed by a copy of the database of entities that make up the map. With this knowledge in hand, the best place to find out about the file format is the XP toolkit. The XP toolkit. The toolkit is filled with many different files for both assembly language programmers and for C programmers. Since the C files are not complete, we'll look at the assembly language files. The CPY files are the assembly files. Inside the CPY files we find the blueprints for the FCW file. But, just like real blueprints, it takes some special knowledge to understand them. Looking at the HEADER.CPY file we see what comprises the file header: |
; ===============================================================; HEADER.CPY - Header and File ID data structures; ===============================================================; Copyright 1996 Evolution Computing; All rights reserved; Written by Susan Montooth 2/15/96; ===============================================================; FILE ID (File identifier bytes); ===============================================================DBVERSION equ 24 ;correct current databaseFileID strucProgID SBYTE 'FCW (FastCAD for Windows) 'VerText SBYTE versionStr ;version # as text (4 bytes)VerTextS SBYTE SubVer ;beta versionSBYTE ' 'SBYTE 13,10,26 ;terminating chars for DOS Type cmd.DBVer SBYTE DBVERSIONCompressed SBYTE 0 ;1 = compressed fileSBYTE 78 dup (0) ;fillerSBYTE 0FFh ;end marker (total 128 bytes)FileID ends