User Tools

Site Tools


falcon4:file_formats:cam_trn_tac:obj_file

Differences

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

Link to this comparison view

Next revision
Previous revision
falcon4:file_formats:cam_trn_tac:obj_file [2009-02-14 22:01]
lightning created
falcon4:file_formats:cam_trn_tac:obj_file [2009-02-15 19:48] (current)
lightning
Line 1: Line 1:
 ====== .OBJ file ====== ====== .OBJ file ======
-The OBJ file holds all the objectives in a mission. Objectives are basically static things, like towns, cities, bridges, bases. Things which cannot be moved. ​+The OBJ file holds all the objectives in a mission. Objectives are basically static things, like towns, cities, bridges, bases. Things which cannot be moved. ​\\
  
-Objectives are usually composed of features. Each feature being a particular part of the overall objective. So an airbase objective may have runway, hangar and control tower as features. ​+Objectives are usually composed of features. Each feature being a particular part of the overall objective. So an airbase objective may have runway, hangar and control tower as features. ​\\
  
-Objectives also have a fixed position on the map governed by their X, Y coordinates. They may also have: +Objectives also have a fixed position on the map governed by their X, Y coordinates. They may also have: \\
  
-a parent - an objective that they are a child of, used in the naming sometimes.  +a parent - an objective that they are a child of, used in the naming sometimes. ​\\ 
-a name - an index into the strings file used to name the objective. 0 indicates the objective has no name of its own.  +a name - an index into the strings file used to name the objective. 0 indicates the objective has no name of its own. \\ 
-a campaign ID - ID2 - used to related things.  +a campaign ID - ID2 - used to related things. ​\\ 
-an owner - which side owns this objective.  +an owner - which side owns this objective. ​\\ 
-a controller - which side actually controls the objective.  +a controller - which side actually controls the objective. ​\\ 
-a type - an index into the OCD file showing which objective type this is.  +a type - an index into the OCD file showing which objective type this is. \\ 
-Various flags associated with the objective  +Various flags associated with the objective ​\\ 
-Details of each feature composing the objective, detailing how damaged it is.  +Details of each feature composing the objective, detailing how damaged it is. \\ 
-A list of links to other objectives - this gives routes to other places. ​+A list of links to other objectives - this gives routes to other places. ​\\
  
 ===== .OBJ File Format ===== ===== .OBJ File Format =====
Line 20: Line 20:
 ==== Raw (compressed contents) ==== ==== Raw (compressed contents) ====
 ^Field^Data Type^Width (in bytes)^Description^ ^Field^Data Type^Width (in bytes)^Description^
-|NumObjectives |Signed ​32-bit integer|4|Number of objective records in the data that follows|+|NumObjectives |Signed ​16-bit integer|2|Number of objective records in the data that follows|
 |UncompressedSize|Signed 32-bit integer|4|Size,​ in bytes, of the data that follows, when it's uncompressed| |UncompressedSize|Signed 32-bit integer|4|Size,​ in bytes, of the data that follows, when it's uncompressed|
 |CompressedSize |Signed 32-bit integer|4|Size,​ in bytes, of the compressed file to follow| |CompressedSize |Signed 32-bit integer|4|Size,​ in bytes, of the compressed file to follow|
-|DATA|byte[]|(CompressedSize)|LZSS-compressed binary data.|+|DATA|byte[]|(CompressedSize)|[[falcon4:​file_formats:​cam_trn_tac:​lzss_compression|LZSS-compressed]] binary data.|
  
 ==== Uncompressed contents of the DATA field ==== ==== Uncompressed contents of the DATA field ====
falcon4/file_formats/cam_trn_tac/obj_file.1234648917.txt.gz · Last modified: 2009-02-14 22:01 (external edit)