Drawscape Factorio
Project description
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
- Install the MOD via the Factorio GUI. Search for
FUE5 - 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.
- Find the
exported-entities.jsonfile inside your Factorio Application Data
- For OS X Steam install (
~/Library/Application Support/factorio/script-output) - Maybe here as well (
%APPDATA%/Factorio/script-output)
- 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
--optimizewill runvpypecommands to prepare the SVG for efficient pen plotting. This will not work unless you already havevpypeinstalled 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|
|
|
|
|
|
|
|
|
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file drawscape_factorio-0.1.6.tar.gz.
File metadata
- Download URL: drawscape_factorio-0.1.6.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36d8f97c8a838a39e790d2d8cd85369aac1c0938264068168ff59b363486c4ec
|
|
| MD5 |
252725973d53e55205afd36023510dc8
|
|
| BLAKE2b-256 |
dfdb1e2569452adeb17430ea691e8d6be776c6fb053767f875a97b2f6e88bcb0
|
File details
Details for the file drawscape_factorio-0.1.6-py3-none-any.whl.
File metadata
- Download URL: drawscape_factorio-0.1.6-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fa89e69bc51554327be6a08e5095f24ee8b337fd8130c93d287deb9d5aedcab
|
|
| MD5 |
f2c16582ea04ec0bd8fa83027ea5b512
|
|
| BLAKE2b-256 |
6e1dc02f11f0fe075d1f62a71323f18227a2feaf83e3c8f37683eaaee48c2b8c
|