factorio-prints
factorio-prints copied to clipboard
Any chance to automatically generate screenshots from blueprint string?
At least Vanilla 0.17 would be useful. I see the website already do have some limited parsing abilities, and do know counts, types and locations of things. But renderer (either serverside to generate an image) or client side, would be useful.
Yes, I've been experimenting with https://github.com/demodude4u/Factorio-FBSR and I can see that it will work. There are a few things that make it difficult to get running.
It's set up to run on a windows machine that has Factorio installed. It will take some refactoring to get it to work from a serialized data dump rather than installed Factorio.
It's set up to use local files on disk. It will take some work to get those files into a CDN. It's too expensive to render them on the fly.
On Sun, Nov 24, 2019 at 11:56 AM Witold Baryluk [email protected] wrote:
At least Vanilla 0.17 would be useful. I see the website already do have some limited parsing abilities, and do know counts, types and locations of things. But renderer (either serverside to generate an image) or client side, would be useful.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/FactorioBlueprints/factorio-prints/issues/151?email_source=notifications&email_token=AF24KXOF3DL7Y3UMVFWBYKLQVKW2NA5CNFSM4JQ76VUKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H3UOTCQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF24KXOEJDR7C474HUFCYW3QVKW2NANCNFSM4JQ76VUA .
Take a look at https://teoxoy.github.io/factorio-blueprint-editor/ aka https://github.com/Teoxoy/factorio-blueprint-editor/ , it might be possible to refactor (remove the editor part, and just use the renderer) slightly to be able to handle most of the vanilla blueprints on client side and render them into PNG on client side.
That's what i did for https://www.fuelforfactorio.com. I reused the code from https://teoxoy.github.io/factorio-blueprint-editor/ to get a set of sprites to render, then render it on the fly in the client browser.
https://teoxoy.github.io/factorio-blueprint-editor/ -> https://fbe.teoxoy.com/