NoMansSky:Reference Guides/AsteroidGeneration

From Step Mods | Change The Game
< NoMansSky:Reference Guides
Revision as of 05:02, August 7, 2022 by TechAngel85 (talk | contribs) (Created page with "{{PageTitle|logo=nomanssky|title=Asteroid Generation|subtitle=All about space rocks!}} {{NMSPage}}{{TOC}} == Introduction == Yay! Space balls! == Properties == All of the pro...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Nomanssky flare.png

Asteroid Generation

All about space rocks!

Introduction[edit | edit source]

Yay! Space balls!

Properties[edit | edit source]

All of the properties for asteroid generation are contained with the GCSOLARGENERATIONGLOBALS.GLOBAL file.

PlanetInvalidAsteroidZone
The distance around planets that no asteroids will spawn.
AsteroidsEnabled
Enables or disables the asteroid generation altogether.
True = generate asteroids
SparseAsteroidSpread
"Sparse Asteroids" are the asteroids floating out in space not connected to any asteroid fields. This determines how sparse they will be.
Lower values = more sparse
LargeAsteroidFadeTime
The time it takes the large asteroids to fade from view.

AsteroidSettings[edit | edit source]

Within the AsteroidSettings container are sub-containers for each of the asteroid types, which hold all the settings for the generation of that specific asteroid type. Since each of these are identical besides a change in type, only the Common asteroids will be covered. What is learned here can be applied to the other sub-containers.

Code[edit | edit source]

  <Property name="AsteroidSettings">
    <Property value="GcAsteroidSystemGenerationData.xml">
      <Property name="CommonAsteroidData" value="GcAsteroidGenerationData.xml">
        <Property name="Scale" value="0.28" />
        <Property name="ScaleVariance" value="Vector2f.xml">
          <Property name="x" value="0.25" />
          <Property name="y" value="1.6" />
        </Property>
        <Property name="Health" value="1000" />
        <Property name="Spacing" value="645" />
        <Property name="NoiseRange" value="Vector2f.xml">
          <Property name="x" value="0.78" />
          <Property name="y" value="0.92" />
        </Property>
        <Property name="FadeRange" value="9000" />
        <Property name="NoiseScale" value="50000" />
      </Property>