OBD:ONSK: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (ARGB possibility)
m (added family to footer template call)
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{OBD_File_Header|align=center|type=ONSK|prev=ONSA|next=ONTA|name=Oni Sky Class|family=Level}}
{{OBD_File_Header|align=center|type=ONSK|prev=ONSA|next=ONTA|name=Oni Sky Class|family=Level}}
----


http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/onsk_all.gif


[[Image:onsk_all.gif]]


{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
 
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
{{Table}}
| WIDTH=15% | <B>Hex</B>
{{OBD_Table_Header}}
| WIDTH=15% | <B>Translation</B>
|- ALIGN=CENTER VALIGN=TOP
| WIDTH=70% | <B>Meaning</B>
{{OBDtr| 0x00 | res_id  |FF0000| 01 C3 03 00 | 963     | 00963-sunset.ONSK }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
{{OBDtr| 0x04 | lev_id  |FFFF00| 01 00 00 06 | 3       | level 3 }}
| BGCOLOR="#FF0000" | 01 C3 03 00
{{OBDtr| 0x08 | link    |00FF00| 01 0D 25 00 | 9485   | skybox top; link to sunset_top.[[OBD:TXMP|TXMP]] }}
| 963
{{OBDtr| 0x0C | link    |00FF00| 01 0E 25 00 | 9486   | skybox left; link to 09486-sunset_left.[[OBD:TXMP|TXMP]]; link always used }}
| ALIGN=LEFT | 00963-sunset.ONSK
{{OBDtr| 0x10 | link    |00FF00| 01 0F 25 00 | 9487   | skybox left; link to 09487-sunset_right.[[OBD:TXMP|TXMP]]; link always used }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
{{OBDtr| 0x14 | link    |00FF00| 01 0C 25 00 | 9484   | skybox front; link to 09484-sunset_front.[[OBD:TXMP|TXMP]]; link always used }}
| BGCOLOR="#FFFF00" | 01 00 00 06
{{OBDtr| 0x18 | link    |00FF00| 01 0B 25 00 | 9483   | skybox back; link to 09483-sunset_back.[[OBD:TXMP|TXMP]]; link always used }}
| 3
{{OBDtr| 0x1C | link    |00FF00| 00 00 00 00 | unused  | unused; always the same }}
| ALIGN=LEFT | level 3
{{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 }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
{{OBDtr| 0x24 | link    |00FF00| 00 00 00 00 | unused  | planet 2; unused; always the same }}
| BGCOLOR="#00FF00" | 01 0D 25 00
{{OBDtr| 0x28 | link    |00FF00| 00 00 00 00 | unused  | planet 3; unused; always the same }}
| 9485
{{OBDtr| 0x2C | link    |00FF00| 00 00 00 00 | unused  | planet 4; unused; always the same }}
| ALIGN=LEFT | skybox top: 09485-sunset_top.[[OBD:TXMP|TXMP]]
{{OBDtr| 0x30 | link    |00FF00| 00 00 00 00 | unused  | planet 5; unused; always the same }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
{{OBDtr| 0x34 | link    |00FF00| 00 00 00 00 | unused  | planet 6; unused; always the same }}
| BGCOLOR="#00FF00" | 01 0E 25 00
{{OBDtr| 0x38 | link    |00FF00| 00 00 00 00 | unused  | planet 7; unused; always the same }}
| 9486
{{OBDtr| 0x3C | link    |00FF00| 00 00 00 00 | unused  | planet 8; unused; always the same }}
| ALIGN=LEFT | skybox left: 09486-sunset_left.[[OBD:TXMP|TXMP]]
{{OBDtr| 0x40 | link    |00FF00| 00 00 00 00 | unused  | sun flare texture; unused; always the same }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
{{OBDtr| 0x44 | link    |00FF00| 01 11 25 00 | 9489   | star 1; link to 09489-lensflare02.[[OBD:TXMP|TXMP]]; always used (see below) }}
| BGCOLOR="#00FF00" | 01 0F 25 00
{{OBDtr| 0x48 | link    |00FF00| 00 00 00 00 | unused  | star 2; unused; always the same }}
| 9487
{{OBDtr| 0x4C | link     |00FF00| 00 00 00 00 | unused  | star 3; unused; always the same }}
| ALIGN=LEFT | skybox right: 09487-sunset_right.[[OBD:TXMP|TXMP]]
{{OBDtr| 0x50 | link     |00FF00| 00 00 00 00 | unused  | star 4; unused; always the same }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
{{OBDtr| 0x54 | link     |00FF00| 00 00 00 00 | unused  | star 5; unused; always the same }}
| BGCOLOR="#00FF00" | 01 0C 25 00
{{OBDtr| 0x58 | int32    |00FFFF| 01 00 00 00 | 1      | number of used planets }}
| 9484
{{OBDtr| 0x5C | int32    |FF00FF| FF FF FF FF | -1     | sun flare on/off (-1 <nowiki>=</nowiki> off, 0 <nowiki>=</nowiki> on) }}
| ALIGN=LEFT | skybox front: 09484-sunset_front.[[OBD:TXMP|TXMP]]
{{OBDtr| 0x60 | float32  |FFC8C8| 00 00 80 3F | 1.000000| planet 1; U-scaling }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
{{OBDtr| 0x64 | char[28] |FFC8C8| AD DE       | dead   | planets 2-8; U-scaling }}
| BGCOLOR="#00FF00" | 01 0B 25 00
{{OBDtr| 0x80 | float32  |FFFFC8| 00 00 80 3F | 1.000000| planet 1; V-scaling }}
| 9483
{{OBDtr| 0x84 | char[28] |FFFFC8| AD DE       | dead   | planets 2-8; V-scaling }}
| ALIGN=LEFT | skybox back: 09483-sunset_back.[[OBD:TXMP|TXMP]]
{{OBDtr| 0xA0 | float32  |C8FFC8| 00 00 00 00 | 0.000000| planet 1; elevation in radians }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
{{OBDtr| 0xA4 | char[28] |C8FFC8| AD DE       | dead   | planets 2-8; elevation in radians }}
| BGCOLOR="#00FF00" | 00 00 00 00
{{OBDtr| 0xC0 | float32  |C8FFFF| 00 00 00 00 | 0.000000| planet 1; azimuth in radians }}
| 0
{{OBDtr| 0xC4 | char[28] |C8FFFF| AD DE       | dead   | planets 2-8; azimuth in radians }}
| ALIGN=LEFT | skybox bottom: [[OBD:TXMP|TXMP]] link, never used
{{OBDtr| 0xE0 | float32  |FFC8FF| 00 00 80 40 | 4.000000| sun flare size }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
{{OBDtr| 0xE4 | float32  |FFC800| 00 00 80 3F | 1.000000| sun flare intensity }}
| BGCOLOR="#00FF00" | 01 10 25 00
{{OBDtr| 0xE8 | int32    |C800C8| 00 00 00 00 | 0       | number of stars to generate }}
| 9488
{{OBDtr| 0xEC | int32    |C87C64| 45 00 00 00 | 69     | random seed for star generation }}
| ALIGN=LEFT | planet 1? sunset_sun.[[OBD:TXMP|TXMP]] in level2 and level3, not used otherwise
{{OBDtr| 0xF0 | int32    |B0C3D4| 01 00 00 00 | 1       | ignored }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
{{OBDtr| 0xF4 | char[12] |E7CEA5| AD DE       | dead   | unused }}
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | planet 2? TXMP link, never used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | planet 3? TXMP link, never used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | planet 4? TXMP link, never used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | planet 5? TXMP link, never used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | planet 6? TXMP link, never used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | planet 7? TXMP link, never used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | planet 8? TXMP link, never used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | some other TXMP, never used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 01 11 25 00
| 9489
| ALIGN=LEFT | flare 1? always lensflare02.[[OBD:TXMP|TXMP]]
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | flare 2? TXMP link, never used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | flare 3? TXMP link, never used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | flare 4? TXMP link, never used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | 00 00 00 00
| 0
| ALIGN=LEFT | flare 5? TXMP link, never used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FFFF" | 01 00 00 00
| 0
| ALIGN=LEFT | unknown, 1 if sun is present, 0 otherwise
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FF00FF" | FF FF FF FF
| unknown
| ALIGN=LEFT | unknown, always the same; either -1 or opaque white (ARGB)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8C8" | 00 00 80 3F
| 1.000000
| ALIGN=LEFT | unknown, 1 if sun is present, DEAD otherwise
|- 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, 1 if sun is present, DEAD otherwise
|- 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, 0 if sun is present, DEAD otherwise
|- 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, 0 if sun is present, DEAD otherwise
|- 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, always te same
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#E7CEA5" | 00 00 80 3F
| 1.000000
| ALIGN=LEFT | unknown, always te same
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFDDDD" | 00 00 00 00
| 0.000000
| ALIGN=LEFT | unknown, always te same
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#64AAAA" | 45 00 00 00
| 69
| ALIGN=LEFT | unknown, always te same
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#EBEBEB" | 01 00 00 00
| 1
| ALIGN=LEFT | unknown, always te same
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#8C8CCC" | AD DE
| dead
| ALIGN=LEFT | not used
|}
|}
;TXMP links
 
:According to the swapcode table, the 20 links are in fact 4 groups:
;Skybox
:*6 (skybox, bottom one is never used)
:The skybox is just a cube drawn using the skybox textures. The bottom face of the cube is never used/drawn.
:*8 (only first one is ever used (sun))
 
:*1 (never used)
;Planets
:*5 (first one always lensflare02, other 4 never used)
: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 fields
 
:Those are present whenever the sun TXMP is linked to at 0x20
;Sun Flare
:*int at 0x58: 1 if there's a sun, 0 otherwise (maybe a flag)
: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.
:*float at 0x60: 1 if there's a sun, missing otherwise
 
:*float at 0x80: 1 if there's a sun, missing otherwise
;Stars
:*float at 0xA0: 0 if there's a sun, missing otherwise
: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.
:*float at 0xC0: 0 if there's a sun, missing otherwise
 
 
;Original ONSK
;Original ONSK
*afternoon (level 1)
*afternoon (level 1)
Line 181: Line 66:
*crapsky (level 19)
*crapsky (level 19)
*night (all the other levels except level 13, which has no ONSK)
*night (all the other levels except level 13, which has no ONSK)
All ONSK are identical apart from the sun fields (see above) and the skybox textures.


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

Latest revision as of 21:28, 9 December 2023

ONI BINARY DATA
ONSA << Other file types >> ONTA
ONSK : Oni Sky Class
switch to XML:ONSK page
Overview @ Oni Stuff
OBD.png


Onsk all.gif


Offset Type Raw Hex Value Description
0x00 res_id 01 C3 03 00 963 00963-sunset.ONSK
0x04 lev_id 01 00 00 06 3 level 3
0x08 link 01 0D 25 00 9485 skybox top; link to sunset_top.TXMP
0x0C link 01 0E 25 00 9486 skybox left; link to 09486-sunset_left.TXMP; link always used
0x10 link 01 0F 25 00 9487 skybox left; link to 09487-sunset_right.TXMP; link always used
0x14 link 01 0C 25 00 9484 skybox front; link to 09484-sunset_front.TXMP; link always used
0x18 link 01 0B 25 00 9483 skybox back; link to 09483-sunset_back.TXMP; link always used
0x1C link 00 00 00 00 unused unused; always the same
0x20 link 01 10 25 00 9488 planet 1; link to 09488-sunset_sun.TXMP; only used in level 2 and 3
0x24 link 00 00 00 00 unused planet 2; unused; always the same
0x28 link 00 00 00 00 unused planet 3; unused; always the same
0x2C link 00 00 00 00 unused planet 4; unused; always the same
0x30 link 00 00 00 00 unused planet 5; unused; always the same
0x34 link 00 00 00 00 unused planet 6; unused; always the same
0x38 link 00 00 00 00 unused planet 7; unused; always the same
0x3C link 00 00 00 00 unused planet 8; unused; always the same
0x40 link 00 00 00 00 unused sun flare texture; unused; always the same
0x44 link 01 11 25 00 9489 star 1; link to 09489-lensflare02.TXMP; always used (see below)
0x48 link 00 00 00 00 unused star 2; unused; always the same
0x4C link 00 00 00 00 unused star 3; unused; always the same
0x50 link 00 00 00 00 unused star 4; unused; always the same
0x54 link 00 00 00 00 unused star 5; unused; always the same
0x58 int32 01 00 00 00 1 number of used planets
0x5C int32 FF FF FF FF -1 sun flare on/off (-1 = off, 0 = on)
0x60 float32 00 00 80 3F 1.000000 planet 1; U-scaling
0x64 char[28] AD DE dead planets 2-8; U-scaling
0x80 float32 00 00 80 3F 1.000000 planet 1; V-scaling
0x84 char[28] AD DE dead planets 2-8; V-scaling
0xA0 float32 00 00 00 00 0.000000 planet 1; elevation in radians
0xA4 char[28] AD DE dead planets 2-8; elevation in radians
0xC0 float32 00 00 00 00 0.000000 planet 1; azimuth in radians
0xC4 char[28] AD DE dead planets 2-8; azimuth in radians
0xE0 float32 00 00 80 40 4.000000 sun flare size
0xE4 float32 00 00 80 3F 1.000000 sun flare intensity
0xE8 int32 00 00 00 00 0 number of stars to generate
0xEC int32 45 00 00 00 69 random seed for star generation
0xF0 int32 01 00 00 00 1 ignored
0xF4 char[12] AD DE dead unused
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.


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)


ONI BINARY DATA
ONSA << Other file types >> ONTA
ONSK : Oni Sky Class
Level file