<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.drunkenfell.com/index.php?action=history&amp;feed=atom&amp;title=User%3AWidgeon%2FData_File_Format</id>
	<title>User:Widgeon/Data File Format - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.drunkenfell.com/index.php?action=history&amp;feed=atom&amp;title=User%3AWidgeon%2FData_File_Format"/>
	<link rel="alternate" type="text/html" href="https://www.drunkenfell.com/index.php?title=User:Widgeon/Data_File_Format&amp;action=history"/>
	<updated>2026-05-03T08:39:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://www.drunkenfell.com/index.php?title=User:Widgeon/Data_File_Format&amp;diff=382823&amp;oldid=prev</id>
		<title>imported&gt;Widgeon: /* File Entry */</title>
		<link rel="alternate" type="text/html" href="https://www.drunkenfell.com/index.php?title=User:Widgeon/Data_File_Format&amp;diff=382823&amp;oldid=prev"/>
		<updated>2011-03-09T00:48:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;File Entry&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:48, 8 March 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;Widgeon</name></author>
	</entry>
	<entry>
		<id>https://www.drunkenfell.com/index.php?title=User:Widgeon/Data_File_Format&amp;diff=80483&amp;oldid=prev</id>
		<title>imported&gt;Widgeon: /* File Entry */</title>
		<link rel="alternate" type="text/html" href="https://www.drunkenfell.com/index.php?title=User:Widgeon/Data_File_Format&amp;diff=80483&amp;oldid=prev"/>
		<updated>2011-03-09T00:48:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;File Entry&lt;/span&gt;&lt;/span&gt;&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 19:48, 8 March 2011&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-l25&quot;&gt;Line 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&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;* 8: file offset (4 bytes)&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;* 8: file offset (4 bytes)&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;* 12: file size (4 bytes)&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;* 12: file size (4 bytes)&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;* 16: modification date (4 bytes).  Number of seconds since 1970.  This is when the client added &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the &lt;/del&gt;this to the data file.&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;* 16: modification date (4 bytes).  Number of seconds since 1970.  This is when the client added this to the data file.&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;* 20: unknown (4 bytes)&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;* 20: unknown (4 bytes)&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;br&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;br&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;* Ignore the file entry if the version is zero.&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;* Ignore the file entry if the version is zero.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Widgeon</name></author>
	</entry>
	<entry>
		<id>https://www.drunkenfell.com/index.php?title=User:Widgeon/Data_File_Format&amp;diff=382822&amp;oldid=prev</id>
		<title>imported&gt;Widgeon: Created page with &quot;This describes the Throne of Destiny file format.  * Cell blocksize is 256 * Portal blocksize is 1024  == Directory Node ==  * The directory nodes are 1740 bytes long * 1740 / (2...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.drunkenfell.com/index.php?title=User:Widgeon/Data_File_Format&amp;diff=382822&amp;oldid=prev"/>
		<updated>2011-03-09T00:28:47Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This describes the Throne of Destiny file format.  * Cell blocksize is 256 * Portal blocksize is 1024  == Directory Node ==  * The directory nodes are 1740 bytes long * 1740 / (2...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This describes the Throne of Destiny file format.&lt;br /&gt;
&lt;br /&gt;
* Cell blocksize is 256&lt;br /&gt;
* Portal blocksize is 1024&lt;br /&gt;
&lt;br /&gt;
== Directory Node ==&lt;br /&gt;
&lt;br /&gt;
* The directory nodes are 1740 bytes long&lt;br /&gt;
* 1740 / (256 - 4) = 7 blocks&lt;br /&gt;
* 1740 / (1024 - 4) = 2 blocks&lt;br /&gt;
* 1740 = (62 * 4) + 4 + (62 * 6 * 4)&lt;br /&gt;
&lt;br /&gt;
Each directory node has up to 62 subnodes and 61 keys.  t=31.  At most 2t-1 = 2*31-1 = 61 keys.  At least t-1=30 keys.&lt;br /&gt;
&lt;br /&gt;
* 000: 62 subnode offsets.  Offsets are 4 bytes each.  Only use the first count+1&lt;br /&gt;
* 248: count (4 bytes)&lt;br /&gt;
* 252: 62 file entries.  File entries are 6x4=24 bytes long.  Only use the first count entries.&lt;br /&gt;
&lt;br /&gt;
* The subnode offsets must not be zero, must not be 0xcdcdcdcd, and should be an exact multiple of the blocksize.&lt;br /&gt;
&lt;br /&gt;
== File Entry ==&lt;br /&gt;
&lt;br /&gt;
* 0: version (4 bytes)&lt;br /&gt;
* 4: identifier (4 bytes)&lt;br /&gt;
* 8: file offset (4 bytes)&lt;br /&gt;
* 12: file size (4 bytes)&lt;br /&gt;
* 16: modification date (4 bytes).  Number of seconds since 1970.  This is when the client added the this to the data file.&lt;br /&gt;
* 20: unknown (4 bytes)&lt;br /&gt;
&lt;br /&gt;
* Ignore the file entry if the version is zero.&lt;/div&gt;</summary>
		<author><name>imported&gt;Widgeon</name></author>
	</entry>
</feed>