how to generate a preview for a map string?

Place to share custom user maps, scenarios and campaigns.

how to generate a preview for a map string?

Postby Dixi » Thu Nov 30, 2017 1:39 pm

I can't find a way to generate a map preview picture for a string.

I dunno how to pass a map string in command line, so I launched Factorio normally, generated a new map with a map string, saved it, then tried to launch command line:

factorio --generate-map-preview map20.bmp --map-preview-size 3000 --load-game test20.zip

It does not work for me, even if I write full path to save game (C:\Games\Factorio\saves\test20.zip).
It always generate a new map and creates a preview of it.

There are a lot of strings around, and should be an easy way to see a map for a string, but I can't find it.

The only way to see a map I've found, is to open map editor, and generate a map with particular string. But map editor is quite slow in displaying big areas, so generating a bitmap is much better, and I think it should work some way.

Update:
It seems that map geography (sizes, forms and locations of lakes, forests, soil types) depends only on a map seed.
So preview can be generated from a command line. Another question that to get a seed from a map string I still need to launch Factorio GUI, and paste a string. As I got from wiki, it should not be so problematic to get the seed from a string, but one need a script for it, I suppose.
Last edited by Dixi on Thu Nov 30, 2017 7:21 pm, edited 1 time in total.
Dixi
Inserter
Inserter
 
Posts: 21
Joined: Sat Nov 04, 2017 1:47 pm

Re: how to generate a preview for a map string?

Postby Dixi » Thu Nov 30, 2017 6:29 pm

A little .lua program + a .cmd file can do that (had to write both myself), while I still think there should be a standard Factorio way to create an image from a map string, that I just did not found.
Dixi
Inserter
Inserter
 
Posts: 21
Joined: Sat Nov 04, 2017 1:47 pm

Re: how to generate a preview for a map string?

Postby Koub » Thu Nov 30, 2017 8:52 pm

Iirc, next version should come with something like this.
[Edit] There it is
Koub - Please consider English is not my native language.
Koub
Global Moderator
Global Moderator
 
Posts: 3473
Joined: Fri May 30, 2014 8:54 am
Location: France


Return to Maps and Scenarios

Who is online

Users browsing this forum: No registered users and 2 guests