NoMansSky:Reference Guides/GcPlanetData-RE: Difference between revisions

From Step Mods | Change The Game
m (Z929669 moved page NoMansSky:GcPlanetData-RE to NoMansSky:Reference Guides/GcPlanetData-RE over a redirect without leaving a redirect: revert)
m (Text replacement - "\[\[Category:NMS-Reference-.*\]\]" to "")
 
Line 1: Line 1:
{{PageTitle|logo=nomanssky|title=GcPlanetData-RE}}
{{PageTitle|logo=nomanssky|title=GcPlanetData-RE}}
{{NMSPage}}__NOTOC__[[Category:NMS-Reference-GameFile]]
{{NMSPage}}__NOTOC__
=== GcPlanetData-RE ===
=== GcPlanetData-RE ===
The GcPlanetData struct is written to memory mainly by a single function that is nested within a function that generates the solar system data. A few locations that are useful to look at (all de-based 1.38 GOG exe): 0x140F07460 - This function contains quite a few functions that write terrain data, minable materials, weather and various other properties. A few of it's arguments are:
The GcPlanetData struct is written to memory mainly by a single function that is nested within a function that generates the solar system data. A few locations that are useful to look at (all de-based 1.38 GOG exe): 0x140F07460 - This function contains quite a few functions that write terrain data, minable materials, weather and various other properties. A few of it's arguments are:

Latest revision as of 20:42, July 29, 2021

Nomanssky flare.png

GcPlanetData-RE

GcPlanetData-RE

The GcPlanetData struct is written to memory mainly by a single function that is nested within a function that generates the solar system data. A few locations that are useful to look at (all de-based 1.38 GOG exe): 0x140F07460 - This function contains quite a few functions that write terrain data, minable materials, weather and various other properties. A few of it's arguments are:

  • a2: The location in memory where the GcPlanetData struct will be written
  • a3: The section of memory after the GcPlanetData struct (ie. a2 +0x34F0)
  • a4: The 0x60 bytes of data before the GcPlanetData struct

As the GcPlanetData struct is mapped out for MBINCompiler, we will list the contents (if known) of both the pre and post-GcPlanetData sections.

Pre-GcPlanetData (0x60)

  • +0x58 - Index of planet in the system

Post-GcPlanetData(0x??)

  • +0x00 - Planet and voxelGen Seed
  • +0x10 - GalaxyStarType
  • +0x14 - PlanetClass