- Factorio map viewer generator#
- Factorio map viewer mod#
- Factorio map viewer code#
- Factorio map viewer free#
- Factorio map viewer windows#
To compress the data a little I use a scheme where every tile-letter is followed by how many tiles there are of this type of that row. The algorithm uses reference colors, and checks which one is closer to encode the types.
Factorio map viewer generator#
The generator simply iterates over each pixel, and assigns a tile-type to it. These files are generated based on images.Ĭurrently I'm using the "Natural Earth II with Shaded Relief, Water, and Drainages" image from Natural Earth.
Factorio map viewer mod#
The mod reads lua files generated by a converter writen in Python. * Convert to Factorio v0.18 Generating your own maps
This means your game will hang for a while when starting a map. Note that it can take a long time to load all the required data. This mod is an updated version of The Oddler's 'factorio world': Note that it only changes the terrain, and not the spawning of trees and resources.
Factorio map viewer free#
If anything goes wrong, feel free to drop a comment and I'll see if I can help.A mod for factorio that changes the map into a map of Earth. I made a previews folder under my Factorio directory in steam, put my custom map-gen-setting and map-settings JSONs in there with this script, and told it to create previews there, just so everything was in one place. You should be able to put it wherever you want. %factorio% -create "%AppData%\Factorio\saves\Seed_%mapgenseed%" -map-gen-settings %mapgensettings% -map-settings %mapsettings% -map-gen-seed=%mapgenseed%Įcho Created "%AppData%\Factorio\saves\Seed_%mapgenseed%" %factorio% -generate-map-preview %mapname% -map-gen-settings %mapgensettings% -map-settings %mapsettings% -map-preview-size=%mappreviewsize% -map-preview-scale=%mappreviewscale% -map-gen-seed=%mapgenseed%Įcho Generated %numpreviews% map preview(s), output into %mapnamedir% Set mapname="%mapnamedir%SEED-%mapgenseed%_size-%mappreviewsize%_scale-%mappreviewscale%.png" Otherwise, that's all of the settings.įor /l %%i in (1,1,%numpreviews%) do call :generate_preview %%i REM if you need to change where the generated map is saved, you can edit it in the generate_map function below. REM the number at the end will be used as a seed and it will not generate any previews
REM when you find a seed you like and would like to generate the map, just turn this call on (remove the REM)
Factorio map viewer windows#
REM If it matters to you, this is actually 1 below the starting seed that the command will use, because windows batch language sucks and I'm tired of writing it u/Dreadnougat recommends using a number over 1000 Set mapsettings="C:\Program Files (x86)\Steam\SteamApps\common\Factorio\data\" REM This should point to your map-settings.json. Set mapgensettings="C:\Program Files (x86)\Steam\SteamApps\common\Factorio\data\" REM This should point to your map-gen-settings.json. REM This is the directory where you want to store the preview images. Set factorio="C:\Program Files (x86)\Steam\SteamApps\common\Factorio\bin\圆4\factorio.exe" This script is not smart enough to stop running if the generation fails from a syntax error, so you'll get 20 error messages if you generate 20 previews. REM I recommend generating 1 test preview before turning up the number to generate. REM Credit goes to /u/Dreadnougat for the original google doc that created the generate preview command. REM why are comments done with rem in this language Instructions are written in the comments off After you find a seed you like, there is a "call :generate_map" command that you can uncomment and plug the seed into. bat with notepad++ or any other text editor). The fields are populated with default values from the google doc, let me know if they don't work.
Factorio map viewer code#
As with any code given to you by a stranger on the internet, you should read through it and make sure it's not suspicious. I thought I'd share it in case anybody else would like to use it.
I took what his google doc was doing and crudely stuffed it into a windows batch file. Most of the credit goes to /u/Dreadnougat, as this is based off of his tool to rapidly generate map previews.