OBD:ONLD: Difference between revisions

From OniGalore
Jump to navigation Jump to search
No edit summary
 
m (changed family)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File Types]] >> ONLD File
{{OBD_File_Header | type=ONLD | prev=ONIA | next=ONLV | name=Oni Game Level Descriptor | family=Level | align=center}}




<CENTER>[[OBD:ONIA|<==]] <FONT SIZE=5>ONIA File</FONT> [[OBD:ONLV|==>]]<BR>
[[Image:onld_all.gif]]
<FONT SIZE=2>Oni Game Level Descriptor - Level 0 File</FONT></CENTER>




http://www.fh-eberswalde.de/user/dkriesch/onistuff/images/onld_all.gif
{{Table}}
 
{{OBD_Table_Header}}
 
|- ALIGN=CENTER VALIGN=TOP
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
{{OBDtr| 0x00 | res_id  |FF0000| 01 D5 05 00 | 1493 | 01493-level_01.ONLD }}
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
{{OBDtr| 0x04 | lev_id  |FFFF00| 01 00 00 00 | 0   | level 0 }}
| WIDTH=15% | <B>Hex</B>
{{OBDtr| 0x08 | int16    |FFC8C8| 01 00       | 1   | current level number is… }}
| WIDTH=15% | <B>Translation</B>
{{OBDtr| 0x0A | int16    |FFFFC8| 02 00       | 2   | next level should be… (ignored; Oni will pick the next highest level number no matter what you place here) }}
| WIDTH=70% | <B>Meaning</B>
{{OBDtr2|0x0C | char[64] |C8FFC8| TCTF-Training     | name of the level; you'll find it in the list, when you load a level }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
{{OBDtr| 0x4C | char[20] |C8FFFF| AD DE       | dead | unused }}
| BGCOLOR="#FF0000" | 01 D5 05 00
| 1493
| ALIGN=LEFT | 01493-level_01.ONLD
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFFF00" | 01 00 00 00
| 0
| ALIGN=LEFT | level 0
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8C8" | 01 00
| 1
| ALIGN=LEFT | this is level 1
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFFFC8" | 02 00
| 2
| ALIGN=LEFT | next is level 2
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFC8" COLSPAN=2 | <TT>TCTF-Training</TT>
| ALIGN=LEFT | name of the level; you'll find it in the list, when you load a level
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFFF" | AD DE
| dead
| ALIGN=LEFT | not used
|}
|}




<HR>
;Hardcoded level name
<CENTER>[[OBD:ONIA|<==]] <B>ONLD File</B> [[OBD:ONLV|==>]]</CENTER>
The name of Chapter 1, "Syndicate Warehouse", is hardcoded into the engine rather than coming from the ONLD. That's because [[{{C0}}]] and [[{{C1}}]] share level1_Final.dat, which means that the ONLD could only provide a name for one chapter or the other. The loser was Syndicate Warehouse; BWest hardcoded its name to appear in place of what would have been Save Point 1 of TCTF Training (and shifted the numbering of the other save points down by one). The historical reason for this odd two-levels-in-one situation is that Combat Training was added to Oni in the final rushed month of development.
<HR>


{{OBD_File_Footer | type=ONLD | prev=ONIA | next=ONLV | name=Oni Game Level Descriptor | family=Level}}


[[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File Types]] >> ONLD File
{{OBD}}

Latest revision as of 21:27, 9 December 2023

ONI BINARY DATA
ONIA << Other file types >> ONLV
ONLD : Oni Game Level Descriptor
switch to XML:ONLD page
Overview @ Oni Stuff
OBD.png


Onld all.gif


Offset Type Raw Hex Value Description
0x00 res_id 01 D5 05 00 1493 01493-level_01.ONLD
0x04 lev_id 01 00 00 00 0 level 0
0x08 int16 01 00 1 current level number is…
0x0A int16 02 00 2 next level should be… (ignored; Oni will pick the next highest level number no matter what you place here)
0x0C char[64] TCTF-Training name of the level; you'll find it in the list, when you load a level
0x4C char[20] AD DE dead unused


Hardcoded level name

The name of Chapter 1, "Syndicate Warehouse", is hardcoded into the engine rather than coming from the ONLD. That's because CHAPTER 00 . COMBAT TRAINING and CHAPTER 01 . TRIAL RUN share level1_Final.dat, which means that the ONLD could only provide a name for one chapter or the other. The loser was Syndicate Warehouse; BWest hardcoded its name to appear in place of what would have been Save Point 1 of TCTF Training (and shifted the numbering of the other save points down by one). The historical reason for this odd two-levels-in-one situation is that Combat Training was added to Oni in the final rushed month of development.

ONI BINARY DATA
ONIA << Other file types >> ONLV
ONLD : Oni Game Level Descriptor
Level file