Jump to content

Oni (folder)/GameDataFolder: Difference between revisions

moved one note to IGMD; added notes on the movies and on the level numbering gaps; removed all that unnecessary bold, what an eyesore
mNo edit summary
 
(moved one note to IGMD; added notes on the movies and on the level numbering gaps; removed all that unnecessary bold, what an eyesore)
 
(42 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==GameDataFolder==
'''GameDataFolder''' (commonly called "GDF") is a subfolder of the main Oni folder. It holds the following:
(Default location on PC is '''C:\Program Files\Oni\GameDataFolder''')
*Oni's game data, in binary format (see [[OBD]] for more info)
*the level logic, in plain-text (in the IGMD subfolder; see [[BSL]] for more info)
*the intro and outro animated sequences, in the Bink video format


This is where all of Oni's "game data" resources are stored. The contents is normally read-only and won't change between two Oni sessions.
First we show the purpose of each file in this folder – but don't miss our helpful notes below this directory listing.
===Movie files in BINK format===
 
*'''intro.bik'''
==Directory listing==
*'''outro.bik'''
You should have all the files below in your GameDataFolder, though the movie files are optional (see note at bottom). The "PS2" column shows the numbers assigned to each file name on disc; the .raw and .sep file for each level are in subdirectories titled 20/ and 21/. Beside each set of level files, we list the subfolders of IGMD which hold the corresponding level logic. '''SPOILER WARNING''': The "Chapter" column links to summaries and analyses of Oni's storyline.
===Binary resources===
 
(This is for PC, Mac users please contribute)
{| class="wikitable" style="margin-left:auto; margin-right:auto;"
*'''level0_Final.dat''' and '''level0_Final.raw''' - global binary resources
|-
*'''level1_Final.dat''' and '''level1_Final.raw''' - binary resources for Chapters 0:COMBAT TRAINING and 1:TRIAL RUN
|colspan="3" align="center"|'''File name'''
*'''level2_Final.dat''' and '''level2_Final.raw''' - binary resources for Chapter 2:ENGINES OF EVIL
|rowspan="2" align="center"|'''Level logic folder'''
*'''level3_Final.dat''' and '''level3_Final.raw''' - binary resources for Chapter 3:PUZZLE PIECES
|rowspan="2" align="center"|'''[[Chapters|Chapter]]'''
*'''level4_Final.dat''' and '''level4_Final.raw''' - binary resources for Chapter 4:TIGER BY THE TAIL
|rowspan="2" align="center"|'''Location (seen in Load Game dialog)'''
*'''level6_Final.dat''' and '''level6_Final.raw''' - binary resources for Chapter 5:HOT PURSUIT
|-
*'''level8_Final.dat''' and '''level8_Final.raw''' - binary resources for Chapter 6:COUNTERATTACK
|align="center"|'''Windows'''
*'''level9_Final.dat''' and '''level9_Final.raw''' - binary resources for Chapter 7:A FRIEND IN NEED
|align="center"|'''Mac'''
*'''level10_Final.dat''' and '''level10_Final.raw''' - binary resources for Chapter 8:AN INNOCENT LIFE
|align="center"|'''PS2'''
*'''level11_Final.dat''' and '''level11_Final.raw''' - binary resources for Chapter 9:TRUTH AND CONSEQUENCES
|-
*'''level12_Final.dat''' and '''level12_Final.raw''' - binary resources for Chapter 10:CAT AND MOUSE
|colspan="2"|<center>[[IGMD|IGMD/]]</center>
*'''level13_Final.dat''' and '''level13_Final.raw''' - binary resources for Chapter 11:DREAM DIVER
|valign=top|1
*'''level14_Final.dat''' and '''level14_Final.raw''' - binary resources for Chapter 12:SINS OF THE FATHER
| <center>--</center>
*'''level18_Final.dat''' and '''level18_Final.raw''' - binary resources for Chapter 13:PHOENIX RISING
|colspan=2 align=center|Contains all level logic
*'''level19_Final.dat''' and '''level19_Final.raw''' - binary resources for Chapter 14:DAWN OF THE CHRYSALIS
|-
===Script folder===
|colspan="2"|<center>[[:Category:Intro sequence|intro.bik]]</center>
A subfolder of '''GameDataFolder''' called '''IGMD'''.
|valign=top|2
The original contents is as follows :
| <center>--</center>
====IGMD\EnvWarehouse====
|colspan=2 align=center|Movie plays when Oni is launched
Level logic for Chapters 0:COMBAT TRAINING and 1:TRIAL RUN
|-
*warehouse_anim_scripts.bsl
|valign=top|level0_Final.dat<br>level0_Final.raw
*warehouse_cutscene.bsl
|level0_Final.dat<br>level0_Final.raw<br>level0_Final.sep
*warehouse_level_scripts.bsl
|3<br>20/1<br>21/1
*warehouse_main.bsl
|[[IGMD/global]]
*warehouse_particles.bsl
|colspan=2 align=center|Used in all Chapters (see notes below on "level0_Final" and "IGMD/global")
*warehouse_train2.bsl
|-
*warehouse_training_scripts.bsl
|valign=top|level1_Final.dat<br>level1_Final.raw
====IGMD\manplant====
|level1_Final.dat<br>level1_Final.raw<br>level1_Final.sep
Level logic for Chapter 2:ENGINES OF EVIL
|11<br>20/9<br>21/9
*manplant_anim_scripts.bsl
|[[IGMD/EnvWarehouse]]
*manplant_cutscene.bsl
|{{C|0|0: COMBAT TRAINING}}<br>{{C|1|1: TRIAL RUN}}
*manplant_level_logic.bsl
|TCTF Training<br>Syndicate Warehouse
*manplant_main.bsl
|-
*particle_scripts.bsl
|valign=top|level2_Final.dat<br>level2_Final.raw
====IGMD\lab====
|level2_Final.dat<br>level2_Final.raw<br>level2_Final.sep
Level logic for Chapter 3:PUZZLE PIECES
|12<br>20/10<br>21/10
*lab_cutscene.bsl
|[[IGMD/manplant]]
*lab_level_logic.bsl
|{{C|2|2: ENGINES OF EVIL}}
*lab_main.bsl
|Manufacturing Plant
*particle_scripts.bsl
|-
====IGMD\Airport====
|valign=top|level3_Final.dat<br>level3_Final.raw
Level logic for Chapter 4:TIGER BY THE TAIL
|level3_Final.dat<br>level3_Final.raw<br>level3_Final.sep
*airport_cutscene.bsl
|13<br>20/11<br>21/11
*airport_main.bsl
|[[IGMD/lab]]
*airport1_level_logic.bsl
|{{C|3|3: PUZZLE PIECES}}
====IGMD\Airport_III====
|Bio-Research Lab
Level logic for Chapter 5:HOT PURSUIT
|-
*airport2_cutscene.bsl
|valign=top|level4_Final.dat<br>level4_Final.raw
*airport2_level_logic.bsl
|level4_Final.dat<br>level4_Final.raw<br>level4_Final.sep
*airport2_main.bsl
|14<br>20/12<br>21/12
====IGMD\tctf====
|[[IGMD/Airport]]
Level logic for Chapter 6:COUNTERATTACK
|{{C|4|4: TIGER BY THE TAIL}}
*particle_scripts.bsl
|Airport Assault
*tctf_cutscene.bsl
|-
*tctf_door_lock_lights.bsl
|valign=top|level6_Final.dat<br>level6_Final.raw
*tctf_main.bsl
|level6_Final.dat<br>level6_Final.raw<br>level6_Final.sep
*tctf_objectives.bsl
|15<br>20/13<br>21/13
*tctf_spawn_syndicate.bsl
|[[IGMD/Airport_III]]
====IGMD\power====
|{{C|5|5: HOT PURSUIT}}
Level logic for Chapter 7:A FRIEND IN NEED
|Airport Cargo Hangars
*particle_scripts.bsl
|-
*power_cutscene.bsl
|valign=top|level8_Final.dat<br>level8_Final.raw
*power_main.bsl
|level8_Final.dat<br>level8_Final.raw<br>level8_Final.sep
*power_objectives.bsl
|16<br>20/14<br>21/14
*power_spawn.bsl
|[[IGMD/tctf]]
====IGMD\power_II====
|{{C|6|6: COUNTERATTACK}}
Level logic for Chapter 8:AN INNOCENT LIFE
|TCTF Regional HQ
*particle_scripts.bsl
|-
*power_II_main.bsl
|valign=top|level9_Final.dat<br>level9_Final.raw
*power2_spawn.bsl
|level9_Final.dat<br>level9_Final.raw<br>level9_Final.sep
*powerII_cutscene.bsl
|17<br>20/15<br>21/15
====IGMD\state====
|[[IGMD/power]]
Level logic for Chapter 9:TRUTH AND CONSEQUENCES
|{{C|7|7: A FRIEND IN NEED}}
*state_cutscene.bsl
|Atmospheric Conversion Center (exterior)
*state_level_logic.bsl
|-
*state_main.bsl
|valign=top|level10_Final.dat<br>level10_Final.raw
====IGMD\roof====
|level10_Final.dat<br>level10_Final.raw<br>level10_Final.sep
Level logic for Chapter 10:CAT AND MOUSE
|4<br>20/2<br>21/2
*particle_scripts.bsl
|[[IGMD/power_II]]
*roof.bsl
|{{C|8|8: AN INNOCENT LIFE}}
*roof_cutscene.bsl
|Atmospheric Conversion Center (interior)
*roof_main.bsl
|-
====IGMD\dream_lab====
|valign=top|level11_Final.dat<br>level11_Final.raw
Level logic for Chapter 11:DREAM DIVER
|level11_Final.dat<br>level11_Final.raw<br>level11_Final.sep
*dream_lab_cutscene.bsl
|5<br>20/3<br>21/3
*dream_lab_logic.bsl
|[[IGMD/state]]
*dream_lab_main.bsl
|{{C|9|9: TRUTH AND CONSEQUENCES}}
*particle_scripts.bsl
|Regional State Building
====IGMD\neuro====
|-
Level logic for Chapter 12:SINS OF THE FATHER
|valign=top|level12_Final.dat<br>level12_Final.raw
*neuro_cutscene.bsl
|level12_Final.dat<br>level12_Final.raw<br>level12_Final.sep
*neuro_level_logic.bsl
|6<br>20/4<br>21/4
*neuro_main.bsl
|[[IGMD/roof]]
*particle_scripts.bsl
|{{C|10|10: CAT AND MOUSE}}
====IGMD\tctf_ii====
|Rooftops
Level logic for Chapter 13:PHOENIX RISING
|-
*tctf_ii_cutscene.bsl
|valign=top|level13_Final.dat<br>level13_Final.raw
*roof_main.bsl
|level13_Final.dat<br>level13_Final.raw<br>level13_Final.sep
*tctf2.bsl
|7<br>20/5<br>21/5
====IGMD\compound====
|[[IGMD/dream_lab]]
Level logic for Chapter 14:DAWN OF THE CHRYSALIS
|{{C|11|11: DREAM DIVER}}
*compound.bsl
|Doctor Hasegawa's Lab
*compound_cutscene.bsl
|-
*compound_main.bsl
|valign=top|level14_Final.dat<br>level14_Final.raw
*particle_scripts.bsl
|level14_Final.dat<br>level14_Final.raw<br>level14_Final.sep
|8<br>20/6<br>21/6
|[[IGMD/neuro]]
|{{C|12|12: SINS OF THE FATHER}}
|TCTF Science Prison
|-
|valign=top|level18_Final.dat<br>level18_Final.raw
|level18_Final.dat<br>level18_Final.raw<br>level18_Final.sep
|9<br>20/7<br>21/7
|[[IGMD/tctf_ii]]
|{{C|13|13: PHOENIX RISING}}
|TCTF Regional HQ (redux)
|-
|valign=top|level19_Final.dat<br>level19_Final.raw
|level19_Final.dat<br>level19_Final.raw<br>level19_Final.sep
|10<br>20/8<br>21/8
|[[IGMD/compound]]
|{{C|14|14: DAWN OF THE CHRYSALIS}}
|Syndicate Mountain Compound
|-
|colspan="2"|<center>[[:Category:Outro sequence|outro.bik]]</center>
|18
| <center>--</center>
|colspan=2 align=center|Movie plays when Oni is beaten
|}
 
==Notes==
==="Missing" levels===
Players in 2001 were puzzled when they first installed Oni and looked inside GameDataFolder to find that there were strange gaps in the file numbering: specifically there's no level5, level7, level15, level16 or level17. There isn't something wrong with your installation: the game's content was reshuffled late in development and Bungie West apparently felt it would be too dangerous or disruptive to re-number the level files. The existing files tell a complete story from Chapter 1 to Chapter 14.
 
===level0_Final===
The level 0 data is only loaded once, when Oni starts.
 
===intro.bik, outro.bik===
*The movie files are not needed for Oni to run. You can thus rename or remove intro.bik to avoid the need to click through the movie.
 
*When the game is beaten and outro finishes playing, the game will quit. Sometimes players think that the game has crashed, but this is by design. Note that if you remove outro.bik, Oni will quit immediately after beating the game.
 
*A bug currently exists where the ending movie plays only its sound, with the screen remaining black. You will have to play outro.bik by double-clicking it if you want to watch it. See next point.
 
*Epic Games Tools, the makers of the Bink video format, offer [https://www.radgametools.com/bnkdown.htm standalone apps] for all platforms if you want to watch the .bik files on their own. However ffmpeg also understands the Bink format, meaning that you can use [https://www.videolan.org/vlc/ VLC] or another ffmpeg-based client to watch the movies.
 
===How Oni finds its GameDataFolder===
In Windows, Oni's engine first looks in the [[wp:Working directory|working directory]] (aka "."). If ".\GameDataFolder" is missing, Oni tries parent folders all the way up to the root (e.g., it looks for "C:\Program Files\Oni\GameDataFolder", then "C:\Program Files\GameDataFolder", then "C:\GameDataFolder"). As a last resort, it looks for ".\OniEngine\GameDataFolder" the same way.
 
The Mac Oni app follows the same search pattern for GameDataFolder/, but does not look for OniEngine/GameDataFolder/.
 
[[Category:Game directory map]]