Factorio Exporter
A Rust library to export prototype definitions from Factorio.
This is both a library as well as a command line tool to export prototype definitions from Factorio.
Example invocation
{
{
}
{
}
}
Command line
>> factorio_exporter
<FACTORIO_DIR> Directory
Library
See factorio_exporter.rs for how to use the crate as a library.
Status
This is still very much in the prototype phase. The output will be incomplete and have bugs. Please try it out anyway and report any issues that you run into!
Design
The goal of the importer is to be as close as possible to the authoritative definition of the prototypes. It tries to achieve that goal by two design decisions:
-
The prototypes are exported from a running Factorio instance in the runtime stage. This means that the prototypes are as close as possible to how they are used in the game.
-
The list of exported properties is taken from the official definition.
Another consequence of this design is that it will be possible to export the prototypes of loaded mods. This isn't implemented, yet, however.
Contributing
Contributions are welcome! Feel free to send pull request, but if you want to make large-scale changes it would make sense to discuss them first.