Save As - wrong file type

VASSAL 3.5.4-SNAPSHOT-95b893e38

I loaded a module w/ intent to save a game to use as a scenario setup file…

Used “Save Game as”…

Windows 10 dialog box shows Directory/file structure, then Filename (blank), Save as type (.) [question should this default to .vsav???]

I entered “test” and it saved as “test.vsav”

I entered “newEE_3.0_BlankMap” and it saved as file type “0_BLANKMAP File”

I can work around it, but it’s bizarre…

Thus spake Korval:

VASSAL 3.5.4-SNAPSHOT-95b893e38

I loaded a module w/ intent to save a game to use as a scenario setup
file…

Used “Save Game as”…

Windows 10 dialog box shows Directory/file structure, then Filename
(blank), Save as type (.) [question should this default to .vsav???]

It should, but it’s not going to. Java gives us the following options:

  • Use the native Windows file chooser, where we can’t set file filters
  • Use the Swing file chooser, where we can set file filters, but
    every single other thing is worse

So, we’ve gone with the native file chooser. This sort of thing won’t
be a problem in V4 when we’re no longer using Java, but there’s nothing we
can do about it in V3.

I entered “test” and it saved as “test.vsav”

I entered “newEE_3.0_BlankMap” and it saved as file type “0_BLANKMAP
File”

I can work around it, but it’s bizarre…

I can’t reproduce this on Windows 7.


J.

No, wait—I understand what you’re seeing now. You have the option to show file extensions turned off, right? And Windows is interpreting “0_BlankMap” as a file extension.

Standard Windows behaviour if you use file names with additional periods in them and no additional suffix is added.

Try 3.5.4-SNAPSHOT-bug14152-d22186aba: vassalengine.org/~uckelman/tmp/

Does that solve the problem you’re seeing?

Yes, the file saves correctly with the .vsav extension when using this snapshot…

Thanks much!