Difference between revisions of "TPRP"

From SimsWiki
Jump to: navigation, search
(Auto-inserted from WakkaWikki)
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{OldWikiEntry}} ===TPRP===
+
{{Resource tgi
 +
|hex code = [[54505250]]
 +
|short = TPRP
 +
|long = Edith SimAntics behavior labels
 +
}}
  
64 - Filename (always null?)
+
This is a hugely useful resource (and yet so simple) if you plan on making [[BHAV]]s with parameters (Arguments). It allows you to label these parameters so that you don't forget what they are, and these labels show up when you call the [[BHAV]] too.
4 - Type Code/Handler (PRPT)
+
4 - Class/Version (78 or 75)
+
4 - Null (Never used in Sims 1 or 2 formats)
+
4 - number of Param labels (description of Paramters passed into this tree)
+
4 - number of Local labels (description of Local Variables used by this tree)
+
  
var - Param label 1
+
[[Image:TPRPinSimPE.JPG|frame|BHAV parameter and local variable labels]]
...
+
<br clear="all"/>
var - Param label n
+
To make these labels, click on the Make Labels button in the [[BHAV]] editor (if you don't see it, check Special buttons and it will appear). Wait a few moments until it shows a pop-up window to tell you it is done, then switch to this resource view and edit the labels in a very similar editor to the general Strings Editor. The labels you create will show up in the [[BHAV]] editor when you call your [[BHAV]].
var - Local label 1
+
...
+
var - Local label n
+
  
4 - Null (Reserved)
+
If you have cloned a [[BHAV]] (or imported from another object), if you do the Make Labels action before editing the resource to be in the package (0xFFFFFFFF) you are given the opportunity to keep the existing labels which will likely be exactly what you want.
var - Group of 1 byte param flags - appears to be one byte per Param label (eg. a file with no Param labels would not add anything, 1 Param label would insert a 0x01 here, 3 Param labels would insert 0x010101, etc.)(01 denotes turned on/used. otherwise 00)
+
4 - Display Code (always 0x00000005) (05 is standard, no highlighting etc. From TREE)
+
4 - Null (Reserved)
+
  
-- for each Param/Local label --
+
[[Category:Sims 2 Modding]]
1 - label length
+
[[Category:InternalFormats]]
x - label  [[Category:Modding]]
+
[[Category:FormatsByName]]

Latest revision as of 21:01, 17 September 2012

54505250
Short name: TPRP
Long name: Edith SimAntics behavior labels

This is a hugely useful resource (and yet so simple) if you plan on making BHAVs with parameters (Arguments). It allows you to label these parameters so that you don't forget what they are, and these labels show up when you call the BHAV too.

BHAV parameter and local variable labels


To make these labels, click on the Make Labels button in the BHAV editor (if you don't see it, check Special buttons and it will appear). Wait a few moments until it shows a pop-up window to tell you it is done, then switch to this resource view and edit the labels in a very similar editor to the general Strings Editor. The labels you create will show up in the BHAV editor when you call your BHAV.

If you have cloned a BHAV (or imported from another object), if you do the Make Labels action before editing the resource to be in the package (0xFFFFFFFF) you are given the opportunity to keep the existing labels which will likely be exactly what you want.

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox