XML:ONLD: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (Edition -> AE)
m (link fix)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{XML_File_Header | type=ONLD | prev=ONGS | next=ONLV | name=Oni Game Level Descriptor }}
{{XML_File_Header | prev=ONGS | type=ONLD | next=ONLV | name=Oni Game Level Descriptor}}


===general information===
==General information==
* The xml code 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).
* limitations:
* 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.
** levels 0-31 - level and savegame show on list
* 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.
** levels 32-63? - level name shows up, but no savegames
* Limitations:
** levels 64-127? - nothing shows up, but is playable if you start from a lower level, or (theoretically) you make a level load call from the Daodan (not yet implemented)
** Levels 0-31 - the level and its save points will show up in the Load Game list
** levels-128+ - not possible
** Levels 32-63? - the level name will appear, but none of its save points
* the game ends if no level follows after level 19, elsewise the last level gets reloaded
** 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 [[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'''
ONLDlevel_01.xml:
 
ONLDlevel_01.xml
  <?xml version="1.0" encoding="utf-8"?>
  <?xml version="1.0" encoding="utf-8"?>
  <Oni>
  <Oni>
Line 24: Line 27:
  </Oni>
  </Oni>


 
==XML tags==
===XML tags===
{|class="wikitable" width="100%"
{|class="wikitable" width="100%"
|width=120px| <LevelNumber>
|width=120px| <LevelNumber>
|width=60px| integer
|width=60px| integer
| level number (defines level order, lowest number comes first)
| Level number (determines level order)
|-
|-
| <NextLevelNumber>
| <NextLevelNumber>
| integer
| integer
| ignored
| Ignored
|-
|-
| <DisplayName>
| <DisplayName>
| char[64]
| char[64]
| Name that gets displayed in the savegame 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