https://wiki.sc4devotion.com/index.php?title=Item_Index_Subfile&feed=atom&action=historyItem Index Subfile - Revision history2024-03-28T20:10:19ZRevision history for this page on the wikiMediaWiki 1.33.0https://wiki.sc4devotion.com/index.php?title=Item_Index_Subfile&diff=44779&oldid=prevTarkus: Original from CasperVg and whatevermind2019-08-10T02:40:14Z<p>Original from CasperVg and whatevermind</p>
<p><b>New page</b></p><div>This page pertains to the format of the '''Item Index Subfile''' within the [[Savegame]] files. This file has [[Type ID]] ''098F964D''. It can be viewed using the [[SC4 Savegame Explorer]], but not edited. This particular subfile was decoded by {{people|RippleJet}}.<br />
<br />
==Structure==<br />
<pre><br />
DWORD Subfile Size in bytes<br />
DWORD CRC<br />
DWORD Memory address<br />
WORD Major Version (0x0001)<br />
FLOAT32 City Width in metres (1024, 2048 or 4096)<br />
FLOAT32 City Depth in metres (1024, 2048 or 4096)<br />
DWORD City Width in tracts (16, 32 or 64)<br />
DWORD City Depth in tracts (16, 32 or 64)<br />
DWORD City Width in tiles (64, 128 or 256)<br />
DWORD City Depth in tiles (64, 128 or 256)<br />
DWORD Count of Cell Columns (always 192)<br />
DWORD Count of Cell Rows (always 192)<br />
DWORD Count of Cell Items (number of records, each with two DWORDS)<br />
DWORD Link: Memory Address<br />
DWORD Link: Subfile Type ID<br />
</pre><br />
<br />
A city is laid out as a grid, 192x192 cells, regardless of its size. This index lists all items (buildings, props, effects, flora, etc.) that appear in each such cell. If an item spans several cells, it is listed in all those cells.<br />
<br />
An empty city has all these records filled with a "Count of Cell Items" = 0. The total size of such a file thus becomes 148,266 bytes.<br />
<br />
<br />
{{Navbox/SUBFILE}}<br />
[[Category:Savegame/Subfiles]]</div>Tarkus