Map preview
Map preview
Hello, i'm making a discord bot (it's not a mod but i haven't seen any place in this forum for that) that sends an image of a map with its seed. currently i use this shell command: "factorio\\bin\\x64\\factorio.exe --generate-map-preview=img\\image.png --map-gen-seed=<seed> --map-preview-scale=<scale>", but i wanna do the same thing but with an exchange string but i didn't find any command to do a map preview with an exchange string. Thank you in advance for your help and have a good day!
Re: Map preview
You can use the game to convert the map exchange string to json and then use that for the command line: https://wiki.factorio.com/Command_line_ ... m_settings
If you don't want to use the game to do the parsing of the map exchange string, you can implement it yourself. There is some outdated and possibly incomplete documentation of the format on the wiki: https://wiki.factorio.com/Map_exchange_string_format and here is an existing discord bot that works with exchange strings from 0.17 (which is newer than linked wiki page): https://github.com/Zulan/factorio-disco ... review-bot
If you don't want to use the game to do the parsing of the map exchange string, you can implement it yourself. There is some outdated and possibly incomplete documentation of the format on the wiki: https://wiki.factorio.com/Map_exchange_string_format and here is an existing discord bot that works with exchange strings from 0.17 (which is newer than linked wiki page): https://github.com/Zulan/factorio-disco ... review-bot
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.