XML:ONSK: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (new link to motoko_dx11.zip)
m (clarifying that there's no bottom in the skybox TXMP)
 
(3 intermediate revisions by the same user 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|200px|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 AE/AEInstaller/vanilla/level0_Final.dat)  
* 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. Image order:
| Holds 6 <Link> tags, but the 6th tag isn't used. Image order:
: top
: top
: left
: left
Line 40: Line 31:
: back
: back
: (no) bottom
: (no) bottom
To put it short: of the sky box file, only <SkyboxTextures> and its 5 active links are of actual use, hopefully soon this includes also the <SunFlare> tag.
To make a long story short, nothing in the resource after this tag is used.
|-
|-
| <Link>
| <Link>
Line 48: 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 60: Line 51:
| <Stars>
| <Stars>
| -  
| -  
| Holds 5 <Link> tags.
| Holds 5 <Link> tags
|-
|-
| <Link>
| <Link>
Line 68: 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 98: Line 89:
| <Float>
| <Float>
| float
| float
| elevation in radians
| Elevation in radians
|-
|-
| <PlanetAzimuths>
| <PlanetAzimuths>
Line 106: Line 97:
| <Float>
| <Float>
| float
| float
| azimuth in radians
| Azimuth in radians
|-
|-
| <SunFlareSize>
| <SunFlareSize>
Line 114: 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 126: 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.


===future fixes?===
Here's 2 examples of the bug showing up and not showing up:
Hopefully we will have a public release of the skybox fixes one day.
  Skybox bug  Operating system        Main board  Processor               Graphics card
 
The sky box bug doesn't seem to be visible on all daodanized (WIN) Oni installations.
 
2 examples:
  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
  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 Graspics Family (Revision 9)
  no          Windows 7 Home Premium  - (laptop)  Intel Core i5 2467M      Intel HD Graphics Family (Revision 9)
 
 
====beta====
[[Image:ONSK_fixes_Motoko_plugin.jpg|thumb|200px|right|Plugin fixes the skybox borders and sun's visibility.]]
Actually there are no versions yet.
 
For now version = change date.


===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'''
'''Change date 15.07.2014'''
* [https://www.dropbox.com/s/mth3atqdgllbnlp/motoko_dx11.zip?dl=0 motoko_dx11.zip]
* [http://mods.oni2.net/node/380 motoko_dx11.zip]
:: The zip contains also the original Oni.exe and binkw32.dll in case you don't have it anymore.
:: The ZIP contains also the Oni.exe and binkw32.dll to use in tandem with it.
 


Known issues:
Known issues:
* doesn't work with the daodan (binkw32.dll)
* Doesn't work with the Daodan DLL
* problems with lensflares
* Problems with lensflares
* problems with sorting transparencies
* Problems with sorting transparencies
 


{{XML}}
{{XML}}

Latest revision as of 14:27, 17 October 2021

ONSK : Oni Sky Class
XML modding tips
  • See HERE to start learning about XML modding.
  • See HERE if you are searching for information on how to handle object coordinates.
  • See HERE for some typical modding errors and their causes.
XML.png
XML

ONLV << Other file types >> ONVL

switch to OBD page

General information

Skybox "ONSKafternoon".
  • The XML on this page is based on OniSplit v0.9.61.0.
  • ONSK*.oni files are global (they can be found in AE/AEInstaller/vanilla/level0_Final.dat).
  • 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:
    • afternoon (level 1)
    • sunset (level 2 and 3)
    • crapsky (level 19)
    • night (all the other levels except level 13, which has no ONSK)

Tags

XML tag Content type Description
<ONSK id="..."> integer Instance ID
<SkyboxTextures> - Holds 6 <Link> tags, but the 6th tag isn't used. Image order:
top
left
right
front
back
(no) bottom

To make a long story short, nothing in the resource after this tag is used.

<Link> link TXMPfile_name.oni (file suffix .oni not used)
<Planets> - 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 TXMPfile_name.oni (file suffix .oni not used)
<SunFlare> link TXMPfile_name.oni (file suffix .oni not used)
<Stars> - Holds 5 <Link> tags
<Link> link TXMPfile_name.oni (file suffix .oni not used)
<PlanetCount> integer Number of used planets
<NoSunFlare> 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.
-1 (off)
0 (on)
<PlanetWidths> -
<Float> float
<PlanetHeights> -
<Float> float
<PlanetElevations> -
<Float> float Elevation in radians
<PlanetAzimuths> -
<Float> float Azimuth in radians
<SunFlareSize> float
<SunFlareIntensity> float 1.0 = 100%?
<StarCount> 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.
<RandomSeed> integer Random seed for star generation.
<Offset_00F0> integer 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

Neo's plugin fixes the skybox borders and sun's visibility.

Change date 15.07.2014

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