Mapshot

by palats

Generates a zoomable render of the whole map.

Utilities
23 days ago
1.0 - 1.1
3.61K

b crash

3 years ago

hi i crash when i try to create the mapshot http://prntscr.com/v523no

3 years ago

Hello - do you know to which value you might have set tilemin or tilemax ? (if overriden, they are visible in settings/Mod settings/Per player)

3 years ago

Thanks for the screenshots, that's quite helpful. It seems I was a bit optimistic for the allowed values for "Largest tile size" (tilemax). Long story short, use 1024 at most for "Largest tile size". This is a limitation of what Factorio rendering engines allows to render at once.

For the details: zoom is calculated as rendersize / 32 / tilesize. So, with tilesize = 2048 (and rendersize = 1024), that gives us a zoom of 0.015625, which is smaller to 0.031250 (which corresponds to tilesize=1024)

For searchability: error message was "Error while running command "mapshot": Zoom has to be greater than or equal to 0.031250".

3 years ago

ok thank

3 years ago

Fwiw, I've fixed the parameter range to prevent the issue and added some logic to detect the problem (instead of miserably crashing that is).

New response