Exactly, use DOPTION_BUILD_WEBSITE_TOOLS=ON?. You already found the correct executable; you can't run it on games though, only on maps.
Ah; I was expectin something in python, as I did infer from this old thread.
I am not sure what you mean with "The preview in game does neither occur in build 19 (binary from Arch Linux), nor in development build (r8807, built locallly on my machine)." If you start a new game, there will be no preview of the map (although i would like that ). A preview will only be shown, if you try to continue a saved game.
wl_map_info can only be run on a map, not a savegame. It looks like you have run it on a saved game?
Some clarifying about the additional executables:
wl_map_info /path/to/mapname creates two files in the folder of the map: mapname.png (the image of the map) and mapname.json which contains some data about the map. This executable is used on the server if one is uploading a map.
wl_map_object_info /path/to/directory is used on the server as well, to strip out all the info you can find in the Encyclopedia. On the server this is executed once a day to keep the encyclopedia up to date.
Thanks for giving usage details.
I did run it on a map.
Ah OK, thanks to the description you gave, I now know that it tries to create files where the map is located (and not in the directory where it was invoked from, as I would have expected). Of course this did not work, since were the maps are installed a regular user cannot write (it is installed using package management, and not in the user's directory). Can there be a second argument where one can specify a directory where to create the files? Would be much more convenient.
Anyway, now I first symlinked, then copied a map file to a directory where I can write. Problem persists.
wl_map_info ./concentric\ rings.wmf produces the following on
stdout (and nothing on
selected language: en
using locale en_US
Graphics: Try to set Videomode 1x1
Graphics: OpenGL: Version "2.1 Mesa 18.1.7"
Graphics: SDL_GL_RED_SIZE is 8
Graphics: SDL_GL_GREEN_SIZE is 8
Graphics: SDL_GL_BLUE_SIZE is 8
Graphics: SDL_GL_ALPHA_SIZE is 0
Graphics: SDL_GL_BUFFER_SIZE is 24
Graphics: SDL_GL_DOUBLEBUFFER is 1
Graphics: SDL_GL_DEPTH_SIZE is 24
Graphics: SDL_GL_STENCIL_SIZE is 8
Graphics: SDL_GL_ACCUM_RED_SIZE is 0
Graphics: SDL_GL_ACCUM_GREEN_SIZE is 0
Graphics: SDL_GL_ACCUM_BLUE_SIZE is 0
Graphics: SDL_GL_ACCUM_ALPHA_SIZE is 0
Graphics: SDL_GL_STEREO is 0
Graphics: SDL_GL_MULTISAMPLEBUFFERS is 0
Graphics: SDL_GL_MULTISAMPLESAMPLES is 0
Graphics: SDL_GL_ACCELERATED_VISUAL is 1
Graphics: SDL_GL_CONTEXT_MAJOR_VERSION is 2
Graphics: SDL_GL_CONTEXT_MINOR_VERSION is 1
Graphics: SDL_GL_CONTEXT_FLAGS is 0
Graphics: SDL_GL_CONTEXT_PROFILE_MASK is 2
Graphics: SDL_GL_SHARE_WITH_CURRENT_CONTEXT is 0
Graphics: SDL_GL_FRAMEBUFFER_SRGB_CAPABLE is 0
Graphics: OpenGL: Double buffering enabled
Graphics: OpenGL: Max texture size: 8192
Graphics: OpenGL: ShadingLanguage: "1.20"
**** GRAPHICS REPORT ****
VIDEO DRIVER x11
pixel fmt 370546692
size 640 360
**** END GRAPHICS REPORT ****
Style Manager: Loading templates/default/init.lua ... took 5ms
Style Manager: Reading button styles ... took 9ms
Style Manager: Reading slider styles ... took 0ms
Style Manager: Reading tabpanel styles ... took 1ms
Style Manager: Reading editbox styles ... took 0ms
Style Manager: Reading dropdown styles ... took 0ms
Style Manager: Reading scrollbar styles ... took 0ms
Style Manager: Reading style templates took 15ms
**** SOUND REPORT ****
SDL version: 2.0.8
SDL_mixer version: 2.0.2
**** END SOUND REPORT ****
Reading Elemental Data ... took 9ms
Reading Player Names And Tribe Data ... took 0ms
Reading Port Spaces Data ... ┏━ Running Lua for world:
┃ Resources: 1ms
┃ Terrains: 12ms
┃ Immovables: 218ms
┃ Critters: 95ms
┗━ took: 327ms
Loading the world took 347ms
Reading Heights Data ... took 4ms
Reading Terrain Data ... took 11ms
Reading Map Objects ... took 339ms
Reading Player Start Position Data ... took 0ms
Reading Resources Data ... took 16ms
Reading Map Version Data ... took 1ms
Reading Allowed Worker Types Data ... took 2ms
Reading Allowed Building Types Data ... took 5ms
Reading Node Ownership Data ... took 5ms
Reading Exploration Data ... took 17ms
Reading Flag Data ... WidelandsMapLoader::load_map_complete() for 'concentric rings' took 763ms
ObjectManager: ouch! remaining objects
UnhandledVersionError: This game was saved using an older version of Widelands and cannot be loaded anymore, or it's a new version that can't be handled yet.
Packet Name: MapFlagPacket
Saved Version: 1
Current Version: 2.
SoundHandler closing times 1, freq 22050, format 32784, chan 2
'concentric rings.wmf' is a proper map, I can load it and play it.