Jump to content

Windows Oni vs. Mac Oni: Difference between revisions

→‎File formats: rewriting ssg's old write-up, removing technical details that are covered in more appropriate places
(→‎PC exclusives: actually, Macs do F2 and F3 after all)
(→‎File formats: rewriting ssg's old write-up, removing technical details that are covered in more appropriate places)
Line 57: Line 57:


===File formats===
===File formats===
'''Differences between Mac and PC files:'''
The most visible difference between the game data in Mac and Windows Oni is the presence of .sep files on the Mac. This and other changes were made either for general optimization or to meet some limitation on the Mac side. Due to the fact that [[History of Mac Oni|Mac Oni was finished after Windows Oni]] and the demos were finished after the code was finalized for both platforms, the changes for Mac Oni carried over to the Windows demo. To illustrate, here are the kinds of level data files that you'll find in the [[GameDataFolder]]:


'''files'''
{|class="wikitable" style="margin-left:auto; margin-right:auto;"
!Windows
!Mac and Windows demo
|-
|*.dat, *.raw
|<center>*.dat, *.raw, *.sep</center>
|}


PC: *.dat, *.raw
====.dat files====
These files are mostly identical between Mac (and Windows demo) and Windows, but Mac [[SNDD]] resources are 32 bytes long, whereas Windows and Windows demo [[SNDD]] resources (wrappers for the actual sound data in the .raw files) are 96 bytes long; this is because of the change in SNDD format noted below under ".raw files".


Mac and PC demo: *.dat, *.sep, *.raw
====.raw files====
In Windows, these files contain the core data of the [[AGDB]], [[AKVA]], [[BINA]], [[OSBD]], [[SNDD]], [[SUBT]], [[TRAM]] and [[TXMP]] resources.


'''dat file'''
On Mac and in the Windows demo, these files only contain the core data of the AKVA, SNDD, SUBT and TRAM resources; the rest have been moved to the .sep files (except for AGDB resources, which were omitted from Macs and the Windows demo because this data is unused by Oni).


PC: first 4 bytes are 1F 27 DC 33
In terms of differences in the actual data formats, the most notable change is that Macs use SNDDs in the AIFF format, and Windows (retail and demo) uses WAV sound data.


Mac and PC demo: first 4 bytes are 61 30 C1 23
====.sep files====
 
Windows retail Oni lacks these files, all the relevant data being in the .raw files. On Macs and in the Windows demo, .sep files contain the core data of the BINA, OSBD and TXMP resources. For TXMPs in particular, only the "wrapper" for the texture data is stored in a Mac's .raw file, with a link to the actual image data where it is found in the level's .sep file.
(Mac beta: first bytes are 81 11 8D 23)
 
*special: Mac [[OBD:SNDD|SNDD]] files are 32 bytes long, PC and PC demo [[OBD:SNDD|SNDD]] files are 96 bytes long
 
'''sep file'''
 
PC: no sep files
 
Mac and PC demo: contains the offset data of the [[OBD:BINA|BINA]], [[OBD:OSBD|OSBD]] and [[OBD:TXMP|TXMP]] files
 
*special: sep-file link in the TXMP file
 
'''raw file'''
 
PC: contains the offset data of the [[OBD:AGDB|AGDB]], [[OBD:AKVA|AKVA]], [[OBD:BINA|BINA]], [[OBD:OSBD|OSBD]], [[OBD:SNDD|SNDD]], [[OBD:SUBT|SUBT]], [[OBD:TRAM|TRAM]] and [[OBD:TXMP|TXMP]] file
 
Mac and PC demo: contains the offset data of the [[OBD:AKVA|AKVA]], [[OBD:SNDD|SNDD]], [[OBD:SUBT|SUBT]] and [[OBD:TRAM|TRAM]] files
 
*special 1: Mac and PC demo haven't [[OBD:AGDB|AGDB]] files
 
*special 2: Mac uses AIFF sounds, PC and PC demo uses WAV sounds


[[Category:Modding information]]
[[Category:Modding information]]