Destiny3D Plugin File Spec v0.0.0.1

This file is the intellectual property of Novus Delta, LLC.. Usage of the
contents of this file is subject to the Destiny3D Member License which
can be found at http://www.destiny3d.com.  Any other usage is prohibited.

This file is distributed "AS IS" without warranty of any kind.  Novus
Delta, LLC. does not guarantee the fitness of the contents of this file
for any particular purpose.

Copyright (C) 2001-2003 Novus Delta, LLC. All Rights Reserved



This file is to help document the format to the Destiny3D Plugin Files. All offsets are relative to the block's start position in the file unless stated otherwise. All values are in hex unless stated otherwise also. Sizes are in bytes

At the beginning of the file is a 16 byte header.


Virtual FS Header
-----------------

Entry | Offset | Size | Type  | Description
-----------------------------------
    1 |     00 |    4 | DWORD | Plugin File ID, should read 'DPLF', Destiny3D Plugin File
    2 |     04 |    4 | DWORD | Plugin File Version. The version of the PLF. Current is 00000001 (00.00.00.01, done in hex)
    3 |     08 |    4 | long  | Offset to the data entries from beginning of file
    4 |     0C |    4 | long  | Number of bytes the last block has of unmodified data
    5 |     10 |    2 | short | Number of data entries


Between the end of the header and the offset pointed to by the 3rd entry is the data for the file itself. Moving to the file position specified by the 3rd entry in the header, the following structure is found.


File Data Entry
---------------

Entry | Offset | Size | Type  | Description
---------------------------------------------
    1 |     00 |    4 | long  | Specified the position of the file block itself
    2 |     04 |    4 | long  | The size of the actual data block


Each data block stores 1MB (1,073,741,824 bytes) of unmodified, original data. This allows for a quick
look-up of what block is needed by checking which megabyte of data it falls into.