Menu

#3106 UI bug: screen goes blank after cancelling map load

Fixed_0.12.0
closed-fixed
nobody
None
2
2022-05-01
2017-10-25
No

Steps to reproduce:
. start freecol
. click "Open", select any map (it has *.fsg extension)
. click OK
. a dialog will appear, "Loading Save Game". Press Cancel.

You will have a completely empty window of freecol now, nothing is clickable.

Discussion

  • Lone_Wolf

    Lone_Wolf - 2017-10-28

    confirmed, log attached

     
  • Mike Pope

    Mike Pope - 2017-11-12

    a dialog will appear, "Loading Save Game". Press Cancel.

    Not seeing this with the games from my save directory that I see in the dialog that pops up after "Open". However I am unclear on this:

    Click "Open", select any map (it has *.fsg extension)

    When you say "select any map", do you mean that you are trying to select one of the 4 (now 5) predefined maps? I am not sure that is intended to work. Maps are not games. They are incomplete.
    Did you have to navigate to the map directory to find them or were they offered by default?

     
    • vasya novikov

      vasya novikov - 2017-11-12

      Maps are not games. They are incomplete.

      Well yes. But this is what I do anyway. I create a map (any map at all), and then try to open it as a game. The UI allows me doing that.

      Did you have to navigate to the map directory to find them or were they offered by default?

      Yes, they are/were offered by default. Actually, I don't even have a "map" directory, so IDK what you're talking about, exactly. When I start "Map Editor" and click "Save", the save directory is offered by default. So I click OK and save to this directory. And later load from this directory.

       
      • Mike Pope

        Mike Pope - 2017-11-12

        Well yes. But this is what I do anyway. I create a map (any map at all), and then try to open it as a game. The UI allows me doing that.

        Perhaps it should not. Indeed, ATM it is not allowing it:-). There is one place where you can do what you are trying, which is in the map editor menu, where there is a bunch of special case code that is frequently broken. AFAICT the general "Open" menu entry was only ever intended to open a fully created game.

        I don't even have a "map" directory

        I was referring to the place in the freecol installation data directory where the standard 4/5 maps are installed. I am pretty sure you must have one of them somewhere.

        When I start "Map Editor" and click "Save", the save directory is offered by default. So I click OK and save to this directory. And later load from this directory.

        OK, that is clearer. What would probably be best here then is to have the map editor save maps to a user maps directory so this confusion can be avoided. And also for better error handling if you do try to play a map when a game is expected.

         
        • Mike Pope

          Mike Pope - 2017-12-13

          What would probably be best here then is to have the map editor save maps to a user maps directory so this confusion can be avoided

          This is now the case as of git.8cbcc64.

          I plan to rename all maps from name.fsg to name.fsm to further emphasize that maps are not games.

           
          • Mike Pope

            Mike Pope - 2017-12-28

            Renaming has occurred. This mistake should now be harder to make.

             
  • Mike Pope

    Mike Pope - 2017-11-12
    • status: open --> open-needs-info
     
  • wintertime

    wintertime - 2020-01-14
    • status: open-needs-info --> pending-fixed
    • Group: Current --> Fixed_trunk
     
  • Mike Pope

    Mike Pope - 2022-05-01
    • Group: Fixed_trunk --> Fixed_0.12.0
     
  • Mike Pope

    Mike Pope - 2022-05-01
    • Status: pending-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB