This is maximally flexible but seems pointlessly complicated for a rare and useless case, and makes pointlessly larger files. Allow opening and writing, always writing the duplicate entries uncompressed, unless the write_disposition makes that impossible, in which case fail.do what? Discard all but one? Compare them to make sure they're equal?
Clients like dbpf-recompress would have to check for duplicates and. Probably a bad idea, since at least one exists.
See the changelog in the zip archive.Īnd welcome to the ranks of Peasants At Least As Tall As The Beefy Arm, whoever you are. And please use the library to build useful tools, otherwise it will all have been in vain.Įdit: New version 20070530. Please test dbpf-recompress on every package you can lay your hands on (after backing them up!). This is a very preliminary release and some things are completely untested. It shaves about 100 megabytes off the size of a base Sims 2 installation, and everything seems to still work.
I also included a sample app / useful utility called dbpf-recompress which uses the library to recompress package files.
The compression code is based on zlib's deflate code with lazy matching, and almost always compresses better than SimPE or the game itself (sometimes a lot better).
It has full write support with incremental and in-place updates and compression. This is a DBPF (*.package) library written in C++ with a C interface, GPL licensed. Then I move them into the proper folders.I think this belongs in the Bowels of Trogdor, but I don't seem to have posting permission there. All new downloads are put in folders in that main folder, until I have played a bit and am sure they are ok. I also have a folder in downloads for testing too. Hope that wasn't as confusing as it sounds I like to separate, so if I decide something doesn't look as good in game as I thought it would, I can just go delete that without searching everywhere for it. So Plaster painted walls by *whoever* has it's own folder in the paint folder, which is in the main walls folder. I have folders in that folder to put each download in its own folder.
In that folder I have sub folders for tile, wood, paint, wallpaper, I even have my kids walls separated from the rest of the house. Say I have walls as a main folder in downloads. (Unless it is a set, then sets have their own folder) I have a ton of folders, and folders in those folders. You should organize your download files in a way that is easy for you to know where you put things. If you can't remember where you downloaded the item, try putting the objects name in google, I have had great success tracking down things I forgot where I got them. That's why whenever I download I read very stinks finding out you don't have the mesh. If they used someone else's mesh, they should have a link to it, so you can then download it. Then it is as easy as going back to the site you got it from. If you are missing meshes, the items will flash blue in game, so you can at least identify which objects they are. I have never used that organizer, so I can't really comment on what it does or doesn't do, or how it works.