Both sides previous revisionPrevious revisionNext revision | Previous revision |
falcon4:file_formats:cam_trn_tac [2009/02/15 22:24] – lightning | falcon4:file_formats:cam_trn_tac [2024/07/31 08:34] (current) – links added. snakeman |
---|
====== .CAM/.TRN/.TAC File Overview ====== | ====== Falcon 4 .CAM/.TRN/.TAC File Overview ====== |
| |
| [[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]] |
| |
| **Falcon 4 File Formats .CAM, .TRN and .TAC** |
| |
===== .CAM Files ===== | ===== .CAM Files ===== |
Campaign files end in the suffix .CAM and often have associated other files, such as: | Campaign files end in the suffix .CAM and often have associated other files, such as: |
| |
Trigger files, to trigger events (.TRI) | Trigger files, to trigger events (.TRI) \\ |
Force Ratio files (.FRC) | Force Ratio files (.FRC) \\ |
History files (.HIS) | History files (.HIS) \\ |
| |
===== .TAC Files ===== | ===== .TAC Files ===== |
Training files are similar in structure to campaign and TE files. Generally they have preplanned missions already edited, and do not generate debriefing screens. | Training files are similar in structure to campaign and TE files. Generally they have preplanned missions already edited, and do not generate debriefing screens. |
| |
| ===== Basic Structure ===== |
| |
The various files in Falcon that end with .CAM, .TRN, and .TAC extensions are just container files for storing various other campaign files (kind of like a .ZIP file). | The various files in Falcon that end with .CAM, .TRN, and .TAC extensions are just container files for storing various other campaign files (kind of like a .ZIP file). |
.CAM, .TRN, and .TAC files come with an embedded "directory" of their contents, typically located at the end of the file, although there is no requirement that the directory must come at the end. The only requirement is that the header must point to the beginning of the directory information, and the directory information must conform to the directory layout standard. | .CAM, .TRN, and .TAC files come with an embedded "directory" of their contents, typically located at the end of the file, although there is no requirement that the directory must come at the end. The only requirement is that the header must point to the beginning of the directory information, and the directory information must conform to the directory layout standard. |
| |
To read a .CAM/.TRN/.TAC file properly, you first need to read the embedded directory, and then using the information from the directory, you can extract any or all of the embedded files. | To read a .CAM/.TRN/.TAC file properly, you first need to read the embedded directory, and then using the information from the directory, you can extract any or all of the embedded files. Note that Some of the files embedded in a .CAM/.TRN/.TAC file have their contents compressed using [[falcon4:file_formats:cam_trn_tac:lzss_compression|LZSS compression]]. Other files are uncompressed binaries, and yet others are uncompressed plain text files. |
| |
Some of the files embedded in a .CAM/.TRN/.TAC file have their contents compressed using [[falcon4:file_formats:cam_trn_tac:lzss_compression|LZSS compression]]). Other files are uncompressed binaries, and yet others are uncompressed plain text files. | |
| |
===== HEADER SECTION ===== | ===== HEADER SECTION ===== |
| |
===== Typical directory contents ===== | ===== Typical directory contents ===== |
A.CAM/.TRN/.TAC file typically contains several of the following types of embedded files. | A.CAM/.TRN/.TAC file typically contains several of the following types of embedded files. Clicking any of the files listed below will take you to a Wiki article that describes that file's content and file-format structure. |
| |
[[falcon4:file_formats:cam_trn_tac:cmp_file|.CMP file (basic campaign information)]] \\ | [[falcon4:file_formats:cam_trn_tac:cmp_file|.CMP file (basic campaign information)]] \\ |
[[falcon4:file_formats:cam_trn_tac:wth_file|.WTH file (weather)]]\\ | [[falcon4:file_formats:cam_trn_tac:wth_file|.WTH file (weather)]]\\ |
[[falcon4:file_formats:cam_trn_tac:ver_file|.VER file (version information)]]\\ | [[falcon4:file_formats:cam_trn_tac:ver_file|.VER file (version information)]]\\ |
.TE file (Tactical engagement victory conditions)\\ | [[falcon4:file_formats:cam_trn_tac:te_file|.TE file (Victory conditions)]]\\ |
| |
| |