====== Falcon 4 .OBD 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 OBD file holds changes to the objectives. The main objectives are read from the parent campaing file, and in this subfile the changes to the base record are recorded. It also holds the current damage state of the features. ===== .OBD File Format ===== ==== Raw (compressed contents) ==== ^Field^Data Type^Width (in bytes)^Description^ |CompressedSize |Signed 32-bit integer|4|Size, in bytes, of the compressed data to follow (includes space for the NumObjectiveDeltas and UncompressedSize fields)| |NumObjectiveDeltas |Signed 16-bit integer|2|Number of objective delta records in the data that follows| |UncompressedSize|Signed 32-bit integer|4|Size, in bytes, of the data that follows, when it's uncompressed| |DATA|byte[]|(CompressedSize-6) bytes|[[falcon4:file_formats:cam_trn_tac:lzss_compression|LZSS-compressed]] binary data.| ==== Uncompressed contents of the DATA field ==== ^Field^Data Type^Width (in bytes)^Description^Versions^ |objectiveDeltaRecords[]|ObjectiveDeltaRecord[NumObjectiveDeltas]| | |All| ===== Structures Used ===== ==== ObjectiveDeltaRecord structure ==== ^Field^Data Type^Width (in bytes)^Description^Versions^ |id|VU_ID|8| |All| |last_repair|unsigned 32-bit integer|4| |All| |owner|byte|1| |All| |supply|byte|1| |All| |fuel|byte|1| |All| |losses|byte|1| |All| |numFstatus|byte|1| |All| |fStatus[]|byte[numFstatus]|(numFstatus) bytes| |> = 64| |fStatus[]|byte[1]|1| |< 64| ==== VU_ID structure ==== ^Field^Data Type^Width (in bytes)^Description^ |num_|unsigned 32-bit integer|4| | |creator_|unsigned 32-bit integer|4| |