Barathor
Emperor
- Joined
- May 7, 2011
- Messages
- 1,202
Anybody know or have a pretty good guess on how to obtain the biome (Lush, Fungal, or Arid) selected by users during map generation?
I've been searching through the code for any examples or clues and have only come across a few things. They seem to be referred to as "planets" instead of what they're usually called, "biomes".
XML: There's a table called "Planets" with info for each. (So GameInfo.Planets() is used to access row information)
Lua: AdvancedSetup.lua line 509 is part of the "Map Terrain" option.
Using the PreGame type, it utilizes these methods:
PreGame.SetPlanet( id )
PreGame.GetPlanet()
Since we can't view the source code, I just tested out some random functions with print commands to see if I get any results and none of these worked so far:
Game.GetPlanet()
Map.GetPlanet()
PreGame.GetPlanet()
Game.GetPlanetType()
Map.GetPlanetType()
I was hoping to simply get an integer value returned of the selected biome's ID.
- - - - - - - - - -
Or, is there a way to find out which option was chosen by the user for these first five non-custom settings?
Similar to how Map.GetCustomOption(#) is used to obtain the number of the option chosen for custom setting #.
I've been searching through the code for any examples or clues and have only come across a few things. They seem to be referred to as "planets" instead of what they're usually called, "biomes".
XML: There's a table called "Planets" with info for each. (So GameInfo.Planets() is used to access row information)
Lua: AdvancedSetup.lua line 509 is part of the "Map Terrain" option.
Using the PreGame type, it utilizes these methods:
PreGame.SetPlanet( id )
PreGame.GetPlanet()
Since we can't view the source code, I just tested out some random functions with print commands to see if I get any results and none of these worked so far:
Game.GetPlanet()
Map.GetPlanet()
PreGame.GetPlanet()
Game.GetPlanetType()
Map.GetPlanetType()
I was hoping to simply get an integer value returned of the selected biome's ID.
- - - - - - - - - -
Or, is there a way to find out which option was chosen by the user for these first five non-custom settings?
Similar to how Map.GetCustomOption(#) is used to obtain the number of the option chosen for custom setting #.