falcon4:file_formats:cam_trn_tac:obd_file
Table of Contents
Falcon 4 .OBD file
Falcon 4.0 Forum, Falcon 4 Home, Falcon 4 Campaign, Falcon 4 Cockpits, Falcon 4 Database, Falcon 4 File Formats, Falcon 4 SRTM Terrain, Falcon 4 Terrain, Falcon 4 Textures, 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 | 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 |
falcon4/file_formats/cam_trn_tac/obd_file.txt · Last modified: 2024/07/31 08:39 by snakeman