View Full Version : Directory of Compressed Files - why have it?
28th Nov 2006, 12:44 AM
Many custom content files seem to have a resource called 'Directory of Compressed Files'. I have often questioned the importance of such a resource, as nothing I have found in any package references it. I have also noticed that several packages have a Directory that does not completely detail every resource in the package, while others do. Also, it seems that there is no way to edit the Directory directly. If the resource is unneeded, then why would Maxis bother to add one to their files? Does the game reference these Directories for some unknown purpose?
28th Nov 2006, 01:45 AM
Question: How to edit the" directory of compressed files"
28th Nov 2006, 02:15 AM
If you don't want to edit it, just put a package containing some compressed files in downloads, run the game, and *voila* the game will insert one into your package for you while it is starting up.
Why some of the files are listed and some aren't? Only the compressed files are listed. Unless you specifically compress them, only modified files in a package are that were compressed originally are uncompressed. The others are copied as is.
Not having access to the game source code, I would guess that the directory merely enhances the load speed of packages. It certainly isn't necessary to be able to read them, so it must be an enhancement.
<* Wes *>
13th Dec 2006, 12:23 AM
The directories are fast loads helpers. They tell the game what is compressed, before it has to go searching through the first 10 bytes of every file entry (signature section) to check, which is how it does it without them.
Since we figured out how they work back on Simcity4 in 2003, it's always been updated automatically with each minor change of the file on all properly working dat/package modification programs, which is why it generally speaking does not have an editor plugin. DotDat->Reader->Datgen->SimPE
Never ever edit them yourself or you'll mess up the game! =)
11th Aug 2009, 04:22 PM
i need to know how to edit manually. i am making a custom mesh recolor and the game is not making it automatically. can you help me here?
vBulletin v3.0.14, Copyright ©2000-2013, Jelsoft Enterprises Ltd.