Skip to content

Commit 07e9ff6

Browse files
committed
smaller fixes and blueprint update
1 parent 83226af commit 07e9ff6

File tree

5 files changed

+12
-23
lines changed

5 files changed

+12
-23
lines changed

README.md

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,34 +47,23 @@ I have a pen plotter, and one of my initial ideas was also to be able to plot my
4747

4848
Another way to create plots from your factories is to use: https://github.com/drawscape-labs/factorio-cli.
4949

50-
### verilog2factorio
50+
### Factorio Tools to create blueprints
5151

52-
It's possible to use https://github.com/redcrafter/verilog2factorio to create factorio verilog blueprints and visualize the buildings and wire connections like this.
53-
54-
<p align="center">
55-
<img src="example_svgs/example_19.svg" width="20%" style="padding: 1% 1% 1% 1%;">
56-
</p>
52+
- [Factorio SAT](https://github.com/R-O-C-K-E-T/Factorio-SAT) - Create optimal belt layouts with a SAT solver
53+
- [Factorio Verilog](https://github.com/redcrafter/verilog2factorio) - Convert Verilog code to factorio blueprints
5754

5855
### Convert to PNGs
5956

6057
To easily convert all SVGs in a folder, you can use a terminal and Inkscape like this.
6158
```mkdir pngs; for f in *.svg; do inkscape -w 1000 "$f" -e "pngs/${f::-3}png"; done```
6259

63-
## Contribute
60+
## Development
6461

65-
```bash
66-
# install uv
67-
uv run ruff check --fix
68-
uv run ruff format
69-
```
62+
[uv](https://docs.astral.sh/uv/getting-started/installation/) is used for linting and formatting the python code with `uv run ruff check --fix` and `uv run ruff format`.
7063

71-
Contributions to this project are welcome. Feel free to report bugs or post ideas.
72-
73-
To update the python code for the website, you have to update the python wheel in the website folder. To update it, just run: ```python setup.py bdist_wheel --universal --dist-dir=website```
74-
75-
To update the installed version while developing you can use ```python setup.py bdist_wheel --universal --dist-dir=website && pip uninstall factorioBlueprintVisualizer -y && pip install website/factorioBlueprintVisualizer-1.1.0-py2.py3-none-any.whl```
64+
## Contribute
7665

77-
If you use an external api on localhost (e.g. for getting the blueprint from factorio.school) you need to disable CORS. To start Chrome on Ubuntu with CORS disable you can use ```google-chrome --disable-web-security --user-data-dir=temp http://0.0.0.0:8000/```.
66+
Contributions to this project are welcome. Feel free to report bugs or post ideas.
7867

7968
## Statistics
8069

drawingSettings.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ const EXAMPLE_SETTINGS = [
1616
["bbox", {'fill': '#b2dbbf', 'allow': ["asteroid-collector", "thruster"]}],
1717
["bbox", {'fill': '#b2dbbf', 'allow': ["space-platform-hub"], "scale": 0.95}],
1818

19-
["rails", {'stroke': '#c84c09'}],
20-
["heat-pipes", {'stroke': '#c84c09'}],
21-
["power-lines", {'stroke': '#f3ffbd'}],
19+
["rails", {'stroke': '#b2dbbf'}],
20+
["heat-pipes", {'stroke': '#b2dbbf'}],
2221

2322
]
2423

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@
358358

359359
<div class="header-links">
360360
<a href="https://github.com/piebro/factorio-blueprint-visualizer?ref=piebro.github.io/factorio-blueprint-visualizer">About</a>
361+
<a href="https://github.com/piebro/factorio-blueprint-visualizer/blob/master/draw_setting_documentation.md?ref=piebro.github.io/factorio-blueprint-visualizer">How to use</a>
361362
<a href="https://piebro.github.io?ref=piebro.github.io/factorio-blueprint-visualizer">Other Projects</a>
362363
</div>
363364

startExampleBlueprintString.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test_blueprints/test_blueprint_book.txt

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)