XML:ONSK: Difference between revisions

From OniGalore
Jump to navigation Jump to search
mNo edit summary
m (wording)
Line 33: Line 33:
|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. 6th tag isn't used. Image order:
: Image order: top, left, right, front, back, (no) bottom.
: top
: left
: right
: front
: back
: (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.
|-
|-
| <Link>
| <Link>

Revision as of 16:47, 19 November 2013

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 code 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)
  • The skybox is just a cube drawn using the skybox textures. The bottom face of the cube is never used/drawn.
  • 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
<?xml version="1.0" encoding="utf-8"?> float, flag Don't change this.
<Oni> -
<ONSK id="..."> integer instance id
<SkyboxTextures> - Holds 6 <Link> tags. 6th tag isn't used. Image order:
top
left
right
front
back
(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.

<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 there is a bug and they're no 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


future fixes?

Hopefully we will have a public release of the skybox fixes one day.

Plugin fixes the skybox borders and sun's visibility.