Jump to content

OBD:Oni2AS: Difference between revisions

No edit summary
Line 67: Line 67:
  inflate(&infstream, Z_NO_FLUSH);
  inflate(&infstream, Z_NO_FLUSH);
  inflateEnd(&infstream);
  inflateEnd(&infstream);
The important line, which defines the decompression rules, is '''inflateInit2(&infstream,-15)'''. For the meaning of the -15 value, and the detail of the algorithm, read the ZLIB docs.
The important line, which defines the decompression rules, is '''inflateInit2(&infstream,-15)'''. -15 means maximum compression and no header. For more details, c.f. the ZLIB documentation.


With proper decompression, the DAT files extract as follows: [http://geyser.oni2.net/BANKS.DAT.ZIP BANKS.DAT] [http://geyser.oni2.net/RB.DAT.ZIP RB.DAT] [http://geyser.oni2.net/STREAMS.DAT.ZIP STREAMS.DAT]
With proper decompression, the DAT files extract as follows: [http://geyser.oni2.net/BANKS.DAT.ZIP BANKS.DAT] [http://geyser.oni2.net/RB.DAT.ZIP RB.DAT] [http://geyser.oni2.net/STREAMS.DAT.ZIP STREAMS.DAT]