OBD:ONSK: Difference between revisions

m
...
No edit summary
 
m (...)
 
(14 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]] >> ONSK File
{{OBD_File_Header|align=center|type=ONSK|prev=ONSA|next=ONTA|name=Oni Sky Class|family=Level}}




<CENTER>[[OBD:ONSA|<==]] <FONT SIZE=5>ONSK File</FONT> [[OBD:ONTA|==>]]<BR>
[[Image:onsk_all.gif]]
<FONT SIZE=2>Oni Sky Class - Level File</FONT></CENTER>




http://www.fh-eberswalde.de/user/dkriesch/onistuff/images/onsk_all.gif
{{Table}}
{{OBD_Table_Header}}
|- ALIGN=CENTER VALIGN=TOP
{{OBDtr| 0x00 | res_id  |FF0000| 01 C3 03 00 | 963    | 00963-sunset.ONSK }}
{{OBDtr| 0x04 | lev_id  |FFFF00| 01 00 00 06 | 3      | level 3 }}
{{OBDtr| 0x08 | link    |00FF00| 01 0D 25 00 | 9485    | skybox top; link to sunset_top.[[OBD:TXMP|TXMP]] }}
{{OBDtr| 0x0C | link    |00FF00| 01 0E 25 00 | 9486    | skybox left; link to 09486-sunset_left.[[OBD:TXMP|TXMP]]; link always used }}
{{OBDtr| 0x10 | link    |00FF00| 01 0F 25 00 | 9487    | skybox left; link to 09487-sunset_right.[[OBD:TXMP|TXMP]]; link always used }}
{{OBDtr| 0x14 | link    |00FF00| 01 0C 25 00 | 9484    | skybox front; link to 09484-sunset_front.[[OBD:TXMP|TXMP]]; link always used }}
{{OBDtr| 0x18 | link    |00FF00| 01 0B 25 00 | 9483    | skybox back; link to 09483-sunset_back.[[OBD:TXMP|TXMP]]; link always used }}
{{OBDtr| 0x1C | link    |00FF00| 00 00 00 00 | unused  | skybox bottom; unused; always the same }}
{{OBDtr| 0x20 | link    |00FF00| 01 10 25 00 | 9488    | planet 1; link to 09488-sunset_sun.[[OBD:TXMP|TXMP]]; only used in level 2 and 3 }}
{{OBDtr| 0x24 | link    |00FF00| 00 00 00 00 | unused  | planet 2; unused; always the same }}
{{OBDtr| 0x28 | link    |00FF00| 00 00 00 00 | unused  | planet 3; unused; always the same }}
{{OBDtr| 0x2C | link    |00FF00| 00 00 00 00 | unused  | planet 4; unused; always the same }}
{{OBDtr| 0x30 | link    |00FF00| 00 00 00 00 | unused  | planet 5; unused; always the same }}
{{OBDtr| 0x34 | link    |00FF00| 00 00 00 00 | unused  | planet 6; unused; always the same }}
{{OBDtr| 0x38 | link    |00FF00| 00 00 00 00 | unused  | planet 7; unused; always the same }}
{{OBDtr| 0x3C | link    |00FF00| 00 00 00 00 | unused  | planet 8; unused; always the same }}
{{OBDtr| 0x40 | link    |00FF00| 00 00 00 00 | unused  | sun flare texture; unused; always the same }}
{{OBDtr| 0x44 | link    |00FF00| 01 11 25 00 | 9489    | star 1; link to 09489-lensflare02.[[OBD:TXMP|TXMP]]; always used (see below) }}
{{OBDtr| 0x48 | link    |00FF00| 00 00 00 00 | unused  | star 2; unused; always the same }}
{{OBDtr| 0x4C | link    |00FF00| 00 00 00 00 | unused  | star 3; unused; always the same }}
{{OBDtr| 0x50 | link    |00FF00| 00 00 00 00 | unused  | star 4; unused; always the same }}
{{OBDtr| 0x54 | link    |00FF00| 00 00 00 00 | unused  | star 5; unused; always the same }}
{{OBDtr| 0x58 | uint32    |00FFFF| 01 00 00 00 | 1      | number of used planets }}
{{OBDtr| 0x5C | uint32    |FF00FF| FF FF FF FF | -1      | number of planets with lensflares }}
{{OBDtr| 0x60 | float  |FFC8C8| 00 00 80 3F | 1.000000| planet 1; U-scaling }}
{{OBDtr| 0x64 | char[28] |FFC8C8| AD DE      | dead    | planets 2-8; U-scaling }}
{{OBDtr| 0x80 | float  |FFFFC8| 00 00 80 3F | 1.000000| planet 1; V-scaling }}
{{OBDtr| 0x84 | char[28] |FFFFC8| AD DE      | dead    | planets 2-8; V-scaling }}
{{OBDtr| 0xA0 | float  |C8FFC8| 00 00 00 00 | 0.000000| planet 1; elevation in radians }}
{{OBDtr| 0xA4 | char[28] |C8FFC8| AD DE      | dead    | planets 2-8; elevation in radians }}
{{OBDtr| 0xC0 | float  |C8FFFF| 00 00 00 00 | 0.000000| planet 1; azimuth in radians }}
{{OBDtr| 0xC4 | char[28] |C8FFFF| AD DE      | dead    | planets 2-8; azimuth in radians }}
{{OBDtr| 0xE0 | float  |FFC8FF| 00 00 80 40 | 4.000000| lensflare size }}
{{OBDtr| 0xE4 | float  |FFC800| 00 00 80 3F | 1.000000| lensflare alpha }}
{{OBDtr| 0xE8 | uint32    |C800C8| 00 00 00 00 | 0      | number of stars to generate }}
{{OBDtr| 0xEC | uint32    |C87C64| 45 00 00 00 | 69      | random seed for star generation }}
{{OBDtr| 0xF0 | uint32    |B0C3D4| 01 00 00 00 | 1      | star textures count; ignored }}
|}


