The Sims™ Technical Aspects

TPRP Resource Format


The following information is not based on any proprietary knowledge or restricted documentation—it was entirely derived from observation, experiment, and public information, thus it may be inaccurate or incomplete.

VERY PRELIMINARY

Partially analyzed by Stefan Taferner; it's his insight that some of the strings in this resource are labels for local variables in the corresponding BHAV resource. Additional analysis by Greg Noel.

Fill in stuff here...

Fill in stuff here...

In the description below, integers are in little-endian order (least significant byte first).

TPRP Layout
Offset Size Value
0 4 zero
4 4 Version
8 4 'PRPT'
12 4 Param count (N1)
16 4 Local count (N2)
20 var Params . . . (N1 strings)
var var Locals . . . (N2 strings)
var 4 unknown 1
var N1 Param flags
Following field added in version three
var 4 unknown 2
Following field added in version four
var 4 unknown 3

This resource consists of a twelve-byte (three-word) header followed by optional sets of strings that are labels for the parameters and local variables in the corresponding BHAV resource.

The first header word is always zero.

The second header word is the version. Known versions are two, three, and four.

The third header word is "TPRP" in little-endian order.

The fourth word (first non-header word) is the number of label strings for the parameters in the corresponding BHAV resource.

The fifth word is the number of label strings for the local variables in the corresponding BHAV resource.

Params are null-terminated strings, padded to an even boundry with 0xA3. There is one string for each count specified in word four (i.e., N1).

Locals are null-terminated strings, padded to an even boundry with 0xA3. There is one string for each count specified in word five (i.e., N2).

Fill in stuff here...

Param flags are one-byte values containing either zero or one. There are N1 such flags. The value one seems to be associated with params with default names, so the flag probabaly means "disabled" or "unused" or somesuch.

Fill in stuff here...


Reminder: This information is not based on any proprietary knowledge or restricted documentation—it was entirely derived from observation, experiment, and public information, thus it may be inaccurate or incomplete.

Valid XHTML 1.1! Valid CSS!
Copyright © 2001-2008 Dave Baum and Greg Noel. All rights reserved.
The Sims™ is a trademark of Maxis and Electronic Arts.
This page was last modified Friday, 12-Sep-2003 14:58:27 UTC.
Made on a Mac
SourceForge