Skip to main content

A Terraria world map creator

Project description

flyingsnake

Generate Terraria world maps with this easy to use command line utility!

A world map

Requirements

To use flyingsnake, you need Python 3.7 or higher installed on your machine.

Installing

flyingsnake is available on PyPI, so you can download it through pip.

Just enter this in your terminal:

pip install flyingsnake

Usage

To create a basic world map named Output.png from the Small_Example.wld file present in your current working directory, run in your terminal:

python3.7 -m flyingsnake Small_Example.wld Output.png

Layers

The world map is generated by merging together multiple layers that can be enabled/disabled through flags.

In order, those are:

  • Background
  • Walls
  • Liquids
  • Blocks
  • Wires

Background

The background layer is made by coloring the Overworld, the Underground and the Caverns their respective background color.

It can be turned off with the --no-background flag.

The background layer

Walls

The walls layer contains the colors of the walls present in the world.

It can be turned off with the --no-walls flag.

The wall layer

Liquids

The liquids layer contains the colors of the liquids present in the world (water, lava, honey...)

It can be turned off with the --no-liquids flag.

The liquids layer

Blocks

The blocks layer contains the colors of the blocks present in the world.

It can be turned off with the --no-blocks flag.

The blocks layer

Wires

The wires layer is a semi-transparent overlay of the wires present in the world.

It can be turned off with the --no-wires flag.

The wires layer

Custom colors

Different colors can be specified by passing the --colors file.json option to the command.

You can see an example color file here; the colors are in RGBA format, and go from 0 to 255.

If no custom colors are passed, the script will use the default TEdit colors (defined in settings.xml).

License

flyingsnake is licensed under the AGPL 3.0. That means you have to publish under the same license the source code of any program you create that uses flyingsnake.

See also

  • lihzahrd, the package used to make this generator.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flyingsnake-1.0b2.tar.gz (12.0 kB view hashes)

Uploaded Source

Built Distribution

flyingsnake-1.0b2-py3-none-any.whl (23.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page