XML:ONLD: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (putting nav header parameters in more logical order)
m (link fix)
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
* The XML on this page is compatible with OniSplit '''v0.9.61.0'''.
* The XML on this page is compatible with OniSplit '''v0.9.61.0'''.
* ONLD files are '''global''' (they are stored in AE/AEInstaller/vanilla/level0_Final.dat).
* ONLD files are '''global''' (they are stored in AE/AEInstaller/vanilla/level0_Final.dat).
* The name of Chapter 1, "Syndicate Warehouse", is hardcoded for some reason and ignores the ONLD's string.
* The name of Chapter 1, "Syndicate Warehouse", is hardcoded into the game. This is due to the hasty insertion of {{C0}} into the game at the end of development, which was accomplished by adding the training space into the same level data files used for {{C1}}. Since only one level name could be used for both chapters, Bungie West chose "TCTF Training", as seen in the sample ONLD below, and hardcoded the name for Chapter 1.
* The words "Save Point" seen on the Load Game screen are also hardcoded into Oni. Localizers of the game had to hack or recompile the game application in order to translate "Save Point" and "Syndicate Warehouse" into their target language.
* Limitations:
* Limitations:
** Levels 0-31 - the level and its savepoints show up in the Load Game list
** Levels 0-31 - the level and its save points will show up in the Load Game list
** Levels 32-63? - the level name shows up, but no savepoints
** Levels 32-63? - the level name will appear, but none of its save points
** Levels 64-127? - nothing shows up, but the level is playable if you start from a lower level
** Levels 64-127? - nothing will show up, but the level will be reachable if you start from a lower level
** Levels 128+ - not possible
** Levels 128+ - not possible
* When a level is beaten, the next level is picked numerically (not based off <NextLevelNumber>). The game ends if no level follows after level 19, otherwise the last level gets reloaded.
* When a level is beaten, the next level is picked numerically (not based off <NextLevelNumber>).
** The game always ends when level 19 is beaten, even if [[Creating a level#Fan-made levels|additional levels installed as mods]] have higher level numbers.
** Beating a level which is numbered after 19 will cause Oni to look for the next level number.
** If there is no higher-numbered level when a level above 19 is beaten, the game will reload the same level.


==Example==
==Example==
Line 27: Line 31:
|width=120px| <LevelNumber>
|width=120px| <LevelNumber>
|width=60px| integer
|width=60px| integer
| level number (determines level order)
| Level number (determines level order)
|-
|-
| <NextLevelNumber>
| <NextLevelNumber>
| integer
| integer
| ignored
| Ignored
|-
|-
| <DisplayName>
| <DisplayName>
| char[64]
| char[64]
| name that gets displayed in the Load Game menu  
| Name that gets displayed in the Load Game menu  
|}
|}


{{XML}}
{{XML}}

Latest revision as of 01:19, 20 November 2023

ONLD : Oni Game Level Descriptor
XML modding tips
  • See HERE to start learning about XML modding.
  • See HERE if you are searching for information on how to handle object coordinates.
  • See HERE for some typical modding errors and their causes.
XML.png
XML

ONGS << Other file types >> ONLV

switch to OBD page

General information

  • The XML on this page is compatible with OniSplit v0.9.61.0.
  • ONLD files are global (they are stored in AE/AEInstaller/vanilla/level0_Final.dat).
  • The name of Chapter 1, "Syndicate Warehouse", is hardcoded into the game. This is due to the hasty insertion of CHAPTER 00 . COMBAT TRAINING into the game at the end of development, which was accomplished by adding the training space into the same level data files used for CHAPTER 01 . TRIAL RUN. Since only one level name could be used for both chapters, Bungie West chose "TCTF Training", as seen in the sample ONLD below, and hardcoded the name for Chapter 1.
  • The words "Save Point" seen on the Load Game screen are also hardcoded into Oni. Localizers of the game had to hack or recompile the game application in order to translate "Save Point" and "Syndicate Warehouse" into their target language.
  • Limitations:
    • Levels 0-31 - the level and its save points will show up in the Load Game list
    • Levels 32-63? - the level name will appear, but none of its save points
    • Levels 64-127? - nothing will show up, but the level will be reachable if you start from a lower level
    • Levels 128+ - not possible
  • When a level is beaten, the next level is picked numerically (not based off <NextLevelNumber>).
    • The game always ends when level 19 is beaten, even if additional levels installed as mods have higher level numbers.
    • Beating a level which is numbered after 19 will cause Oni to look for the next level number.
    • If there is no higher-numbered level when a level above 19 is beaten, the game will reload the same level.

Example

ONLDlevel_01.xml:

<?xml version="1.0" encoding="utf-8"?>
<Oni>
   <ONLD id="0">
       <LevelNumber>1</LevelNumber>
       <NextLevelNumber>2</NextLevelNumber>
       <DisplayName>TCTF Training</DisplayName>
   </ONLD>
</Oni>

XML tags

<LevelNumber> integer Level number (determines level order)
<NextLevelNumber> integer Ignored
<DisplayName> char[64] Name that gets displayed in the Load Game menu