factorio-draftsman
A complete, well-tested, and up-to-date module to manipulate Factorio blueprint strings. Compatible with mods. (by redruin1)
factoriogen
Generate Factorio combinators from code (by Jobarion)
factorio-draftsman | factoriogen | |
---|---|---|
5 | 5 | |
88 | 18 | |
- | - | |
6.3 | 4.2 | |
13 days ago | about 1 year ago | |
Python | Java | |
MIT License | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
factorio-draftsman
Posts with mentions or reviews of factorio-draftsman.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-09-20.
-
Blueprint JSON schema?
I made a library in Python called factorio-draftsman that works with blueprint strings which is pretty much entirely up to date and has all the data encoded in it, though quite not in a user-friendly JSON dump. I did end up manually making type-hinted dumps for all the Blueprintable types (Blueprint, BlueprintBook, UpgradePlanner, DeconstructionPlanner) though; so if that's sufficient you should be able to reliably use those. If you're looking for entity-specific schemas though, I haven't got around to doing all of them yet. Most of them are pretty straightforward however; position, orientation, filters, etc. The only complications you get into are stuff like control_behavior which has many different unique keys for many different entity types (you can take a look at the signatures.py file in draftsman's source for an impression). I can go more into that if you want, but I agree that this should really be documented/updated.
- Question for a blueprint generator
-
Generating an optimized layout of train based blocks using simulated annealing
Finally, once the layout is generated, a blueprint string is created using u/redruin0001's Factorio Draftsman program. If you missed the Alt-F4 about this back in May 2022, I highly recommend checking it out. Factorio Draftsman is an extremely powerful tool for programmatically generating blueprint strings. In this instance, it is used to stitch together tens to hundreds of factory block blueprints together into a single one. This final blueprint can then be imported and placed in Factorio.
-
Alt-F4 #61 - Draftsman: A Python module for creating blueprints
This was something I made on a whim. It uses the Pillow image library to load an image, and converts it to a blueprint intended to be visible from the map view, all in less than 150 lines of code:
factoriogen
Posts with mentions or reviews of factoriogen.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-12.
- Is there a website that help you design circuits in factorio ?
-
Alt-F4 #61 - Draftsman: A Python module for creating blueprints
This concept is not new, at all. Even a cursory search will turn up numerous examples of this used in practice: factorio-blueprint NPM module by demipixel, justarandomgeek’s compiler for his massive combinator computer, a generic combinator instruction language by Jobarion, image-to-blueprint converters, etc. The list is extensive.
-
Introducing CombinatorC - a Factorio Circuit Compiler
Also, shout out to Factoriogen, this is a really cool project that is somewhat similar to CombinatorC, go check it out!
-
Factorio Combinator Compiler v0.1
The code is pretty ugly right now, but there is a comment that more or less explains how loops work. I have no idea if it makes any sense for anyone but me, but I tried my best. https://github.com/Jobarion/factoriogen/blob/master/src/main/java/me/joba/factorio/lang/Generator.java#L124
Right now this is all very ugly (sorry), but I'll clean it up eventually. https://github.com/Jobarion/factoriogen/
What are some alternatives?
When comparing factorio-draftsman and factoriogen you can also consider the following projects:
factorio-blueprint - Import and Export blueprint strings automagically with this handy dandy blueprint API
CombinatorC - A C-style programming language for expressing practical Factorio circuits that compiles into Factorio combinator blueprints
factorio-data - Tracks changes of the lua prototype definitions in factorio inbetween releases.
Artorio - Artorio - convert image to factorio blueprint format
factorio-movie-maker - Fork of the original factorio-movie-maker, updated to version 1.1.57
factorio-computer - A computer built in vanilla Factorio
10-Books-Full-of-Rails - Factorio Prints Link:
factorio-computer
factorio-draftsman vs factorio-blueprint
factoriogen vs CombinatorC
factorio-draftsman vs factorio-data
factoriogen vs Artorio
factorio-draftsman vs Artorio
factoriogen vs factorio-blueprint
factorio-draftsman vs factorio-movie-maker
factoriogen vs factorio-computer
factorio-draftsman vs 10-Books-Full-of-Rails
factoriogen vs factorio-computer
factorio-draftsman vs factorio-computer
factoriogen vs factorio-movie-maker