Minesweeper saved game
MihaiPopa7 (Talk | contribs) |
MihaiPopa7 (Talk | contribs) (Replaced dot with comma.) |
||
| (2 intermediate revisions by one user not shown) | |||
| Line 5: | Line 5: | ||
|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. | + | 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== | ||
| − | + | There are a few parts here. | |
| − | + | ||
| − | + | 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
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