Sid Meier's Civilization: Beyond Earth

Sid Meier's Civilization: Beyond Earth

Not enough ratings
Planet Simulator
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
28.684 KB
Nov 23, 2014 @ 1:28am
Nov 27, 2014 @ 1:21pm
3 Change Notes ( view )

Subscribe to download
Planet Simulator

Description
Synopsis
Planet Simulator is a highly configurable map script built on the foundation of cephalo's Perfect World 3. It intends to model most major planet-forming and climate-controlling systems and leverage the data from those models to generate maps. The user-configurable variables, found near the top of the script, also allow great flexibility in the type of maps produced, while attempting to maintain a format that's simple enough for anyone to jump in and understand what each variable does with little to no learning curve.

-------------------------------------------------------------------------------------------

Recommended Installation
Extract the script to your \Users\*user_name*\Documents\My Games\Sid Meier's Civilization Beyond Earth\Maps\ directory. Then deactivate the mod in the mod browser.

This allows the map script to be run with or without mods and in multiplayer (untested). It also prevents the mod manager from overwriting your personal configuration should you choose to install the mod through Steam.

-------------------------------------------------------------------------------------------

Configuration
Near the top of the script you should find a "main constants" section. Almost all of these are configurable by you the end user (unless explicitly noted in the script) and you should find most of them decently commented. I plan to revise, flesh out and add a bit more commentary for much of this in a future release.

-------------------------------------------------------------------------------------------

Change Log:
(silent) version 2a:
  • Fixed an issue with the Pangaea preset causing the map to crash while spawning.

Version 2:
  • Fixed a graphical issue where rivers would often continue a tile or three into ocean instead of terminating at the coastline.
  • Implemented Canyons at "Rfit" zones determined by the Tectonic simulation.
  • Restructured the PlateMap Class and implemented a Plate Class which combined clean up the code quite a bit and provide additional functionality.
  • Implemented a new iterative method for determining which plates should be Continental Shelf; Plates with a large presence in the polar regions should be land much less often.
  • Resized the maps and tweaked the latitude markers to at least come close to hitting a proper ratio to represent Width vs. Height = Latitude Limits.
  • Implemented Subduction zones and a coastal land scalar to get mountains off of the coasts (and islands) and onto where our Tectonic simulation actually says they should be (i.e.: the Collision and Subduction zones).
  • Reworked the Plate Speed scalar to use a gradient (as opposed to direct mathematical calculations producing weird results when our plate speeds were not distributed normally.)
  • Replaced the "curve flattening" formula used to smooth our elevation map with a new algorithm that produces more consistent results.

27 Comments
Bobert13  [author] Oct 1, 2015 @ 3:38pm 
Not really sure what you're asking for... You want all of the settings in the script to have in-game slider controls during game setup? That might be doable but it would most likely be a mess. Editting the settings in the script may not be the most convenient approach but it's not any more difficult than say editting a .ini file. Beyond that, I haven't really done any development on this in quite some time and I have practically no interest in returning to Civ:BE so I may never update this script.

Any authors out there who are willing to jump in and get there hands dirty are welcome to try. I'll even do what I can to help anyone experienced with Lua to wrap their minds around the script and how it functions.
ViroCMN Sep 28, 2015 @ 4:47am 
I did test this... its all pure code with not GUI so no thanks ... I want a min max par GUI world builder ... :/
ViroCMN Sep 28, 2015 @ 2:43am 
Map generators tend to be extreamly untable and there are not many out there, I hope this one works better than the others
Bobert13  [author] Nov 27, 2014 @ 1:24pm 
I've uploaded v2(a) with a hotfix for Pangaea style maps. They should now be spawning properly.

Unfortunately, updating a file on Steam overwrites the file's current description...
Bobert13  [author] Nov 27, 2014 @ 10:41am 
*facepalm*

"0 plates flipped, in 10 iterations, to make 0.00% of the map pangeal shelf. - (Planet Simulator)" <-- there's your problem.

I bet it's reproducible too.
PhailRaptor Nov 27, 2014 @ 3:33am 
Saw BLAde's comment and realized that I had not tried Continents at all, only Pangea. After running the Pangea that produced the log below, I ran a Continents and it did not crash. Will play through a Continents tomorrow to confirm, but it appears the problem is specific to Pangea.
PhailRaptor Nov 27, 2014 @ 3:32am 
Map Script: Random seed for this 92x66 Pangaea map is 809756049 - (Planet Simulator)
0 plates flipped, in 10 iterations, to make 0.00% of the map pangeal shelf. - (Planet Simulator)
Generating Elevations - (Planet Simulator)
Generating plot types - (Planet Simulator)
Setting coasts and oceans (MapGenerator.Lua)
Expanding coasts (MapGenerator.Lua)
Generating terrain - (Planet Simulator)
Siltified Lakes in 0.000000 seconds over 0 iterations. - (Planet Simulator)
Map Script: ###WARNING### - Lake at {91,64} south has no valid neighbor
Runtime Error: \Planet Simulator_v2.lua:1418: can't get junction neighbor in direction NOFLOW
stack traceback:
[C]: in function 'error'
\Planet Simulator_v2.lua:1418: in function 'RiverMap:GetJunctionNeighbor'
\Planet Simulator_v2.lua:1847: in function 'RiverMap:PathLakesToWater'
\Planet Simulator_v2.lua:3979: in function 'AddRivers'
Assets\Gameplay\Lua\MapGenerator.lua:510: in function 'GenerateMap'
[C]: in function '(anonymous)'
Bobert13  [author] Nov 27, 2014 @ 2:02am 
That would be a crash... Is this repeatable (or does it happen every time?)? Only with Pangaea? What OS are you using? Can you get me a log?
BLÀde Nov 27, 2014 @ 1:45am 
starting a game with this with Pangaea setting there was NO land my turn just kept ending endlessly and couldn't do anything. i had to ctrl alt delete out to close it.
Bobert13  [author] Nov 26, 2014 @ 10:21pm 
I've update the file with a version that gives some slightly more detailed printout information revolving around the PathLakesToWater() crash Windows 8.1 users are experiencing. If one of you guys could copy and paste your lua.log from the line where it states map size and random seed all the way through the first error's stack trace, I'd appreciate it.