Minesweeper saved game

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Replaced dot with comma.)
 
(3 intermediate revisions by one user not shown)
Line 3: Line 3:
 
|subcat=Saved Games
 
|subcat=Saved Games
 
|extensions={{ext|MineSweeperSave-ms}}
 
|extensions={{ext|MineSweeperSave-ms}}
|released=2009
+
|released=2009?
 
}}
 
}}
The Windows 7 version of Minesweeper introduced a feature that allows you to save games to its own format. It ends with .MineSweeperSave-ms. (Maybe for Vista it also did the same?)
+
The Windows 7 version of Minesweeper introduced a feature that allows you to save games to its own format. It ends with .MineSweeperSave-ms.
 +
 
 +
Possibly it's the same thing for Vista.
  
 
==Identification==
 
==Identification==
* The files start with {{Magic|RGMH}} and then this byte sequence: {{Magic|4D 00 69 00 6E 00 65 00 73 00 77 00 65 00 65 00 70 00 65 00 72}}, which reads "Minesweeper"
+
There are a few parts here.
* Then, the next byte sequence appears: {{Magic|4D 00 69 00 6E 00 65 00 73 00 77 00 65 00 65 00 70 00 65 00 72 00 2E 00 4D 00 69 00 6E 00 65 00 53 00 77 00 65 00 65 00 70 00 65 00 72 00 53 00 61 00 76 00 65 00 2D 00 6D 00 73}} which reads "Minesweeper.MineSweeperSave-ms" which is the filename always uses.
+
 
* Then, it's a PNG thumbnail, and the XML board file, which starts with: {{Magic|<Board>}} and like {{Magic|<SaveVersion>3</SaveVersion>}} which is the version used to save the game.
+
The first part (the header), begins with signature {{Magic|RGMH}}, and then contains some binary data.
 +
 
 +
After that, it contains the UTF-16 encoded string {{Magic|4D 00 69 00 6E 00 65 00 73 00 77 00 65 00 65 00 70 00 65 00 72}} ({{magic|Minesweeper}}) and a lot of NULs.
 +
 
 +
Then, the next string appears: {{Magic|4D 00 69 00 6E 00 65 00 73 00 77 00 65 00 65 00 70 00 65 00 72 00 2E 00 4D 00 69 00 6E 00 65 00 53 00 77 00 65 00 65 00 70 00 65 00 72 00 53 00 61 00 76 00 65 00 2D 00 6D 00 73}} ({{magic|Minesweeper.MineSweeperSave-ms}}) which is the filename always uses, and lots of NULs.
 +
 
 +
The second part is a PNG image, which is the thumbnail image (basically a small visual snapshot) and some binary bytes.
 +
 
 +
The third part is a XML file for the game's board.
 +
 
 +
The header for the game's board XML is {{Magic|<Board>}}, then {{magic|<SaveVersion>3</SaveVersion>}} defines the version of the save file (for Windows 7, it's always {{magic|3}}), then the number of mines, width, height, difficulty, etc...
  
 
==Software==
 
==Software==
 
* Minesweeper on Windows 7/Vista
 
* Minesweeper on Windows 7/Vista
 
[[Category:XML based file formats]]
 
[[Category:XML based file formats]]

Latest revision as of 23:51, 2 September 2025

File Format
Name Minesweeper saved game
Ontology
Extension(s) .MineSweeperSave-ms
Released 2009?

The Windows 7 version of Minesweeper introduced a feature that allows you to save games to its own format. It ends with .MineSweeperSave-ms.

Possibly it's the same thing for Vista.

[edit] Identification

There are a few parts here.

The first part (the header), begins with signature RGMH, and then contains some binary data.

After that, it contains the UTF-16 encoded string 4D 00 69 00 6E 00 65 00 73 00 77 00 65 00 65 00 70 00 65 00 72 (Minesweeper) and a lot of NULs.

Then, the next string appears: 4D 00 69 00 6E 00 65 00 73 00 77 00 65 00 65 00 70 00 65 00 72 00 2E 00 4D 00 69 00 6E 00 65 00 53 00 77 00 65 00 65 00 70 00 65 00 72 00 53 00 61 00 76 00 65 00 2D 00 6D 00 73 (Minesweeper.MineSweeperSave-ms) which is the filename always uses, and lots of NULs.

The second part is a PNG image, which is the thumbnail image (basically a small visual snapshot) and some binary bytes.

The third part is a XML file for the game's board.

The header for the game's board XML is <Board>, then <SaveVersion>3</SaveVersion> defines the version of the save file (for Windows 7, it's always 3), then the number of mines, width, height, difficulty, etc...

[edit] Software

  • Minesweeper on Windows 7/Vista
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox