<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.lumasworkshop.com/w/index.php?action=history&amp;feed=atom&amp;title=GameData</id>
	<title>GameData - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.lumasworkshop.com/w/index.php?action=history&amp;feed=atom&amp;title=GameData"/>
	<link rel="alternate" type="text/html" href="https://www.lumasworkshop.com/w/index.php?title=GameData&amp;action=history"/>
	<updated>2026-06-04T04:41:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://www.lumasworkshop.com/w/index.php?title=GameData&amp;diff=928&amp;oldid=prev</id>
		<title>VTXG: Fix luigi entry link</title>
		<link rel="alternate" type="text/html" href="https://www.lumasworkshop.com/w/index.php?title=GameData&amp;diff=928&amp;oldid=prev"/>
		<updated>2025-08-13T23:39:49Z</updated>

		<summary type="html">&lt;p&gt;Fix luigi entry link&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:39, 13 August 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l56&quot;&gt;Line 56:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 56:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;code&amp;gt;luigi1&amp;lt;/code&amp;gt; - &amp;lt;code&amp;gt;luigi6&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;code&amp;gt;luigi1&amp;lt;/code&amp;gt; - &amp;lt;code&amp;gt;luigi6&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|[[GameData#&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Player &lt;/del&gt;Save Data|User Save Data]]. (Luigi)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|[[GameData#&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;User &lt;/ins&gt;Save Data|User Save Data]]. (Luigi)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;code&amp;gt;config1&amp;lt;/code&amp;gt; - &amp;lt;code&amp;gt;config6&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;code&amp;gt;config1&amp;lt;/code&amp;gt; - &amp;lt;code&amp;gt;config6&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>VTXG</name></author>
	</entry>
	<entry>
		<id>https://www.lumasworkshop.com/w/index.php?title=GameData&amp;diff=927&amp;oldid=prev</id>
		<title>VTXG: Add</title>
		<link rel="alternate" type="text/html" href="https://www.lumasworkshop.com/w/index.php?title=GameData&amp;diff=927&amp;oldid=prev"/>
		<updated>2025-08-13T23:20:03Z</updated>

		<summary type="html">&lt;p&gt;Add&lt;/p&gt;
&lt;a href=&quot;https://www.lumasworkshop.com/w/index.php?title=GameData&amp;amp;diff=927&amp;amp;oldid=925&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>VTXG</name></author>
	</entry>
	<entry>
		<id>https://www.lumasworkshop.com/w/index.php?title=GameData&amp;diff=925&amp;oldid=prev</id>
		<title>VTXG: Created page with &quot;{{WIP}} In Super Mario Galaxy, save data is stored on the Wii&#039;s NAND, inside the file &lt;code&gt;GameData.bin&lt;/code&gt;.  == SMG1 == The file starts with a 16-byte long header. {| class=&quot;wikitable&quot; !Offset !Size !Name !Description |- |0x0 |4 |Checksum |A checksum of the file&#039;s contents. |- |0x4 |4 |Version |Always 2. |- |0x8 |4 |Save Entry Count |The number of save entries inside this file. In SMG1, this value is 19. |- |0xC |4 |File Size |The size of this file, in bytes. |} Thi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.lumasworkshop.com/w/index.php?title=GameData&amp;diff=925&amp;oldid=prev"/>
		<updated>2025-08-13T18:47:30Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{WIP}} In Super Mario Galaxy, save data is stored on the Wii&amp;#039;s NAND, inside the file &amp;lt;code&amp;gt;GameData.bin&amp;lt;/code&amp;gt;.  == SMG1 == The file starts with a 16-byte long header. {| class=&amp;quot;wikitable&amp;quot; !Offset !Size !Name !Description |- |0x0 |4 |Checksum |A checksum of the file&amp;#039;s contents. |- |0x4 |4 |Version |Always 2. |- |0x8 |4 |Save Entry Count |The number of save entries inside this file. In SMG1, this value is 19. |- |0xC |4 |File Size |The size of this file, in bytes. |} Thi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{WIP}}&lt;br /&gt;
In Super Mario Galaxy, save data is stored on the Wii&amp;#039;s NAND, inside the file &amp;lt;code&amp;gt;GameData.bin&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== SMG1 ==&lt;br /&gt;
The file starts with a 16-byte long header.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Offset&lt;br /&gt;
!Size&lt;br /&gt;
!Name&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|0x0&lt;br /&gt;
|4&lt;br /&gt;
|Checksum&lt;br /&gt;
|A checksum of the file&amp;#039;s contents.&lt;br /&gt;
|-&lt;br /&gt;
|0x4&lt;br /&gt;
|4&lt;br /&gt;
|Version&lt;br /&gt;
|Always 2.&lt;br /&gt;
|-&lt;br /&gt;
|0x8&lt;br /&gt;
|4&lt;br /&gt;
|Save Entry Count&lt;br /&gt;
|The number of save entries inside this file. In SMG1, this value is 19.&lt;br /&gt;
|-&lt;br /&gt;
|0xC&lt;br /&gt;
|4&lt;br /&gt;
|File Size&lt;br /&gt;
|The size of this file, in bytes.&lt;br /&gt;
|}&lt;br /&gt;
This is followed up by a list of entry headers, each one with this structure:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Offset&lt;br /&gt;
!Size&lt;br /&gt;
!Name&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|0x0&lt;br /&gt;
|12&lt;br /&gt;
|Name&lt;br /&gt;
|The name of this entry.&lt;br /&gt;
|-&lt;br /&gt;
|0xC&lt;br /&gt;
|4&lt;br /&gt;
|Offset&lt;br /&gt;
|The offset to this entry&amp;#039;s data.&lt;br /&gt;
|}&lt;br /&gt;
In SMG1, the following entries can be found:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Name&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;mario1&amp;lt;/code&amp;gt; - &amp;lt;code&amp;gt;mario6&amp;lt;/code&amp;gt;&lt;br /&gt;
|Mario save data.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;luigi1&amp;lt;/code&amp;gt; - &amp;lt;code&amp;gt;luigi6&amp;lt;/code&amp;gt;&lt;br /&gt;
|Luigi save data.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;config1&amp;lt;/code&amp;gt; - &amp;lt;code&amp;gt;config6&amp;lt;/code&amp;gt;&lt;br /&gt;
|Config save data shared between &amp;lt;code&amp;gt;mario&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;luigi&amp;lt;/code&amp;gt; data.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;sysconf&amp;lt;/code&amp;gt;&lt;br /&gt;
|Game save data shared across all save entries.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;mario&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;luigi&amp;lt;/code&amp;gt; Data ==&lt;br /&gt;
The data starts with a &amp;#039;&amp;#039;&amp;#039;Binary Chunk Holder Header&amp;#039;&amp;#039;&amp;#039; with the following values:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Name&lt;br /&gt;
!Value&lt;br /&gt;
!Notes&lt;br /&gt;
|-&lt;br /&gt;
|Unknown&lt;br /&gt;
|1&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Chunk Count&lt;br /&gt;
|6&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== GameDataPlayerStatus Section ===&lt;br /&gt;
This section stores information about the story progress, the star bit count, and the life count.&amp;lt;br&amp;gt;&lt;br /&gt;
This section starts with a &amp;#039;&amp;#039;&amp;#039;Binary Chunk Header&amp;#039;&amp;#039;&amp;#039; with the following values:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Name&lt;br /&gt;
!Value&lt;br /&gt;
!Notes&lt;br /&gt;
|-&lt;br /&gt;
|Signature&lt;br /&gt;
|&amp;lt;code&amp;gt;PLAY&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Hash&lt;br /&gt;
|&amp;lt;code&amp;gt;0x27C90F&amp;lt;/code&amp;gt;&lt;br /&gt;
|Unknown hash.&lt;br /&gt;
|-&lt;br /&gt;
|Size&lt;br /&gt;
|19&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
The actual data is structured as follows:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Offset&lt;br /&gt;
!Size&lt;br /&gt;
!Name&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|0x0&lt;br /&gt;
|1&lt;br /&gt;
|Story Progress&lt;br /&gt;
|The story progress value. Corresponds to the &amp;lt;code&amp;gt;progress&amp;lt;/code&amp;gt;value of [[Progress checks#Unlabeled Table 1|Unlabeled Table 1]].&lt;br /&gt;
|-&lt;br /&gt;
|0x1&lt;br /&gt;
|4&lt;br /&gt;
|Star Bit Count&lt;br /&gt;
|The number of star bits owned.&lt;br /&gt;
|-&lt;br /&gt;
|0x5&lt;br /&gt;
|2&lt;br /&gt;
|Life Remaining&lt;br /&gt;
|The player&amp;#039;s life count.&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; The &amp;lt;code&amp;gt;Life Remaining&amp;lt;/code&amp;gt; value is not used to set the mario&amp;#039;s life count, but is instead used for 1-Up mail calculation. (This needs more research)&lt;br /&gt;
&lt;br /&gt;
=== GameEventFlagStorage Section ===&lt;br /&gt;
This section stores game event flags. A complete list of events can be found in the [[Progress checks#GameEventFlagTable|Progress Checks page]].&amp;lt;br&amp;gt;&lt;br /&gt;
This section starts with a &amp;#039;&amp;#039;&amp;#039;Binary Chunk Header&amp;#039;&amp;#039;&amp;#039; with the following values:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Name&lt;br /&gt;
!Value&lt;br /&gt;
!Notes&lt;br /&gt;
|-&lt;br /&gt;
|Signature&lt;br /&gt;
|&amp;lt;code&amp;gt;FLG1&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Hash&lt;br /&gt;
|&amp;lt;code&amp;gt;0x65020442&amp;lt;/code&amp;gt;&lt;br /&gt;
|Hash code of the string &amp;quot;2bytes/flag&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Size&lt;br /&gt;
|126&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
This section&amp;#039;s data is made up of multiple 2-byte numbers:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Offset&lt;br /&gt;
!Bit Count&lt;br /&gt;
!Name&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|0&lt;br /&gt;
|1&lt;br /&gt;
|Value&lt;br /&gt;
|If this flag is enabled or not.&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|15&lt;br /&gt;
|Hash&lt;br /&gt;
|A shortened hash code of the flag&amp;#039;s name.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== StarPieceAlmsStorage Section ===&lt;br /&gt;
This section stores information about hungry lumas.&amp;lt;br&amp;gt;&lt;br /&gt;
This section starts with a &amp;#039;&amp;#039;&amp;#039;Binary Chunk Header&amp;#039;&amp;#039;&amp;#039; with the following values:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Name&lt;br /&gt;
!Value&lt;br /&gt;
!Notes&lt;br /&gt;
|-&lt;br /&gt;
|Signature&lt;br /&gt;
|&amp;lt;code&amp;gt;PCE1&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Hash&lt;br /&gt;
|&amp;lt;code&amp;gt;0xF5DE1DC0&amp;lt;/code&amp;gt;&lt;br /&gt;
|Hash code of the string &amp;quot;StarPieceAlmsStorage&amp;quot; multiplied by 32.&lt;br /&gt;
|-&lt;br /&gt;
|Size&lt;br /&gt;
|44&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
The data is an array of 16 2-byte values, each one corresponding to the amount of star bits fed to hungry lumas.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;TicoFat&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;TicoGalaxy&amp;lt;/code&amp;gt; use their &amp;lt;code&amp;gt;Obj_arg7&amp;lt;/code&amp;gt; to indicate what index they get/set their star bit count from, although &amp;lt;code&amp;gt;TicoGalaxy&amp;lt;/code&amp;gt; uses &amp;lt;code&amp;gt;Obj_arg7&amp;lt;/code&amp;gt; + 8 for the index.&amp;lt;br&amp;gt;&lt;br /&gt;
Due to &amp;lt;code&amp;gt;TicoFat&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;TicoGalaxy&amp;lt;/code&amp;gt; having 7 occurrences each, this means that the values at index 7 and 15 go unused.&amp;lt;br&amp;gt;&lt;br /&gt;
Furthermore, due to the&amp;lt;code&amp;gt;TicoFat&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;StarEggRoadZone&amp;lt;/code&amp;gt; having an &amp;lt;code&amp;gt;Obj_arg7&amp;lt;/code&amp;gt; of -1, index 0 also goes unused.&lt;br /&gt;
&lt;br /&gt;
=== SpinDriverPathStorage Section ===&lt;br /&gt;
This section stores information about launch star paths.&amp;lt;br&amp;gt;&lt;br /&gt;
This section starts with a &amp;#039;&amp;#039;&amp;#039;Binary Chunk Header&amp;#039;&amp;#039;&amp;#039; with the following values:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Name&lt;br /&gt;
!Value&lt;br /&gt;
!Notes&lt;br /&gt;
|-&lt;br /&gt;
|Signature&lt;br /&gt;
|&amp;lt;code&amp;gt;SPN1&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Hash&lt;br /&gt;
|&amp;lt;code&amp;gt;0x12345679&amp;lt;/code&amp;gt;&lt;br /&gt;
|Unknown hash.&lt;br /&gt;
|-&lt;br /&gt;
|Size&lt;br /&gt;
|998&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
Todo.&lt;br /&gt;
&lt;br /&gt;
=== GameEventValueStorage Section ===&lt;br /&gt;
This section stores game event values. A complete list of events can be found in the [[Progress checks#GameEventValueTable|Progress Checks page]].&amp;lt;br&amp;gt;&lt;br /&gt;
This section starts with a &amp;#039;&amp;#039;&amp;#039;Binary Chunk Header&amp;#039;&amp;#039;&amp;#039; with the following values:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Name&lt;br /&gt;
!Value&lt;br /&gt;
!Notes&lt;br /&gt;
|-&lt;br /&gt;
|Signature&lt;br /&gt;
|&amp;lt;code&amp;gt;VLE1&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Hash&lt;br /&gt;
|&amp;lt;code&amp;gt;0x564C4531&amp;lt;/code&amp;gt;&lt;br /&gt;
|The string &amp;quot;VLE1&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|Size&lt;br /&gt;
|112&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
This section&amp;#039;s data is made up of key-value pairs:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Offset&lt;br /&gt;
!Size&lt;br /&gt;
!Name&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|0x0&lt;br /&gt;
|2&lt;br /&gt;
|Hash&lt;br /&gt;
|The hash of the event&amp;#039;s name.&lt;br /&gt;
|-&lt;br /&gt;
|0x1&lt;br /&gt;
|2&lt;br /&gt;
|Value&lt;br /&gt;
|The value of this event.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== GameDataAllGalaxyStorage Section ===&lt;br /&gt;
This section stores galaxy information, such as the collected power stars.&amp;lt;br&amp;gt;&lt;br /&gt;
This section starts with a &amp;#039;&amp;#039;&amp;#039;Binary Chunk Header&amp;#039;&amp;#039;&amp;#039; with the following values:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Name&lt;br /&gt;
!Value&lt;br /&gt;
!Notes&lt;br /&gt;
|-&lt;br /&gt;
|Signature&lt;br /&gt;
|&amp;lt;code&amp;gt;GALA&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Hash&lt;br /&gt;
|&amp;lt;code&amp;gt;0xBF0640EE&amp;lt;/code&amp;gt;&lt;br /&gt;
|Unknown hash.&lt;br /&gt;
|-&lt;br /&gt;
|Size&lt;br /&gt;
|874&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
This section uses the &amp;#039;&amp;#039;&amp;#039;Binary Data Content&amp;#039;&amp;#039;&amp;#039; system to write its data.&amp;lt;br&amp;gt;&lt;br /&gt;
This section starts with a galaxy count:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Offset&lt;br /&gt;
!Size&lt;br /&gt;
!Name&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|0x0&lt;br /&gt;
|2&lt;br /&gt;
|Galaxy Count&lt;br /&gt;
|The number of galaxies. In SMG1, this value is 42.&lt;br /&gt;
|}&lt;br /&gt;
Followed by a Binary Data Content header:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Name&lt;br /&gt;
!Value&lt;br /&gt;
!Notes&lt;br /&gt;
|-&lt;br /&gt;
|Attribute Count&lt;br /&gt;
|4&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Data Size&lt;br /&gt;
|20&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
The Binary Data Content contains the following attributes:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Offset&lt;br /&gt;
!Size&lt;br /&gt;
!Name&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|0x0&lt;br /&gt;
|2&lt;br /&gt;
|&amp;lt;code&amp;gt;mGalaxyName&amp;lt;/code&amp;gt;&lt;br /&gt;
|The name of the galaxy.&lt;br /&gt;
|-&lt;br /&gt;
|0x2&lt;br /&gt;
|1&lt;br /&gt;
|&amp;lt;code&amp;gt;mPowerStarFlag&amp;lt;/code&amp;gt;&lt;br /&gt;
|The power star collection flags. Each bit corresponds to a power star.&lt;br /&gt;
|-&lt;br /&gt;
|0x3&lt;br /&gt;
|1&lt;br /&gt;
|&amp;lt;code&amp;gt;mFirstPlayFlag&amp;lt;/code&amp;gt;&lt;br /&gt;
|Todo.&lt;br /&gt;
|-&lt;br /&gt;
|0x4&lt;br /&gt;
|16&lt;br /&gt;
|&amp;lt;code&amp;gt;mMaxCoinNum&amp;lt;/code&amp;gt;&lt;br /&gt;
|Todo.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== SMG2 ==&lt;br /&gt;
Todo.&lt;br /&gt;
&lt;br /&gt;
== Binary Chunk System ==&lt;br /&gt;
To write save entry data, a system was created to read, write, and manage writing sub-sections of the data.&lt;br /&gt;
&lt;br /&gt;
=== Binary Chunk Holder Header ===&lt;br /&gt;
A 4-byte header used throughout all save entries.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Offset&lt;br /&gt;
!Size&lt;br /&gt;
!Name&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|0x0&lt;br /&gt;
|1&lt;br /&gt;
|Unknown&lt;br /&gt;
|Always 1.&lt;br /&gt;
|-&lt;br /&gt;
|0x1&lt;br /&gt;
|1&lt;br /&gt;
|Chunk Count&lt;br /&gt;
|The number of chunks in the data.&lt;br /&gt;
|-&lt;br /&gt;
|0x2&lt;br /&gt;
|2&lt;br /&gt;
|Padding&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Binary Chunk Header ===&lt;br /&gt;
A 12-byte header used for identifying the sub-sections of data.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Offset&lt;br /&gt;
!Size&lt;br /&gt;
!Name&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|0x0&lt;br /&gt;
|4&lt;br /&gt;
|Signature&lt;br /&gt;
|A 4-byte long ASCII string&lt;br /&gt;
|-&lt;br /&gt;
|0x4&lt;br /&gt;
|4&lt;br /&gt;
|Hash&lt;br /&gt;
|An additional identifier for the chunk.&lt;br /&gt;
|-&lt;br /&gt;
|0x8&lt;br /&gt;
|4&lt;br /&gt;
|Size&lt;br /&gt;
|The size of this chunk, in bytes, from the start of this header.&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; The &amp;lt;code&amp;gt;Hash&amp;lt;/code&amp;gt; value is not always a hash code, as some chunks simply use 1 as the value.&lt;br /&gt;
&lt;br /&gt;
=== Binary Data Content ===&lt;br /&gt;
The save file&amp;#039;s dynamic data serialization system. The data starts with a 8-byte long header.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Offset&lt;br /&gt;
!Size&lt;br /&gt;
!Name&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|0x0&lt;br /&gt;
|2&lt;br /&gt;
|Attribute Count&lt;br /&gt;
|The number of attributes in the data structure.&lt;br /&gt;
|-&lt;br /&gt;
|0x2&lt;br /&gt;
|2&lt;br /&gt;
|Data Size&lt;br /&gt;
|The size of the data structure.&lt;br /&gt;
|}&lt;br /&gt;
This is followed by multiple attribute headers.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Offset&lt;br /&gt;
!Size&lt;br /&gt;
!Name&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|0x0&lt;br /&gt;
|2&lt;br /&gt;
|Hash&lt;br /&gt;
|The hash of the attribute&amp;#039;s name.&lt;br /&gt;
|-&lt;br /&gt;
|0x2&lt;br /&gt;
|2&lt;br /&gt;
|Offset&lt;br /&gt;
|The offset from the start of the data structure.&lt;br /&gt;
|}&lt;br /&gt;
As for the data, its structure is dinamically created by the attributes. Furthermore, multiple data structures can be written to the data buffer.&lt;br /&gt;
&lt;br /&gt;
== Tools ==&lt;br /&gt;
&lt;br /&gt;
* TKSaveEditor - A currently WIP tool by VTXG.&lt;/div&gt;</summary>
		<author><name>VTXG</name></author>
	</entry>
</feed>