Catalog.json: Difference between revisions

Line 64: Line 64:


<!-- fun fact, this format consists entirely out of uint32 values. fun! -->
<!-- fun fact, this format consists entirely out of uint32 values. fun! -->
{{DataStructure|
{{DataStructure|
   {{DataStructureField|bucket_count|uint32|4-byte integer, indicating the amount of buckets stored in the whole structure.}}
   {{DataStructureField|bucket_count|uint32|4-byte integer, indicating the amount of buckets stored in the whole structure.}}
Line 79: Line 78:


=== Entry data binary format ===
=== Entry data binary format ===
{{Unfinished}}
 
<!-- fun fact, this format also consists entirely out of uint32 values. fun! -->
{{DataStructure|
  {{DataStructureField|entry_count|uint32|4-byte integer, indicating the amount of entries stored in the whole structure.}}
  {{DataStructureField|entries|array|A list of entries. The length of the list can be determined by either using the <code>entry_count</code> field, or reading until the end of the binary data.|
    {{DataStructureField||struct|An entry. The size of one entry is always 28 bytes (7 * 4 bytes).|
      {{DataStructureField|internal_id_index|uint32|4-byte integer, index into the <code>m_InternalIds</code> array inside the parent [[catalog.json]] file.}}
      {{DataStructureField|resource_provider_index|uint32|4-byte integer, index into the <code>m_ProviderIds</code> array inside the parent [[catalog.json]] file.}}
      {{DataStructureField|unknown_bucket_index|uint32|4-byte integer, index into the array that is contained within the binary blob encoded in <code>m_BucketDataString</code>.}}
      {{DataStructureField|unknown_asset_value|uint32|4-byte integer. Set to 0 for most assets, but set to a seemingly random value from 0 to 4294967295 if the entry's internal ID is either: (1) a 32-character-long hexadecimal string, or (2) a file path ending in <code>.asset</code>.}}
      {{DataStructureField|extra_data_block_offset|uint32|4-byte integer, offset into the <code>ExtraData</code> binary blob. Points to the beginning of an extra data entry associated with this entry.}}
      {{DataStructureField|unknown2_bucket_index|uint32|4-byte integer, index into the array that is contained within the binary blob encoded in <code>m_BucketDataString</code>.}}
      {{DataStructureField|resource_type_index|uint32|4-byte integer, index into the <code>m_resourceTypes</code> array inside the parent [[catalog.json]] file.}}
    }}
  }}
}}


=== Extra data binary format ===
=== Extra data binary format ===