19,654
edits
(rewrote Mac vs. Windows section; moved sections around for more logical order) |
m (unified Hatnotes (gets rid of awkward space between lines)) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{OBD Home}} | {{OBD Home}} | ||
{{Hatnote|You should read the [[dat|Instance file format]] page before this one.<br> | |||
:You can read about the [[OBD:File types|specific types of resources]] in the binary data files after this page.}} | |||
In Windows retail Oni, raw files (ending in ".raw") contain chunks of data which are indexed by instance files and loaded on demand. In Mac Oni and the Windows demo, separate files (ending in ".sep") contain some of the data formerly contained by raw files (see "Mac vs. Windows" below for details). Thus, data offsets given in instance files' instance descriptors may apply to a raw file in Windows and a separate file on Macs. | In Windows retail Oni, raw files (ending in ".raw") contain chunks of data which are indexed by instance files and loaded on demand. In Mac Oni and the Windows demo, separate files (ending in ".sep") contain some of the data formerly contained by raw files (see "Mac vs. Windows" below for details). Thus, data offsets given in instance files' instance descriptors may apply to a raw file in Windows and a separate file on Macs. | ||
Line 10: | Line 11: | ||
==Gaps== | ==Gaps== | ||
The | The raw data is not packed as a compact sequence of 32-byte-aligned chunks. There are gaps of various sizes in every level, totalling 25 megabytes for the whole game. Those gaps seem to be the same across all versions, even if other content differs. The content of those gaps is detailed below. | ||
===Skybox mipmaps=== | ===Skybox mipmaps=== | ||
Zero-filled gaps occur in every level after each of the 5 skybox textures. Their size matches that required to store [[wikipedia:Mipmap|mipmaps]] of the preceding texture. | |||
===Orphaned chunks=== | ===Orphaned chunks=== | ||
Line 19: | Line 20: | ||
====OSBD==== | ====OSBD==== | ||
A few of those in level 0. | A few of those in level 0. Re-authored duplicates of existing OSAm/OSGr pairs: for every pair, there are (minor) changes either in the OSAm or in the OSGr. | ||
====SNDD==== | ====SNDD==== | ||
Line 26: | Line 27: | ||
==Differences across versions== | ==Differences across versions== | ||
===Language versions=== | ===Language versions=== | ||
Most localized (non-English) versions of Oni have new speech dubbed in. This will result in large differences in the SNDD | Most localized (non-English) versions of Oni have new speech dubbed in. This will result in large differences in the SNDD and SUBT files. | ||
===Extra level 0 textures=== | ===Extra level 0 textures=== | ||
Line 32: | Line 33: | ||
===Texture compression=== | ===Texture compression=== | ||
Textures | Textures can be stored with compression, and the amount of textures which are compressed in a given version ranges from "most" to "almost none". This leads to dramatic variations in size for the .raw (over 10% of the total amount of game content). | ||
===Mac vs. Windows=== | ===Mac vs. Windows=== | ||
====Storage==== | ====Storage==== | ||
The following table illustrates how some data was moved from raw files to separate files after the Windows version was finalized. See [[History of Mac Oni]] for the reason why the Windows demo uses separate files like Mac Oni does. | The following table illustrates how some data was moved from raw files to separate files after the Windows version was finalized and before the Mac version was finalized. See [[History of Mac Oni]] for the reason why the Windows demo uses separate files like Mac Oni does. | ||
{|class="wikitable" style="margin-left:auto; margin-right:auto;" | {|class="wikitable" style="margin-left:auto; margin-right:auto;" | ||
Line 45: | Line 46: | ||
|'''.raw''' | |'''.raw''' | ||
|<center>[[AGDB]], [[AKVA]], [[BINA]], [[OSBD]],<br />[[SNDD]], [[SUBT]], [[TRAM]], [[TXMP]]</center> | |<center>[[AGDB]], [[AKVA]], [[BINA]], [[OSBD]],<br />[[SNDD]], [[SUBT]], [[TRAM]], [[TXMP]]</center> | ||
|<center>AKVA, SNDD, SUBT, TRAM | |<center>AKVA, SNDD, SUBT, TRAM</center> | ||
|- | |- | ||
|'''.sep''' | |'''.sep''' | ||
|style="background:black;color:white"| | |style="background:black;color:white"| | ||
|<center>BINA, OSBD, TXMP | |<center>BINA, OSBD, TXMP</center> | ||
|} | |} | ||