Difference between revisions of "CREG"

From SimsWiki
Jump to: navigation, search
(Auto-inserted from WakkaWikki)
 
m (Created as redirect to CDB467B8)
Line 1: Line 1:
{{OldWikiEntry}} ===""ContentRegistry"" Resource===
+
#REDIRECT [[CDB467B8]]
  
(spec by DigitalReality)
+
[[Category:Modding]]
 
+
[[Category:InternalFormats]]
This resource is found in the """ContentRegistry""" file, which is a DBPF package, without an extension, found in the TSData/Res folder of the game data folder, and if you have installed any "sims2pack" files, especially those from Maxis, you should have one in your user data folder. The package contains two instances of the resource, one being in Group 0x00000001, and the other in 0x00000002. The resources appear to vary between the two groups.
+
[[Category:FormatsByName]]
 
+
__==Group 0x00000001 Format==__
+
 
+
DWORD - Version (1)
+
DWORD - Group ID (Hashed, IE either objects, or sounds, etc.)
+
DWORD - Instance (should be, or two WORDS of unknown if its not)
+
 
+
__==Group 0x00000002 Format==__
+
 
+
__==8 Byte Header==__
+
4 Bytes - Version
+
4 Bytes - Number of Entries
+
 
+
__==xx Byte Entry==__
+
Each entry is variable length, starting with a 16 byte data header.
+
 
+
for each "Number Of Entries":
+
-16 Bytes - CRC consisting of 4 32 bit numbers.
+
-4 Bytes - String Length
+
-x Bytes - String of Length Specified by the previous 4 bytes. Is a Normalized file Path.
+
end for each
+
 
+
__==Group 0x00000003 Format==__
+
4 Bytes - Version (3)
+
 
+
4 Bytes - String length x
+
x Byte - String: "GUID"
+
4 Bytes - String length x
+
x Byte - the GUID as Hex String
+
 
+
4 Bytes - String length x
+
x Byte - String: "CRC"
+
4 Bytes - String length x
+
x Byte - the CRC as Hex String
+
 
+
4 Bytes - String length x
+
x Byte - String: "Version"
+
4 Bytes - String length x
+
x Byte - the Versionnumber as String
+
 
+
 
+
The strings contained within the game's data folder's """ContentRegistry""" file, appear to match with the file names of all of the package files in the game, plus some other data files which I could not locate, and some without names at all. This is how the game may determine "custom" content from "non-custom" content. Also, downloading "official" Maxis objects, in the *.sims2pack format, will create """ContentRegistry""" file in the user directory as well. So that's there. The 16 bytes is a CRC with an unknown derivation. According to ""MaxoidTom"", it's four 32bit numbers, but he failed to say how they were derived. [[Category:Modding]]
+

Revision as of 18:22, 4 August 2006

  1. REDIRECT CDB467B8
Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox