The Sims Online DAT: Difference between revisions
Jump to navigation
Jump to search
imported>Ikskoks No edit summary |
imported>Ikskoks No edit summary |
(No difference)
| |
Latest revision as of 21:35, 21 January 2021
DAT (Type FAR!BYAZ)
- Format Type : Archive
- Endian Order : Little Endian
Format Specifications
char {8} - Header (FAR!byAZ)
uint32 {4} - Version (3)
uint32 {4} - dirOffset
byte {X} - File Data
// Directory
- uint32 {4} - Number Of Files
- // for each file
- uint32 {4} - Original File Size
- uint16 {2} - Compressed Specifics (see Notes)
- byte {1} - Power Value (see Notes)
- byte {1} - Unknown (0 or 128)
- uint32 {4} - Offset
- uint16 {2} - Unknown (1)
- uint16 {2} - Filename Length
- uint32 {4} - Type ID (see Notes)
- uint32 {4} - File ID
- char {X} - Filename
- uint32 {4} - Original File Size
MultiEx BMS Script
Not written yet
Notes and Comments
- The compression is the same as that used in the Simcity 4 *.dat archives
- TO CALCULATE THE FILE SIZES
* If the powerValue=0, the file size is the value of compressedSpecifics
* If the compressedSpecifics is negative, do (((powerValue+1)*65536) + compressedSpecifics)
* If the compressedSpecifics is positive, do ((powerValue * 65536) + compressedSpecifics)
if (compressedSpecifics < 0){
fileSize = (65536 * (powerValue_l + 1)) + compressedSpecifics;
}
else {
if (powerValue_l > 0){
fileSize = (65536 * powerValue_l) + compressedSpecifics;
}
else {
fileSize = compressedSpecifics;
}
}
- THE TYPE ID NUMBERS
1 - BMP image - (compressed)
2 - TGA image - (compressed)
5 - SKEL skeleton - (compressed)
7 - ANIM animation - (compressed)
9 - MESH model - (compressed)
11 - BND binding - (uncompressed)
12 - APR appearance - (uncompressed)
13 - OTF outfit - (uncompressed)
14 - PNG image - (uncompressed)
15 - PO purchasable object (uncompressed)
16 - COL collection - (compressed)
18 - HAG group - (compressed)
19 - JPEG image - (compressed)
20 - JPEG image - (uncompressed)