freeciv21
freeciv21 copied to clipboard
Interface Options Map Image doesn't do anything
Describe the bug There is a tab in the Interface Options called Map Image.
This is actually a Game Options setting /mapimg
to have the server save an image of the map (in minimap format) on a periodic basis (e.g. every turn).
There are two issues here:
- The Interface Options tab should be part of the Game Options Dialog as this is a server setting, not a game/client setting.
- The options, when set, should issue proper commands to the server to set
/mapimg
. On a local game, when I ask to show/mapimg all
, I get nothing back.
jwrober: 'mapimg show all'
/mapimg: No map image definitions.
Expected behavior We have options in the right spot that actually do something useful.
Screenshots See above
Platform and version (please complete the following information):
- OS: All
- Freeciv21 version: 3.1-alpha.5
- Ruleset/Longturn game (if applicable): N/A
Additional context https://discord.com/channels/378908274113904641/378908274680004619/1219969376711741460
Looks like the client has support for most of this, apart from saving the images
My thinking on this one is to 'hide' the options and the tab for now. Then post Qt6 incorporate a full fix via #587 using kconfig.
I have it hidden on my local as an example
I think a proper fix, preserving functionality while improving the UI, could be along these lines:
- Remove these options from the general option dialog
- Have the Game -> Save Map Image menu pop up a dialog with options
- In the new dialog, include options for the save path (should it be a folder?) and format (including the current full tileset-based format). I think the minimap settings can be used for the map image if labeled properly.
- Persist options set in the new dialog
I would also like to get rid of the in-house PPM writer and use QImage
instead. This would make the server depend on QtGui, which we don't necessarily want, so it should remain optional at configure time.
In any case the fix can be a feature for the next version. For now let's just remove the options.
Removing from the milestone so it stays open and we can fix post 3.1 release as per notes above.