Oni (folder)/GameDataFolder: Difference between revisions
(→Notes: general updates) |
(→IGMD\global: clarifying, as nothing will execute from global/ unless it's called) |
||
Line 137: | Line 137: | ||
===IGMD\global=== | ===IGMD\global=== | ||
IGMD\global\ is not present by default, but if it is created, any scripts placed | IGMD\global\ is not present by default, but if it is created, the functions in any scripts placed inside it will be accessible from all levels; however, the PC demo engine ignores the global folder. | ||
===Movie files=== | ===Movie files=== |
Revision as of 17:53, 12 April 2013
GameDataFolder (commonly called GDF to save on typing) is a subfolder of the main Oni folder. It holds the following: |
Overview
Below we list the instance files in parallel with the folders (subfolders of IGMD) which hold the corresponding level logic. SPOILER WARNING: the Chapter column links to summaries and analyses of Oni's storyline. The BINK movies are listed separately.
| ||||
| ||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes
level0_Final
The level0_Final instance file is only loaded once, when Oni starts.
IGMD\global
IGMD\global\ is not present by default, but if it is created, the functions in any scripts placed inside it will be accessible from all levels; however, the PC demo engine ignores the global folder.
Movie files
RAD Game Tools, the makers of the Bink video format, offer standalone apps for all platforms if you want to watch the .bik files on their own. The movie files are not needed for Oni to run. You can thus rename or move intro.bik out of GameDataFolder so Oni starts faster.
How Oni finds its GameDataFolder
In Windows, Oni's engine first looks up GDF in the working directory (a.k.a. "."). 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.
Early versions of the C-Daodan discarded the notion of working directory and used the engine's directory instead; the feature will probably be brought back, for backwards compatibility.
The Mac Oni app follows the same search pattern for GameDataFolder/, but does not look for OniEngine/GameDataFolder/.