Jump to content

XML:ONSK: Difference between revisions

939 bytes added ,  17 October 2021
m
clarifying that there's no bottom in the skybox TXMP
m (link exchange)
m (clarifying that there's no bottom in the skybox TXMP)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{XML_File_Header | type=ONSK | prev=ONLV | next=ONVL | name=Oni Sky Class }}
{{XML_File_Header | prev=ONLV | type=ONSK | next=ONVL | name=Oni Sky Class}}


===general information===
==General information==
[[Image:ONSKafternoon.png|thumb|300px|right|skybox ONSKafternoon]]
[[Image:ONSKafternoon.png|thumb|200px|right|Skybox "ONSKafternoon".]]
* The xml code on this page is based on onisplit '''v0.9.61.0'''
* The XML on this page is based on OniSplit '''v0.9.61.0'''.
* ONSK*.oni files are '''global'''. (They can be found in edition/GameDataFolder/'''level0_'''... )
* ONSK*.oni files are '''global''' (they can be found in AE/AEInstaller/vanilla/level0_Final.dat).
* The skybox is just a cube drawn using the skybox textures. The bottom face of the cube is never used/drawn.
* A skybox is basically a cube with a TXMP that has regions intended for each side – except that the there's no need for a bottom face to the cube since it will never be seen.
* There are 4 original ONSK files:
* There are 4 original ONSK files:
** afternoon (level 1)
** afternoon (level 1)
** sunset (level 2 and 3)
** sunset (level 2 and 3)
** 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)


 
==Tags==
===tags===
{| class="wikitable" width="100%"
{| class="wikitable" width="100%"
!width=150px| XML tag
!width=150px| XML tag
!width=120px| content type
!width=120px| Content type
! description
! Description
|-
| <?xml version="1.0" encoding="utf-8"?>
|valign=top| float, flag
|valign=top| Don't change this.
|-
| <Oni>
| -
|
|-
|-
| <ONSK id="...">
| <ONSK id="...">
| integer
| integer
| instance id
| Instance ID
|-
|-
|valign=top| <SkyboxTextures>
|valign=top| <SkyboxTextures>
|valign=top| -
|valign=top| -
| Holds 6 <Link> tags. 6th tag isn't used. To put it short: only this skybox part is useful.
| Holds 6 <Link> tags, but the 6th tag isn't used. Image order:
: Image order: top, left, right, front, back, (no) bottom.
: top
: left
: right
: front
: back
: (no) bottom
To make a long story short, nothing in the resource after this tag is used.
|-
|-
| <Link>
| <Link>
Line 42: Line 39:
|valign=top| <Planets>
|valign=top| <Planets>
|valign=top| -
|valign=top| -
| Holds 8 <Link> tags. The planets can be displayed using the specified textures, sizes and positions. Unfortunately there is a bug and they're no occluded by anything.
| Holds 8 <Link> tags. The planets can be displayed using the specified textures, sizes and positions. Unfortunately the code is unfinished and they're not occluded by anything.
|-
|-
| <Link>
| <Link>
Line 54: Line 51:
| <Stars>
| <Stars>
| -  
| -  
| Holds 5 <Link> tags.
| Holds 5 <Link> tags
|-
|-
| <Link>
| <Link>
Line 62: Line 59:
|valign=top| <PlanetCount>
|valign=top| <PlanetCount>
|valign=top| integer
|valign=top| integer
| Number of used planets.
| Number of used planets
|-
|-
|valign=top| <NoSunFlare>
|valign=top| <NoSunFlare>
|valign=top| integer
|valign=top| integer
| 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.
| 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.
: -1 (off)
: -1 (off)
: 0 (on)
: 0 (on)
Line 92: Line 89:
| <Float>
| <Float>
| float
| float
| elevation in radians
| Elevation in radians
|-
|-
| <PlanetAzimuths>
| <PlanetAzimuths>
Line 100: Line 97:
| <Float>
| <Float>
| float
| float
| azimuth in radians
| Azimuth in radians
|-
|-
| <SunFlareSize>
| <SunFlareSize>
Line 108: Line 105:
| <SunFlareIntensity>
| <SunFlareIntensity>
| float
| float
| 1.0 = 100% ?
| 1.0 = 100%?
|-
|-
| <StarCount>
| <StarCount>
| integer
| integer
| 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.  
| 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.
|-
|-
| <RandomSeed>
| <RandomSeed>
Line 120: Line 117:
| <Offset_00F0>
| <Offset_00F0>
| integer
| integer
| unknown
| Unknown
|}
|}


==Infamous bug==
In some Windows Oni installations, the edges of the skybox cube are visible as thin black lines. Hopefully we will have a public release of the skybox fixes one day.
Here's 2 examples of the bug showing up and not showing up:
Skybox bug  Operating system        Main board  Processor                Graphics card
yes          Windows 7 Home Premium  M5A99X EVO  AMD Phenom II X6 1055T  AMD Radeon HD 7970
no          Windows 7 Home Premium  - (laptop)  Intel Core i5 2467M      Intel HD Graphics Family (Revision 9)
===Beta fix===
[[Image:ONSK_fixes_Motoko_plugin.jpg|thumb|200px|right|Neo's plugin fixes the skybox borders and sun's visibility.]]
'''Change date 15.07.2014'''
* [http://mods.oni2.net/node/380 motoko_dx11.zip]
:: The ZIP contains also the Oni.exe and binkw32.dll to use in tandem with it.
Known issues:
* Doesn't work with the Daodan DLL
* Problems with lensflares
* Problems with sorting transparencies


{{XML}}
{{XML}}