PMC websites shut down September 13th 2025 unless yearly web hosting fees are paid. Please Support PMC to help keep these websites online.

Enjoyed or found this pages content useful, please Support PMC to help me keep this web page online beyond september 13th 2025 when yearly web hosting fees are due.

User Tools

Site Tools


falcon4:file_formats:cam_trn_tac:cmp_file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
falcon4:file_formats:cam_trn_tac:cmp_file [2009/02/14 20:41] lightningfalcon4:file_formats:cam_trn_tac:cmp_file [2024/07/31 08:35] (current) – links added. snakeman
Line 1: Line 1:
-====== .CMP file ======+====== Falcon 4 .CMP file ====== 
 + 
 +[[https://www.pmctactical.org/forum/viewforum.php?f=47|Falcon 4.0 Forum]], [[:falcon4|Falcon 4 Home]], [[falcon4:campaign|Falcon 4 Campaign]], [[falcon4:cockpits|Falcon 4 Cockpits]], [[falcon4:database|Falcon 4 Database]], [[falcon4:file_formats|Falcon 4 File Formats]], [[falcon4:srtm|Falcon 4 SRTM Terrain]], [[falcon4:terrain|Falcon 4 Terrain]], [[falcon4:textures|Falcon 4 Textures]], [[falcon4:tools|Falcon 4 Tools]] 
 The .CMP file is one of the files embedded within a .CAM/.TRN/.TAC file.  The CMP file has most of the basic data for the campaign. It is loaded by the campaign engine to show an overview of the file you have selected,  The .CMP file is one of the files embedded within a .CAM/.TRN/.TAC file.  The CMP file has most of the basic data for the campaign. It is loaded by the campaign engine to show an overview of the file you have selected, 
 so contains some information that is more correctly found in other files, but also copied into this file for convenience.  so contains some information that is more correctly found in other files, but also copied into this file for convenience. 
Line 9: Line 12:
 |CompressedSize |signed 32-bit integer|4|Size, in bytes, of the compressed file to follow (includes 4 bytes for the "Uncompressed Size" field at the start of the data)| |CompressedSize |signed 32-bit integer|4|Size, in bytes, of the compressed file to follow (includes 4 bytes for the "Uncompressed Size" field at the start of the data)|
 |UncompressedSize|signed 32-bit integer|4|Size, in bytes, of the content that follows, when it's uncompressed| |UncompressedSize|signed 32-bit integer|4|Size, in bytes, of the content that follows, when it's uncompressed|
-|DATA|byte[]|(CompressedSize-4)|LZSS-compressed binary data.|+|DATA|byte[]|(CompressedSize-4)|[[falcon4:file_formats:cam_trn_tac:lzss_compression|LZSS-compressed]] binary data.|
  
 ==== Uncompressed contents of the DATA field ==== ==== Uncompressed contents of the DATA field ====
Line 93: Line 96:
 |currentStrength|byte|1| |All| |currentStrength|byte|1| |All|
 |country|byte|1| |All| |country|byte|1| |All|
-|airbaseName|TCHAR[40]|40| |All| +|airbaseName|_TCHAR[40]|40| |All| 
-|airbaseNameExt|TCHAR[40]|40|additional 40 characters of airbaseName (only supported in earlier versions) |<42|+|airbaseNameExt|_TCHAR[40]|40|additional 40 characters of airbaseName (only supported in earlier versions) |<42|
 |padding|byte|1|needed for the structure's fields to align on an Int32 boundary|All| |padding|byte|1|needed for the structure's fields to align on an Int32 boundary|All|
  
Line 108: Line 111:
 |UiEventNode|Int32 pointer|4|as a pointer, this field is only useful in-memory and is meaningless when restored from disk | |UiEventNode|Int32 pointer|4|as a pointer, this field is only useful in-memory and is meaningless when restored from disk |
 |eventTextSize|unsigned 16-bit integer|2| | |eventTextSize|unsigned 16-bit integer|2| |
-|eventText|TCHAR[eventTextSize]|eventTextSize| |+|eventText|_TCHAR[eventTextSize]|eventTextSize| |
  
falcon4/file_formats/cam_trn_tac/cmp_file.1234644075.txt.gz · Last modified: 2009/02/14 20:41 (external edit)