Skip to main content

Drawscape Factorio

Project description

image

Drawing a Factorio Base with a Pen Plotter

CLI written in Python to create SVG images from Factorio base data that you can then draw on a pen plotter.

Demo

In case you are wondering what pen plotting is, checkout this video: Pen Plotting Video Demo

Installation

Clone this repository and then run:

pip3 install -e .

Exporting Map Data out of Factorio

Currently using a Factorio MOD called FUE5-Exporter to export all entites on a map in JSON format.

https://github.com/FUE5BASE/FUE5-Exporter

  1. Install the MOD via the Factorio GUI. Search for FUE5
  2. Use MOD to "select" area of the map you want to export. Try to "frame" your seletion to only export the area you want to render.
  3. Find the exported-entities.json file inside your Factorio Application Data
  • For OS X Steam install (~/Library/Application Support/factorio/script-output)
  • Maybe here as well (%APPDATA%/Factorio/script-output)
  1. Copy/Paste they JSON file somewhere else so you can work with it. It will get overwritten if you leave it there.

Usage

drawscape-factorio create --json exported-entities.json
  • --optimize will run vpype commands to prepare the SVG for efficient pen plotting. This will not work unless you already have vpype installed via the command line. https://github.com/abey79/vpype

Themes

Goal being more themes can be implimented that will uniquely render each of the Entity Types. Most likely each theme will be dedicated to a specific pen type and paper size.

Notes

  • I've only tested this on a Mac (OSX)
  • For some reason the FUE5-Exporter mod isn't exporting roads.

Examples

https://github.com/user-attachments/assets/7775d327-aca9-47a2-a217-86d0da47bf09
IMG_6588 IMG_6620
IMG_6635 IMG_6576
IMG_6635 IMG_6635

Distribution

PyPi API saved in ~/.pypirc for auto-atuh

Increment version number each distribution

rm -rf dist/*
python setup.py sdist bdist_wheel
twine upload dist/*0.14*

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

drawscape_factorio-0.15.1.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

drawscape_factorio-0.15.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file drawscape_factorio-0.15.1.tar.gz.

File metadata

  • Download URL: drawscape_factorio-0.15.1.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for drawscape_factorio-0.15.1.tar.gz
Algorithm Hash digest
SHA256 ac85e8c5f3a5efcf0e7120c7b7991155b84c0c855ddc9c7e408585c99fe3625d
MD5 62f798bd6c049c431bbf60fe4862ac69
BLAKE2b-256 6d43dbf582e5d8187a44dfe712d2da4c455900e93f538e19dc2eee6ce04aed41

See more details on using hashes here.

File details

Details for the file drawscape_factorio-0.15.1-py3-none-any.whl.

File metadata

File hashes

Hashes for drawscape_factorio-0.15.1-py3-none-any.whl
Algorithm Hash digest
SHA256 12dcf7d31aa0f2c7f7a3647781acae06e5ed7fe10051814f884547400348a348
MD5 2be0447e0d6ef0be6926ac4ee1e7cd36
BLAKE2b-256 1e2b5709764f8a1d45d8d98e5838c1a7a00af973cf4fe462e4fce7f700aa2148

See more details on using hashes here.

Supported by

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