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:

  1. Download the Map Converter here to generate the image_data.lua.
  2. Place your image_data.lua file in the map_gen/data/presets/ directory.
  3. Create new lua file (for example my_image.lua) inside the folder map_gen/maps/. This file is used to configure your map (scale, translate etc.). To do this, you can copy map_gen/maps/template.lua and replace line 8 to point to your image_data.lua
  4. Load your new preset by changing map_selection.lua. This should look similar to this:
    return require 'map_gen.maps.new_map'
    
  5. Load the scenario from the scenario menu.