;Skybox
:The skybox is just a cube drawn using the skybox textures. The bottom face of the cube is never used/drawn.
;Planets
:There can be up to 8 "planets" displayed using the specified textures, sizes and positions. Unfortunately there is a bug and they're no occluded by anything.
;Sun Flare
:For the first "planet" an optional "flare" can be drawn. It does not appear to work correctly and since planets don't display correctly the flare is not of much use.
;Stars
:A fixed number of stars can be displayed at random positions in the sky. Doesn't appear to work, the stars are not visible and the game crashes when the level ends.


{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
| WIDTH=15% | <B>Hex</B>
| WIDTH=15% | <B>Translation</B>
| WIDTH=70% | <B>Meaning</B>
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FF0000" | 01 C3 03 00
| 963
| ALIGN=LEFT | 00963-sunset.ONSK
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFFF00" | 01 00 00 06
| 3
| ALIGN=LEFT | level 3
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 01 0D 25 00
| 9485
| ALIGN=LEFT | link to 09485-sunset_top.[[OBD:TXMP|TXMP]]
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 01 0E 25 00
| 9486
| ALIGN=LEFT | link to 09486-sunset_left.[[OBD:TXMP|TXMP]]
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 01 0F 25 00
| 9487
| ALIGN=LEFT | link to 09487-sunset_right.[[OBD:TXMP|TXMP]]
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 01 0C 25 00
| 9484
| ALIGN=LEFT | link to 09484-sunset_front.[[OBD:TXMP|TXMP]]
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 01 0B 25 00
| 9483
| ALIGN=LEFT | link to 09483-sunset_back.[[OBD:TXMP|TXMP]]
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | not used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 01 10 25 00
| 9488
| ALIGN=LEFT | link to 09488-sunset_sun.[[OBD:TXMP|TXMP]] (image exists, but not used in the game)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | not used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | not used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | not used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | not used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | not used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | not used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | not used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | not used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 01 11 25 00
| 9489
| ALIGN=LEFT | link to 09489-lensflare02.[[OBD:TXMP|TXMP]] (zero byte file, but not used too)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | not used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | not used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | not used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | not used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FFFF" | 01 00 00 00
| 0
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FF00FF" | FF FF FF FF
| unknown
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8C8" | 00 00 80 3F
| 1.000000
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFFFC8" | AD DE
| dead
| ALIGN=LEFT | not used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFC8" | 00 00 80 3F
| 1.000000
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFFF" | AD DE
| dead
| ALIGN=LEFT | not used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8FF" | 00 00 00 00
| 0.000000
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC800" | AD DE
| dead
| ALIGN=LEFT | not used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C800C8" | 00 00 00 00
| 0.000000
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C87C64" | AD DE
| dead
| ALIGN=LEFT | not used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#B0C3D4" | 00 00 80 40
| 4.000000
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#E7CEA5" | 00 00 80 3F
| 1.000000
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFDDDD" | 00 00 00 00
| 0.000000
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#64AAAA" | 45 00 00 00
| 69
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#EBEBEB" | 01 00 00 00
| 1
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#8C8CCC" | AD DE
| dead
| ALIGN=LEFT | not used
|}


;Original ONSK
*afternoon (level 1)
*sunset (level 2 and 3)
*crapsky (level 19)
*night (all the other levels except level 13, which has no ONSK)


<HR>
<CENTER>[[OBD:ONSA|<==]] <B>ONSK File</B> [[OBD:ONTA|==>]]</CENTER>
<HR>


{{OBD_File_Footer|type=ONSK|prev=ONSA|next=ONTA|name=Oni Sky Class|family=Level}}


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

edits