|
|
|
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 |
link32 |
01 0D 25 00 |
9485 |
skybox top: link to sunset_top.TXMP
|
0x0C |
link32 |
01 0E 25 00 |
9486 |
skybox left: link to 09486-sunset_left.TXMP; link always used
|
0x10 |
link32 |
01 0F 25 00 |
9487 |
skybox left: link to 09487-sunset_right.TXMP; link always used
|
0x14 |
link32 |
01 0C 25 00 |
9484 |
skybox front: link to 09484-sunset_front.TXMP; link always used
|
0x18 |
link32 |
01 0B 25 00 |
9483 |
skybox back: link to 09483-sunset_back.TXMP; link always used
|
0x1C |
link32 |
00 00 00 00 |
0 |
unused; always the same
|
0x20 |
link32 |
01 10 25 00 |
9488 |
link to 09488-sunset_sun.TXMP (image exists, but not used in the game); only level 2 and 3 use this link
|
0x24 |
link32 |
00 00 00 00 |
0 |
unused; always the same
|
0x28 |
link32 |
00 00 00 00 |
0 |
unused; always the same
|
0x2C |
link32 |
00 00 00 00 |
0 |
unused; always the same
|
0x30 |
link32 |
00 00 00 00 |
0 |
unused; always the same
|
0x34 |
link32 |
00 00 00 00 |
0 |
unused; always the same
|
0x38 |
link32 |
00 00 00 00 |
0 |
unused; always the same
|
0x3C |
link32 |
00 00 00 00 |
0 |
unused; always the same
|
0x40 |
link32 |
00 00 00 00 |
0 |
unused; always the same
|
0x44 |
link32 |
01 11 25 00 |
9489 |
link to 09489-lensflare02.TXMP; link always used; (zero byte file, image not used too)
|
0x48 |
link32 |
00 00 00 00 |
0 |
unused; always the same
|
0x4C |
link32 |
00 00 00 00 |
0 |
unused; always the same
|
0x50 |
link32 |
00 00 00 00 |
0 |
unused; always the same
|
0x54 |
link32 |
00 00 00 00 |
0 |
unused; always the same
|
0x58 |
int32 |
01 00 00 00 |
1 |
|
0x5C |
int32 |
|
|
|
0x08 |
char[22] |
AD DE |
dead |
unused
|
0x0E |
int16 |
0D 00 |
13 |
array size
|
First element (black outline)
|
0x00 |
int32 |
01 C1 09 00 |
2497 |
link to 02497-KONPISaim_screen_run.TRAS
|
Hex
|
Translation
|
Meaning
|
01 C3 03 00
|
963
|
00963-sunset.ONSK
|
01 00 00 06
|
3
|
level 3
|
01 0D 25 00
|
9485
|
skybox top: link to sunset_top.TXMP
|
01 0E 25 00
|
9486
|
skybox left: link to sunset_left.TXMP
|
01 0F 25 00
|
9487
|
skybox right: link to sunset_right.TXMP
|
01 0C 25 00
|
9484
|
skybox front: link to sunset_front.TXMP
|
01 0B 25 00
|
9483
|
skybox back: link to sunset_back.TXMP
|
00 00 00 00
|
0
|
skybox bottom: TXMP link, never used
|
01 10 25 00
|
9488
|
planet 1; link to sunset_sun.TXMP
|
00 00 00 00
|
0
|
planet 2; TXMP link, never used
|
00 00 00 00
|
0
|
planet 3; TXMP link, never used
|
00 00 00 00
|
0
|
planet 4; TXMP link, never used
|
00 00 00 00
|
0
|
planet 5; TXMP link, never used
|
00 00 00 00
|
0
|
planet 6; TXMP link, never used
|
00 00 00 00
|
0
|
planet 7; TXMP link, never used
|
00 00 00 00
|
0
|
planet 8; TXMP link, never used
|
00 00 00 00
|
0
|
sun flare TXMP, never used
|
01 11 25 00
|
9489
|
star 1; always lensflare02.TXMP
|
00 00 00 00
|
0
|
star 2; TXMP link, never used
|
00 00 00 00
|
0
|
star 3; TXMP link, never used
|
00 00 00 00
|
0
|
star 4; TXMP link, never used
|
00 00 00 00
|
0
|
star 5; TXMP link, never used
|
01 00 00 00
|
0
|
number of planets
|
FF FF FF FF
|
unknown
|
unknown, always the same; either -1 or opaque white (ARGB)
|
00 00 80 3F
|
1.000000
|
planet 1: U-scaling in percent
|
AD DE
|
not used
|
planets 2-8: U-scaling in percent
|
00 00 80 3F
|
1.000000
|
planet 1: V-scaling in percent
|
AD DE
|
not used
|
planets 2-8: V-scaling in percent
|
00 00 00 00
|
0.000000
|
planet 1: elevation in radians
|
AD DE
|
not used
|
planets 2-8: elevation in radians
|
00 00 00 00
|
0.000000
|
planet 1: azimuth in radians
|
AD DE
|
not used
|
planet 2-8: azimuth in radians
|
00 00 80 40
|
4.000000
|
unknown, always the same
|
00 00 80 3F
|
1.000000
|
unknown, always the same
|
00 00 00 00
|
0
|
unknown, always the same; number of ?
|
45 00 00 00
|
69
|
unknown, always the same; number of ?
|
01 00 00 00
|
1
|
unknown, always the same
|
AD DE
|
dead
|
not used, always the same
|
- TXMP links
- According to the swapcode table, the 20 links are in fact 4 groups:
- 6 (skybox, bottom one is never used)
- 8 (only first one is ever used (sun))
- 1 (never used)
- 5 (first one always lensflare02, other 4 never used)
- Issues with the sun
- After upscaling and positioning the sun, two bugs remain:
- the sun texture is rotated 90° counter-clockwise
- the sun isn't occluded by anything at all :(
- Planets
- Multiple planets work, but the occlusion issue is still there.
- Stars
- Stars are not placed the way plantes are.
- They are probably generated at random...
- 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)
All ONSK are identical apart from the sun stuff (see above) and the skybox textures.