New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cs-terrain-generator

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cs-terrain-generator

Generates random terrains for use in Cities: Skylines.

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

CS Terrain Generator

Generate random fractal terrains for use in the game Cities: Skylines. Requires NodeJS/io.js to be installed.

Install

npm install cs-terrain-generator -g

Usage

Simply run the executable to generate a PNG heightmap of the correct size.

cs-terrain-generator output.png

There are multiple options to customize the fractal generation, such as: smoothness, lower clip, and upper clip.

  • Smoothness -s: changes how "blurry" the final fractal looks. Lower values produce more discernable features. Must be between 0.0 and 1.0.
  • Lower clip -l: clips data below a certain height value, which creates flat areas on the map. Great for generating oceans, ponds, canyons, etc. Value must be between 0 and 255.
  • Upper clip -u: clips data above a certain height value, which helps to create plateaus. Value must be between 0 and 255.

Here's an example command that could create some oceans and plateaus:

cs-terrain-generator -s 0.5 -l 60 -u 60 output.png

Importing

For more information on importing heightmaps into Cities: Skylines, check out the Skylines Wiki.

Keywords

FAQs

Package last updated on 09 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc