Difference between revisions of "Operand"

From SimsWiki
Jump to: navigation, search
(Auto-inserted from WakkaWikki)
 
(Reformated)
Line 1: Line 1:
{{OldWikiEntry}} Here is a table for decoding Data Owners (aka Operands) in [[42484156 BHAV]]s and their Data Labels (aka Operand Arguments). They are mainly used for the [[Expression Expression]] primitive (0x0002) but also in other places.
+
=Overview=
 +
Here is a table for decoding Data Owners (aka Operands) in [[BHAV]]s and their Data Labels (aka Operand Arguments). They are mainly used for the [[0x0002|expression]] primitive but also in other places.
  
The Data Label references 0x000000?? can be found in objects.package, [[TGI TGI]] 0x53545223 0x7FE59FD0 0x000000??. Besides here, the Data Owners are also listed in 0x00000084.
+
==Sources==
 +
The Data Label references 0x000000?? can be found in objects.package, [[TGI]] 0x53545223 0x7FE59FD0 0x000000??. Besides here, the Data Owners are also listed in 0x00000084.
  
As an example, here comes a decoded [[Expression Expression]] line with operands 22 00 01 00 00 0A 04 07, using the following table.
 
Stack Object's Hidden Flags Clear Flag Literal Value 0x0001
 
 
(Hidden Flags 0x0001 is labeled Hide Model(s), but that is not explained here.)
 
(Hidden Flags 0x0001 is labeled Hide Model(s), but that is not explained here.)
  
 +
==Table==
 +
{|
 +
!Code
 +
!Data Owner
 +
!Data Labels/Notes
 +
|-
 +
|0x00
 +
|My Attribute
 +
|Literal Value
 +
|-
 +
|0x01
 +
|Stack Obj's Attribute
 +
|Literal Value
 +
|-
 +
|0x02
 +
|My Semi Attribute
 +
|Literal Value
 +
|-
 +
|0x03
 +
|My
 +
|0x0000008D
 +
|-
 +
|0x04
 +
|Stack Object's
 +
|0x0000008D
 +
|-
 +
|0x05
 +
|Stack Objects Semi Attribute
 +
|Literal Value
 +
|-
 +
|0x06
 +
|Global (simulation variables)
 +
|0x00000081
 +
|-
 +
|0x07
 +
|Literal Value
 +
|Literal Value
 +
|-
 +
|0x08
 +
|Temporary Storage
 +
|Literal Value
 +
|-
 +
|0x09
 +
|Parameters
 +
|Literal Value
 +
|-
 +
|0x0A
 +
|Stack Object ID
 +
|(Always zero)
 +
|-
 +
|0x0B
 +
|Temporary Storage[temp]
 +
|''Unknown''
 +
|-
 +
|0x0C
 +
|Check tree ad range
 +
|0x00000086
 +
|-
 +
|0x0D
 +
|Stack obj's Temporary Storage
 +
|Literal Value
 +
|-
 +
|0x0E
 +
|My motives
 +
|0x00000086
 +
|-
 +
|0x0F
 +
|Stack obj's motives
 +
|0x00000086
 +
|-
 +
|0x10
 +
|Stack object's slot
 +
|Literal Value
 +
|-
 +
|0x11
 +
|Stack obj's motive[temp]
 +
|Unknown
 +
|-
 +
|0x12
 +
|My person data
 +
|0x000000C8
 +
|-
 +
|0x13
 +
|Stack obj's person data
 +
|0x000000C8
 +
|-
 +
|0x14
 +
|My slot
 +
|Literal
 +
|-
 +
|0x15
 +
|Stack object's definition
 +
|0x000000CC
 +
|-
 +
|0x16
 +
|Stack obj attr[stack param]
 +
|''Unknown''
 +
|-
 +
|0x17
 +
|Room [temp 0]
 +
|''Unknown''
 +
|-
 +
|0x18
 +
|Neighbor in stack object
 +
|0x000000DD
 +
|-
 +
|0x19
 +
|Local Variable
 +
|Literal Value
 +
|-
 +
|0x1A
 +
|Constant Value
 +
|Special
 +
|-
 +
|0x1B
 +
|''Unused''
 +
|''Unused''
 +
|-
 +
|0x1C
 +
|Check tree ad personality var
 +
|0x00000086
 +
|-
 +
|0x1D
 +
|check tree ad min
 +
|0x00000086
 +
|-
 +
|0x1E
 +
|my person data [temp]
 +
|Unknown
 +
|-
 +
|0x1F
 +
|Stack obj's person data [temp]
 +
|Unknown
 +
|-
 +
|0x20
 +
|Neighbor's person data
 +
|0x000000C8
 +
|-
 +
|0x21
 +
|Job data [temp 0,1]
 +
|0x000000F3
 +
|-
 +
|0x22
 +
|Neighborhood data
 +
|0x000000F9
 +
|-
 +
|0x23
 +
|Stack object's function
 +
|0x000000C9
 +
|-
 +
|0x24
 +
|My type attr
 +
|Literal
 +
|-
 +
|0x25
 +
|Stack obj's type attr
 +
|Literal
 +
|-
 +
|0x26
 +
|Neighbor's Object Definition
 +
|0x000000CC
 +
|-
 +
|0x27
 +
|Temporary Token
 +
|''Unknown''
 +
|-
 +
|0x28
 +
|Stack Object's Temporary Token
 +
|''Unknown''
 +
|-
 +
|0x29
 +
|My Object Array Iterator Index
 +
|Literal
 +
|-
 +
|0x2A
 +
|Stack Object's Object Array Iterator Index
 +
|Literal
 +
|-
 +
|0x2B
 +
|My Object Array Iterator Data
 +
|Literal
 +
|-
 +
|0x2C
 +
|Stack Object's Object Array Iterator Data
 +
|Literal
 +
|-
 +
|0x2D
 +
|My Object Array Element At Temp
 +
|''Unknown''
 +
|-
 +
|0x2E
 +
|Stack Object's Object Array Element At Temp
 +
|''Unknown''
 +
|-
 +
|0x2F
 +
|Constants [temp]
 +
|''Unknown''
 +
|-
 +
|0x30
 +
|My Slot [temp]
 +
|''Unknown''
 +
|-
 +
|0x31
 +
|Stack Objects Slot [temp]
 +
|''Unknown''
 +
|-
 +
|0x32
 +
|Stack obj Semi attr[stack param]
 +
|''Unknown''
 +
|-
 +
|0x33
 +
|Stack Object's Master Definition
 +
|0x000000CC
 +
|}
 +
=See also=
 +
*[[SimAntics]]
  
<pre>0x## Data Owner                                  Data Labels 
+
{{OldWikiEntryCleaned}}
---------------------------------------------------------------
+
[[Category:Modding]]
0x00 My Attribute                                Literal Value
+
0x01 Stack Obj's Attribute                      Literal Value
+
0x02 My Semi Attribute                          Literal Value
+
0x03 My                                          0x0000008D   
+
0x04 Stack Object's                              0x0000008D   
+
0x05 Stack Objects Semi Attribute                Literal Value
+
0x06 Global ( from Simulation )                  0x00000081   
+
0x07 Literal Value                              Literal Value
+
0x08 Temporary Storage                          Literal Value
+
0x09 Parameters                                  Literal Value
+
0x0A Stack Object ID                            Always zero? 
+
0x0B Temporary Storage[temp]                    Unknown     
+
0x0C check tree ad range                        0x00000086   
+
0x0D stack obj's Temporary Storage              Literal Value
+
0x0E my motives                                  0x00000086   
+
0x0F stack obj's motives                        0x00000086   
+
0x10 stack object's slot                        Literal Value?
+
0x11 stack obj's motive[temp]                    Unknown     
+
0x12 my person data                              0x000000C8   
+
0x13 stack obj's person data                    0x000000C8   
+
0x14 my slot                                    Literal Value?
+
0x15 stack object's definition                  0x000000CC   
+
0x16 stack obj attr[stack param]                Unknown     
+
0x17 room [temp 0]                              Unknown     
+
0x18 neighbor in stack object                    0x000000DD   
+
0x19 Local Variable                              Literal Value
+
0x1A Constant Value                              Special     
+
0x1B ~Unused                                    ~Unused     
+
0x1C check tree ad personality var              0x00000086   
+
0x1D check tree ad min                          0x00000086   
+
0x1E my person data [temp]                      Unknown     
+
0x1F stack obj's person data [temp]              Unknown     
+
0x20 neighbor's person data                      0x000000C8   
+
0x21 job data [temp 0,1]                        0x000000F3   
+
0x22 neighborhood data                          0x000000F9   
+
0x23 stack object's function                    0x000000C9   
+
0x24 my type attr                                Literal Value?
+
0x25 stack obj's type attr                      Literal Value?
+
0x26 Neighbor's Object Definition                0x000000CC   
+
0x27 Temporary Token                            Unknown     
+
0x28 Stack Object's Temporary Token              Unknown     
+
0x29 My Object Array Iterator Index              Literal Value?
+
0x2A Stack Object's Object Array Iterator Index  Literal Value?
+
0x2B My Object Array Iterator Data              Literal Value?
+
0x2C Stack Object's Object Array Iterator Data  Literal Value?
+
0x2D My Object Array Element At Temp            Unknown     
+
0x2E Stack Object's Object Array Element At Temp Unknown     
+
0x2F Constants [temp]                            Unknown     
+
0x30 My Slot [temp]                              Unknown     
+
0x31 Stack Objects Slot [temp]                  Unknown     
+
0x32 stack obj Semi attr[stack param]            Unknown     
+
0x33 Stack Object's Master Definition            0x000000CC 
+
</pre> [[Category:Modding]]
+

Revision as of 01:21, 26 June 2006

Contents

Overview

Here is a table for decoding Data Owners (aka Operands) in BHAVs and their Data Labels (aka Operand Arguments). They are mainly used for the expression primitive but also in other places.

Sources

The Data Label references 0x000000?? can be found in objects.package, TGI 0x53545223 0x7FE59FD0 0x000000??. Besides here, the Data Owners are also listed in 0x00000084.

(Hidden Flags 0x0001 is labeled Hide Model(s), but that is not explained here.)

Table

Code Data Owner Data Labels/Notes
0x00 My Attribute Literal Value
0x01 Stack Obj's Attribute Literal Value
0x02 My Semi Attribute Literal Value
0x03 My 0x0000008D
0x04 Stack Object's 0x0000008D
0x05 Stack Objects Semi Attribute Literal Value
0x06 Global (simulation variables) 0x00000081
0x07 Literal Value Literal Value
0x08 Temporary Storage Literal Value
0x09 Parameters Literal Value
0x0A Stack Object ID (Always zero)
0x0B Temporary Storage[temp] Unknown
0x0C Check tree ad range 0x00000086
0x0D Stack obj's Temporary Storage Literal Value
0x0E My motives 0x00000086
0x0F Stack obj's motives 0x00000086
0x10 Stack object's slot Literal Value
0x11 Stack obj's motive[temp] Unknown
0x12 My person data 0x000000C8
0x13 Stack obj's person data 0x000000C8
0x14 My slot Literal
0x15 Stack object's definition 0x000000CC
0x16 Stack obj attr[stack param] Unknown
0x17 Room [temp 0] Unknown
0x18 Neighbor in stack object 0x000000DD
0x19 Local Variable Literal Value
0x1A Constant Value Special
0x1B Unused Unused
0x1C Check tree ad personality var 0x00000086
0x1D check tree ad min 0x00000086
0x1E my person data [temp] Unknown
0x1F Stack obj's person data [temp] Unknown
0x20 Neighbor's person data 0x000000C8
0x21 Job data [temp 0,1] 0x000000F3
0x22 Neighborhood data 0x000000F9
0x23 Stack object's function 0x000000C9
0x24 My type attr Literal
0x25 Stack obj's type attr Literal
0x26 Neighbor's Object Definition 0x000000CC
0x27 Temporary Token Unknown
0x28 Stack Object's Temporary Token Unknown
0x29 My Object Array Iterator Index Literal
0x2A Stack Object's Object Array Iterator Index Literal
0x2B My Object Array Iterator Data Literal
0x2C Stack Object's Object Array Iterator Data Literal
0x2D My Object Array Element At Temp Unknown
0x2E Stack Object's Object Array Element At Temp Unknown
0x2F Constants [temp] Unknown
0x30 My Slot [temp] Unknown
0x31 Stack Objects Slot [temp] Unknown
0x32 Stack obj Semi attr[stack param] Unknown
0x33 Stack Object's Master Definition 0x000000CC

See also

This article is imported from the old MTS2 wiki. It's original page, with comments, can be found at http://old_wiki.modthesims2.com/Operand

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox