Topic: ? Map preview in game
dreieck Topic Opener |
Posted at: 2018-09-05, 16:56
Hello. I think I do oversee this, or I am running with problematic configuration: (How) is it possible to get a preview of a map when selecting a map to play in the game? And can the executable
(And it does not provide help on how to use it and what it does.) The preview in game does neither occur in build 19 (binary from Arch Linux), nor in development build (r8807, built locallly on my machine). I have read that there is some python script which does this functionality for the website; (where) can I find it in the source tree when compiling with Edited: 2018-09-05, 16:59
(empty signature.) Top Quote |
GunChleoc |
Posted at: 2018-09-05, 18:18
Exactly, use DOPTION_BUILD_WEBSITE_TOOLS=ON?. You already found the correct executable; you can't run it on games though, only on maps. Busy indexing nil values Top Quote |
kaputtnik |
Posted at: 2018-09-05, 18:23
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:
Fight simulator for Widelands: |
dreieck Topic Opener |
Posted at: 2018-09-05, 19:06
Ah; I was expectin something in python, as I did infer from this old thread.
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.
Edited: 2018-09-05, 19:55
(empty signature.) Top Quote |
dreieck Topic Opener |
Posted at: 2018-09-05, 19:27
Follow-up: Just found out that the map needs to be OK, but adding an option to save the map preview somewhere else should not bee that difficult. Maybe I extend the programme by that. Anyway, what is the reason that there is no map preview when starting a new game? Anything special, or just "no one did implement it up to now"? Especially since a Edited: 2018-09-05, 19:30
(empty signature.) Top Quote |
GunChleoc |
Posted at: 2018-09-06, 10:41
Original motivations not to include it might have been:
Busy indexing nil values Top Quote |