<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.swganh.org/index.php?action=history&amp;feed=atom&amp;title=TOC_%28FileFormat%29</id>
		<title>TOC (FileFormat) - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.swganh.org/index.php?action=history&amp;feed=atom&amp;title=TOC_%28FileFormat%29"/>
		<link rel="alternate" type="text/html" href="http://wiki.swganh.org/index.php?title=TOC_(FileFormat)&amp;action=history"/>
		<updated>2026-05-02T06:32:03Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.4</generator>

	<entry>
		<id>http://wiki.swganh.org/index.php?title=TOC_(FileFormat)&amp;diff=17861&amp;oldid=prev</id>
		<title>Wyz: New page: =TOC - '''Table Of Contents (Game File)'''= {| class=&quot;wikitable&quot; |Understood at |{{75P}} |}  =Primary Structure= {| class=&quot;wikitable&quot; |style=&quot;font-weight:bold; align=&quot;center&quot; width=&quot;100px&quot;...</title>
		<link rel="alternate" type="text/html" href="http://wiki.swganh.org/index.php?title=TOC_(FileFormat)&amp;diff=17861&amp;oldid=prev"/>
				<updated>2007-09-28T22:58:28Z</updated>
		
		<summary type="html">&lt;p&gt;New page: =TOC - &amp;#039;&amp;#039;&amp;#039;Table Of Contents (Game File)&amp;#039;&amp;#039;&amp;#039;= {| class=&amp;quot;wikitable&amp;quot; |Understood at |{{75P}} |}  =Primary Structure= {| class=&amp;quot;wikitable&amp;quot; |style=&amp;quot;font-weight:bold; align=&amp;quot;center&amp;quot; width=&amp;quot;100px&amp;quot;...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=TOC - '''Table Of Contents (Game File)'''=&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Understood at&lt;br /&gt;
|{{75P}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Primary Structure=&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|style=&amp;quot;font-weight:bold; align=&amp;quot;center&amp;quot; width=&amp;quot;100px&amp;quot;|'''Block'''||style=&amp;quot;font-weight:bold; align=&amp;quot;center&amp;quot; width=&amp;quot;360px&amp;quot;|'''Size'''||style=&amp;quot;font-weight:bold; align=&amp;quot;center&amp;quot; width=&amp;quot;80px&amp;quot;|'''Order'''&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;background:#D8F2E0; color:#3C4565;&amp;quot; align=&amp;quot;center&amp;quot;|'''Header'''||&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|{{a_string}}||Header ID&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||Compression&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||Items count&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||Items index size&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||Filenames size&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||Unknown&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||TRE filenames count&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||TRE filenames size&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;font-weight:bold&amp;quot; align=&amp;quot;right&amp;quot;|= 28||style=&amp;quot;font-weight:bold&amp;quot;|Bytes&lt;br /&gt;
|}&lt;br /&gt;
||none&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;background:#3EC166; color:white;&amp;quot; align=&amp;quot;center&amp;quot;|'''TRE filenames'''||&lt;br /&gt;
:{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|{{a_string}}||&amp;lt;TRE filenames size&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
||by name&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;background:#3C548A; color:white;&amp;quot; align=&amp;quot;center&amp;quot;|'''Item index'''||&lt;br /&gt;
:{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|{{ushort}}||Compression&lt;br /&gt;
|-&lt;br /&gt;
|{{ushort}}||TRE index&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||CRC&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||Filename length&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||Offset&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||Original item size&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||(Compressed) Item size&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;font-weight:bold&amp;quot; align=&amp;quot;right&amp;quot;|24||style=&amp;quot;font-weight:bold&amp;quot;|Bytes * &amp;lt;Item count&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
||by CRC&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;background:#C6C600; color:white;&amp;quot; align=&amp;quot;center&amp;quot;|'''Item filenames'''||&lt;br /&gt;
:{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|{{a_string}}||&amp;lt;Item filenames size&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
||by CRC&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Breakdown=&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|{{a_string}}||TOC file type header id &amp;quot; COT1000&amp;quot; (sequence: 0x20 0x43 0x4F 0x54, 0x31, 0x30, 0x30, 0x30)&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||Compression (?) - as of yet always 0&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||Items count&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||Items index size (should always be items count * 24; seemingly ordered by CRC)&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||Filenames size&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||Unknown (could be original filenames size, if compressed, as of yet always = filenames size)&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||TRE filenames count&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||TRE Filenames Size&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{beginlist|TRE Filenames|TRE filenames count}}&lt;br /&gt;
:{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|{{a_string}}||list of 0-terminated TRE filename strings, seemingly ordered by name&lt;br /&gt;
|}&lt;br /&gt;
{{endlist|TRE Filenames}}&lt;br /&gt;
&lt;br /&gt;
{{beginlist|Item Index|Items count}}&lt;br /&gt;
:{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|{{ushort}}||Compression flag (2 if compressed, otherwise 0)&lt;br /&gt;
|-&lt;br /&gt;
|{{ushort}}||TRE index (in TRE filenames list)&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||CRC (of the filename)&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||Filename length&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||Offset in TRE file&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||Original item size&lt;br /&gt;
|-&lt;br /&gt;
|{{uint}}||(Compressed) Item size, thus 0 if not compressed&lt;br /&gt;
|}&lt;br /&gt;
{{endlist|Item Index}}&lt;br /&gt;
&lt;br /&gt;
{{beginlist|TRE Filenames|TRE filenames count}}&lt;br /&gt;
:{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|{{a_string}}||list of 0-terminated item filename strings, in the same order as the index items (by CRC)&lt;br /&gt;
|}&lt;br /&gt;
{{endlist|TRE Filenames}}&lt;/div&gt;</summary>
		<author><name>Wyz</name></author>	</entry>

	</feed>