Map preview

Place to get help with not working mods / modding interface.
Post Reply
ness056
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sun Jul 24, 2022 3:47 pm
Contact:

Map preview

Post by ness056 »

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!

Bilka
Factorio Staff
Factorio Staff
Posts: 3155
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Map preview

Post by Bilka »

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
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Modding help”