Jump to content

Introduction to modding: Difference between revisions

m
Line 22: Line 22:


==Introduction to the game data==
==Introduction to the game data==
A game can be compared to a theater play: in both cases, you have ''stages'', ''actors'', ''scripts'', and ''music''. A level is built so that when the player performs certain actions or reaches certain locations on the ''stage'', further events are set in motion according to the ''script''. The player is told what to do through various textual instructions, cutscenes, and/or voice acting (more ''scripts''), and he interacts with [[wiktionary:artificial_intelligence|AI]]-driven ''actors''. ''Music'' will often play dynamically behind all this, changing along with the flow of events.
A game can be compared to a theater play: in both cases, you have <u>stages</u>, <u>actors</u>, <u>scripts</u>, and <u>music</u>. A level is built so that when the player performs certain actions or reaches certain locations on the <u>stage</u>, further events are set in motion according to the <u>script</u>. The player is told what to do through various textual instructions, cutscenes, and/or voice acting (more <u>scripts</u>), and he interacts with [[wiktionary:artificial_intelligence|AI]] <u>actors</u>. <u>Music</u> will often play dynamically behind all this, changing along with the flow of events.


In Oni's case, the stages, actors, and music (and other sounds) are all packed together, which is not unusual for games, and found in the files inside GameDataFolder\ that end in ".dat", ".raw", and, on Macs, ".sep". The files called level0_Final provide resources for all levels, and when you load a Chapter, the set of files for that level, e.g. level12_Final, provide the level-specific resources for that Chapter. The scripts are stored in separate, plain-text files ending in ".bsl", in the IGMD\ folder inside GameDataFolder\. The player's progress is stored in persist.dat, next to the Oni application.
In Oni's case, the <u>stages</u>, <u>actors</u>, and <u>music</u> (and other sounds) are all packed together into files inside GameDataFolder/ that end in ".dat", ".raw", and, on Macs, ".sep". The files called level0_Final provide resources for all levels, and when you load a Chapter, the set of files for that level, e.g. level12_Final, provide the level-specific resources for that Chapter. The <u>scripts</u> are stored in separate, plain-text files ending in ".bsl", in the subfolders inside GameDataFolder/IGMD/. The player's progress is stored in persist.dat, next to the Oni application.


*See [[Oni (folder)]] for information on each file, or;
*See [[Oni (folder)]] for information on each file, or;