TheWitcherSave format

uses a format called Rich Saved Game file that always end in TheWitcherSave extension. The format appears to be organized as follows:
* Header
* Resource Data
* Resource Table
* Coda
== Header ==
Offset	Size	Type 	Name 	Notes
 	4 	char 	Magic Number 	"RGMH".
 	1 	uchar 	Header version 	
 	3 	 	 	Structure padding.
 	8 	ulong 	Header size 	Always (1.1a).
 	4 	 	 	
 	4 	ulong 	 	
 	4 	uint 	 	Always (1.1a).
 	4 	uint 	 	Always (1.1a).
 	4 	uint 	 	Always (1.1a).
 	4 	 	 	Always (1.1a)
 	2048	u16str	 	"Lightning Storm".
 	2048	u16str	Name of last area 	
 	2048	u16str	Name of last area #2	
 	2048	u16str	 	
== Resource table ==
Contains list of Resource Table Entries.
=== Resource Table Entry ===
Offset	Size	Type 	Description
0 	4 	DWORD	Size of resource name.
4 	var 	CHAR 	Resource name
4+var 	4 	DWORD	Size of resource.
8+var 	4 	DWORD	Offset to resource data from beginning of file.
== Coda ==
Read from the bottom of the file:
Offset	Size	Type 	Description
n−4 	4 	DWORD	Number of resources in resource table.
n−8 	4 	DWORD	Offset to Resource Table from beginning of file.
== External links ==
WitchSav - tk102's savegame unpacker/repacker
de:Dateiformat TheWitcherSave
Category:File Formats
Category:Pages with tables