====== .OBD file ====== 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| |