Factorio Map Converter - Refactorio/RedMew GitHub Wiki
To create your own map from an image first convert the image file into a lua file (For example image_data.lua
).
Then use our scenario to load the image_data.lua
file and generate the map from it.
To create your own map preview:
- Download the Map Converter here to generate the
image_data.lua
. - Place your
image_data.lua
file in themap_gen/data/presets/
directory. - Create new lua file (for example
my_image.lua
) inside the foldermap_gen/maps/
. This file is used to configure your map (scale, translate etc.). To do this, you can copymap_gen/maps/template.lua
and replace line 8 to point to yourimage_data.lua
- Load your new preset by changing
map_selection.lua
. This should look similar to this:return require 'map_gen.maps.new_map'
- Load the scenario from the scenario menu.