Difference between revisions of "INSO03"

From SWGANH Wiki
Jump to: navigation, search
Line 12: Line 12:
 
----
 
----
 
<pre>
 
<pre>
[UINT16] 05 00                 
+
{{{
 +
SHORT:          ObjOpperandCount
 +
INT:            Opcode
 +
FLOAT:          Complexity
 +
ASTRING:        STFFileName
 +
INT:            ??
 +
ASTRING:        STFString
 +
USTRING:        CustomName
 +
INT:            Volume
 +
CSTRING:        CustomizationString
 +
INT:            ??List
 +
INT:            UpdateCounter
 +
{
 +
INT:          ??
 +
}
 +
INT:            OptionsBitmask
 +
INT:            Timer(Incap/Prototype)
 +
INT:            ConditionDamage
 +
INT:            MaxCondition
 +
BYTE:          ??
 +
BYTE:          ActiveFlag
 +
FLOAT:          PowerReserves
 +
FLOAT:          PowerCost
 +
}}}
  
[UINT32] OPCODE                SMSG_OBJ_UPDATE
 
 
[UINT64] ID resource ID
 
 
[UINT32] OSNI OSNI 3 Packet
 
[UINT8]  3
 
 
[UINT32] PACKETLENGTH the length of the Packet following this dword
 
 
[UINT16] Operand the number of object operands
 
 
[float]  complexity            Complexity of the (crafted) item
 
 
[ASCII] This string contains the string "player_structure"
 
 
[UINT32] 00 00 00 00
 
 
[ASCII] "temporary_structure"
 
 
 
[UINT32] 00 00 00 00
 
[UINT32] 01 00 00 00
 
 
[UINT32] 00 00 00 00
 
[UINT32] 00 00 00 00
 
[UINT32] 00 00 00 00
 
 
[UINT32] 00 00 00 00
 
[UINT32] 00 00 00 00
 
 
[UINT16] 00 00
 
 
[UINT32] 64 00 00 00
 
 
[UINT8]  01
 
 
[UINT32] AMOUNT Amount of the resource
 
 
[UINT64] TEMPLATE-ID ID of the resource template the resource is based upon
 
 
</pre>
 
</pre>
  
Line 58: Line 42:
 
----
 
----
 
<pre>
 
<pre>
 +
{{{
 +
SHORT:                  UpdateCount
 +
SHORT:                  UpdateType
 +
{
 +
  00:         
 +
    FLOAT:              Complexity
 +
  01:         
 +
    A_STRING:          STFName
 +
    INT:                ??
 +
 +
  A_STRING:          DefaultName
 +
  02:         
 +
    U_STRING:          CustomName
 +
  03:         
 +
    INT:                Volume
 +
  04:         
 +
    A_STRING:          Customization
 +
  05:                   
 +
    INT:                ??ListSize
 +
    INT:                UpdateCount
 +
    {
 +
      BYTE:            SubType
 +
      {
 +
        00:(remove)
 +
          INT:          ??
 +
        01:(add)
 +
          INT:          ??
 +
        02:(clearall)
 +
      }
 +
    }   
 +
  06:         
 +
    INT:                OptionsBitmask
 +
  07:         
 +
    INT:                Timer(Incap/Proto)
 +
  08:         
 +
    INT:                ConditionDamage
 +
  09:         
 +
    INT:                MaxCondition
 +
  0A:         
 +
    BYTE:              ??
 +
  0B:
 +
    BYTE:              ActiveFlag
 +
  0C:
 +
    FLOAT:              PowerReserves
 +
  0D:
 +
    FLOAT:              PowerCost
 +
}}}
 
</pre>
 
</pre>
  
Line 69: Line 100:
 
----
 
----
  
Obj_OperandCount = ??
+
ObjOpperandCount = 14
 +
STFName:
 +
The STF File name for the name and default description of the installation.
 +
DefaultName:
 +
The STF string reference for the installation name.
 +
CustomName:
 +
The override name of the container.
 +
Use to display Custom Names.
 +
Customization:
 +
This is the CSTRING used to contain customization variables for this object.
 +
OptionsBitmask:
 +
This bitmask contains flags to set various option aspects.
 +
Note: Installations need 01h set to animate harvesting/manufacturing.
 +
Timer:
 +
Not really needed for this object.
 +
ConditionDamage:
 +
This is the current damage taken by an object.
 +
MaxCondition:
 +
This is the maximum HP(condition) of an object.
 +
ActiveFlag:
 +
This Flag is set to 1 for Active 0 for Inactive.
 +
PowerReserves:
 +
The amount of power/energy put into the installation.
 +
Can be decimal (its a float).
 +
PowerCost:
 +
This is a decimal value for the amount of power being consumed
 +
PER HOUR of operation. It can be a decimal, but the defaults
 +
are integers.
 +
 
 
----
 
----
  

Revision as of 00:08, 29 November 2007

OSNI Packet Type QuickNav
INSO03 - INSO06 - INSO07


BaseLine Struct


{{{
SHORT:          ObjOpperandCount
INT:            Opcode
FLOAT:          Complexity
ASTRING:        STFFileName
INT:            ??
ASTRING:        STFString
USTRING:        CustomName
INT:            Volume
CSTRING:        CustomizationString
INT:            ??List
INT:            UpdateCounter
{
 INT:           ??
}
INT:            OptionsBitmask
INT:            Timer(Incap/Prototype)
INT:            ConditionDamage
INT:            MaxCondition
BYTE:           ??
BYTE:           ActiveFlag
FLOAT:          PowerReserves
FLOAT:          PowerCost
}}}

Deltas Struct


{{{
SHORT:                  UpdateCount
SHORT:                  UpdateType
{
  00:           
    FLOAT:              Complexity
  01:           
    A_STRING:           STFName
    INT:                ??
 
   A_STRING:           DefaultName
  02:           
    U_STRING:           CustomName
  03:           
    INT:                Volume
  04:           
    A_STRING:           Customization
  05:                    
    INT:                ??ListSize
    INT:                UpdateCount
    {
      BYTE:             SubType
      {
        00:(remove)
          INT:          ??
        01:(add)
          INT:          ??
        02:(clearall)
      }
    }     
  06:           
    INT:                OptionsBitmask
  07:           
    INT:                Timer(Incap/Proto)
  08:           
    INT:                ConditionDamage
  09:           
    INT:                MaxCondition
  0A:           
    BYTE:               ??
  0B:
    BYTE:               ActiveFlag
  0C:
    FLOAT:              PowerReserves
  0D:
    FLOAT:              PowerCost
}}}

Sample Packet



Variable Descriptions


ObjOpperandCount = 14 STFName: The STF File name for the name and default description of the installation. DefaultName: The STF string reference for the installation name. CustomName: The override name of the container. Use to display Custom Names. Customization: This is the CSTRING used to contain customization variables for this object. OptionsBitmask: This bitmask contains flags to set various option aspects. Note: Installations need 01h set to animate harvesting/manufacturing. Timer: Not really needed for this object. ConditionDamage: This is the current damage taken by an object. MaxCondition: This is the maximum HP(condition) of an object. ActiveFlag: This Flag is set to 1 for Active 0 for Inactive. PowerReserves: The amount of power/energy put into the installation. Can be decimal (its a float). PowerCost: This is a decimal value for the amount of power being consumed PER HOUR of operation. It can be a decimal, but the defaults are integers.



Tags


50% This packet has been partially reversed.