freeciv21 icon indicating copy to clipboard operation
freeciv21 copied to clipboard

Interface Options Map Image doesn't do anything

Open jwrober opened this issue 11 months ago • 5 comments

Describe the bug There is a tab in the Interface Options called Map Image.

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:

  1. The Interface Options tab should be part of the Game Options Dialog as this is a server setting, not a game/client setting.
  2. 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

jwrober avatar Mar 26 '24 14:03 jwrober

Looks like the client has support for most of this, apart from saving the images

lmoureaux avatar Mar 26 '24 14:03 lmoureaux

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.

jwrober avatar Apr 14 '24 22:04 jwrober

I have it hidden on my local as an example image

jwrober avatar Apr 14 '24 22:04 jwrober

I think a proper fix, preserving functionality while improving the UI, could be along these lines:

  1. Remove these options from the general option dialog
  2. Have the Game -> Save Map Image menu pop up a dialog with options
  3. 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.
  4. 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.

lmoureaux avatar Apr 26 '24 00:04 lmoureaux

Removing from the milestone so it stays open and we can fix post 3.1 release as per notes above.

jwrober avatar May 03 '24 22:05 jwrober