This is the specifications for the archive file which is handled by the Game Extractor plugin Archive_DAT_FAR.

Endian Order:Little Endian
Compression:DBPF
Encryption:None


This format is used by the following Games:
The Sims Online *.dat


This is the format specification information:
 
8 - Header (FAR!byAZ)
4 - Version (3)
4 - dirOffset
X - File Data
X - Directory

// go to dirOffset
  4 - Number Of Files

  // for each file
    4 - Original File Size
    2 - Compressed Specifics (see below)
    1 - Power Value (see below)
    1 - Unknown (0 or 128)
    4 - Offset
    2 - Unknown (1)
    2 - Filename Length
    4 - Type ID (see below)
    4 - File ID
    X - Filename


These are the accompanying notes and further information:
 
// TO CALCULATE 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)


Game Extractor is able to read files of this type, as well as files from thousands of other games. To give it a try, download Game Extractor (Basic Version) for free, and see what it can do.

For further information on this format, refer to the source code on our GitHub repository.