GitHub - whoward69/Sims2Tools: A toolkit for manipulating The Sims 2 DBPF files
Skip to content

A toolkit for manipulating The Sims 2 DBPF files

Notifications You must be signed in to change notification settings

whoward69/Sims2Tools

Repository files navigation

Sims2Tools

The Sims2Tools Project consists of two libraries and five applications

  • DBFF Library
  • Utils Library
  • DBPF Viewer Application
  • BHAV Finder Application
  • HCDU Plus Application
  • SG Checker Application
  • What Caused This Application

ko-fi

DBPF Library

The DBPF Library is a set of classes for reading "The Sims 2" DBPF (.package) files. It can extract both uncompressed and compressed resources of types BCON, BHAV, CTSS, GLOB, OBJD, OBJf, STR#, TPRP, TRCN, TTAB, TTAs and VERS - ie all the ones of use to coding modders.

Utils Library

The Utils Library is a set of classes to support development of applications that use the DBPF Library providing classes for registry persistence, MRU lists and common dialogs (about, configuration and progress)

DBPF Viewer Application

The DBPF Viewer is a simple application to display the contents of a DBPF (.package) file. It was written primarily as a testing application for the DBPF Library, but also supports exporting resources as XML (either to the clipboard or to a file)

DBPF Viewer App

BHAV Finder Application

The Simantics Resource Finder in SimPE (Tools -> PJSE -> Simantics Resource Finder...) is very good at what it does, but doesn't quite measure up if you want to dig into the Maxis game code, for example, when searching for code snippets that use primitives in a certain way, or link to specific strings (eg animations).

The BHAV Finder application is my attempt to make spelunking in the game code more productive. Recently, I have wanted to be able to answer questions such as, which BHAVs ...

  • use the old version of the relationship primitive
  • use TNS Style 0x05 (see here)
  • create the "Token - Poison Ivy" object
  • access the Lot Inventory
  • call "Want Satisfy - Kiss" in the SofaSocialGlobals
  • use the firefly jar animations

BHAV Finder was written to provide the answers.

BHAV Finder App

HCDU Plus Application

The Hack Conflict Detection Utility (HCDU) is an essential tool when using mods, but it does have some shortcomings

  1. it doesn't consider STR#, OBJD, OBJf or other resources
  2. it can't be told which folder to start in
  3. it can't be told to ignore known conflicts (eg all the InTeenimater flavour paks)
  4. it reports conflicts at the resource (BHAV, BCON and STR#) level and not at the package level (it's usually enough to know that "InTeenimater_FlavorPak_BackToSchool.package" conflicts with "InTeenimater_B.package" without giving the eleven resources that conflict)

The HCDU Plus application is my attempt to remedy these.

HCDU Plus App

SG Checker Application

The SG Checker application was primarily written to answer two questions

  1. which "things" are missing meshes and/or textures (so not appearing correctly in game)?
  2. which mesh packages are duplicates?

What Caused This Application

The What Caused This application reads an object error log file, extracts some information from it and then looks in every mod in your Downloads folder to see if it can identify the suspect mod(s).

What Caused This App

About

A toolkit for manipulating The Sims 2 DBPF files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published