falcon4:file_formats:cam_trn_tac:cmp_file
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| falcon4:file_formats:cam_trn_tac:cmp_file [2009/02/14 20:30] – lightning | falcon4:file_formats:cam_trn_tac:cmp_file [2024/07/31 08:35] (current) – links added. snakeman | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== .CMP file ====== | + | ====== |
| + | |||
| + | [[https:// | ||
| The .CMP file is one of the files embedded within a .CAM/ | The .CMP file is one of the files embedded within a .CAM/ | ||
| 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 7: | Line 10: | ||
| ==== Raw format (compressed contents) ==== | ==== Raw format (compressed contents) ==== | ||
| ^Field^Data Type^Width (in bytes)^Description^ | ^Field^Data Type^Width (in bytes)^Description^ | ||
| - | |CompressedSize |DWORD|4|Size, in bytes, of the compressed file to follow (includes 4 bytes for the " | + | |CompressedSize |signed 32-bit integer|4|Size, in bytes, of the compressed file to follow (includes 4 bytes for the " |
| - | |UncompressedSize|DWORD|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: |
| ==== Uncompressed contents of the DATA field ==== | ==== Uncompressed contents of the DATA field ==== | ||
| Line 48: | Line 51: | ||
| |BullseyeX|Signed 16-bit integer|2| |All| | |BullseyeX|Signed 16-bit integer|2| |All| | ||
| |BullseyeY|Signed 16-bit integer|2| |All| | |BullseyeY|Signed 16-bit integer|2| |All| | ||
| - | |TheaterName|TCHAR[40]|40| |All| | + | |TheaterName|_TCHAR[40]|40| |All| |
| - | |Scenario|TCHAR[40]|40| |All| | + | |Scenario|_TCHAR[40]|40| |All| |
| - | |SaveFile|TCHAR[40]|40| |All| | + | |SaveFile|_TCHAR[40]|40| |All| |
| - | |UIName|TCHAR[40]|40| |All| | + | |UIName|_TCHAR[40]|40| |All| |
| |PlayerSquadronID|VU_ID|8| |All| | |PlayerSquadronID|VU_ID|8| |All| | ||
| |NumRecentEventEntries|Signed 16-bit integer|2| |All| | |NumRecentEventEntries|Signed 16-bit integer|2| |All| | ||
| Line 58: | Line 61: | ||
| |PriorityEventEntries[]|EventNode[NumPriorityEventEntries]|sizeof(EventNode)*NumPriorityEventEntries| |All| | |PriorityEventEntries[]|EventNode[NumPriorityEventEntries]|sizeof(EventNode)*NumPriorityEventEntries| |All| | ||
| |CampMapSize|Signed 16-bit integer|2| |All| | |CampMapSize|Signed 16-bit integer|2| |All| | ||
| - | |CampMap[]|byte[CampMapSize]|CampMapSize| |All| | + | |CampMap[]|byte[CampMapSize]|(CampMapSize) bytes| |All| |
| |LastIndexNum|Signed 16-bit integer|2| |All| | |LastIndexNum|Signed 16-bit integer|2| |All| | ||
| |NumAvailableSquadrons|Signed 16-bit integer|2| |All| | |NumAvailableSquadrons|Signed 16-bit integer|2| |All| | ||
| Line 73: | Line 76: | ||
| |teamFlag|byte|1| | | |teamFlag|byte|1| | | ||
| |teamColor|byte|1| | | |teamColor|byte|1| | | ||
| - | |teamName|T_CHAR[20]|20| | | + | |teamName|_TCHAR[20]|20| | |
| - | |teamMotto|T_CHAR[200]|200| | | + | |teamMotto|_TCHAR[200]|200| | |
| ==== VU_ID structure==== | ==== VU_ID structure==== | ||
| 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| |<42| | + | |airbaseNameExt|_TCHAR[40]|40|additional 40 characters of airbaseName (only supported in earlier versions) |
| - | |padding|byte|1| |All|needed for the structure' | + | |padding|byte|1|needed for the structure' |
| ==== EventNode structure==== | ==== EventNode structure==== | ||
| Line 104: | Line 107: | ||
| |flags|byte|1| | | |flags|byte|1| | | ||
| |Team|byte|1| | | |Team|byte|1| | | ||
| - | |padding|byte|2| |needed for the structure' | + | |padding|byte|2|needed for the structure' |
| - | |EventText|Int32 pointer|4| | + | |EventText|Int32 pointer|4|as a pointer, this field is only useful in-memory |
| - | |UiEventNode|Int32 pointer|4| | + | |UiEventNode|Int32 pointer|4|as a pointer, this field is only useful in-memory |
| |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.1234643424.txt.gz · Last modified: 2009/02/14 20:30 by lightning
