Oni (folder)/GameDataFolder: Difference between revisions

intro tweak, removing obsolete plan
(→‎IGMD\global: clarifying, as nothing will execute from global/ unless it's called)
(intro tweak, removing obsolete plan)
Line 1: Line 1:
{|
{{TOCfloat}}
|valign=top|__TOC__
'''GameDataFolder''' (commonly called GDF to save on typing) is a subfolder of the main Oni folder.<br>It holds the following:
|valign=top|GameDataFolder (commonly called GDF to save on typing) is a subfolder of the main Oni folder.<br>It holds the following:
*Oni's game data (in the form of [[dat|instance files]]; see [[OBD]] for more info)
*Oni's game content (in the form of [[dat|instance files]], see [[OBD]] for more info)
*the level logic (as scripts in the [[IGMD]] subfolder; see [[BSL]] for more info)
*the level logic of the [[Chapters]] (as [[scripts]] in the [[IGMD]] subfolder, see [[BSL]] for more info)
*the [[intro]] and [[outro]] animated sequences, in the [http://www.radgametools.com/bnkmain.htm Bink video] format
*the [[intro]] and [[outro]] animated sequences, in the BINK video format
<br clear="all"/>
|}
==Overview==
==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.
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.


{|style="margin-left:auto; margin-right:auto;"
{|style="margin-left:auto; margin-right:auto;"
Line 144: Line 145:
===How Oni finds its GameDataFolder===
===How Oni finds its GameDataFolder===
In Windows, Oni's engine first looks up GDF in the [[wikipedia:working directory|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.
In Windows, Oni's engine first looks up GDF in the [[wikipedia:working directory|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 [[Daodan DLL|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/.
The Mac Oni app follows the same search pattern for GameDataFolder/, but does not look for OniEngine/GameDataFolder/.


[[Category:Game directory map]]
[[Category:Game directory map]]