Difference between revisions of "RCNO03"

From SWGANH Wiki
Jump to: navigation, search
 
(Deltas Struct)
 
(27 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This is the ONCR 3 Packet. here we give the client the info about how many resources we have, and what to display as resource name
+
{{MissingPacket}}
 +
{{PageHeader|Baseline|RCNO03}}
 +
{|align="center"
 +
|-
 +
||{{RCNOArchitectureNAV}}
 +
|-
 +
|}
 +
<br>
 +
{| border="0" width="90%" cellpadding=6
 +
|-
 +
|valign=top|
 +
===BaseLine Struct===
 +
----
 +
<pre>
 +
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: ??
 +
INT: CurrentUnits
 +
LONG: GlobalResourceID
 +
</pre>
  
{{Box Packet|SMSG_OBJ_UPDATE - ONCR 3 Server --> Client|
+
===Deltas Struct===
 +
----
 
<pre>
 
<pre>
 +
SHORT: UpdateCount
 +
SHORT: UpdateType
 +
{
 +
  00:
 +
    FLOAT: Complexity
 +
  01:
 +
    A_STRING:          STFName
 +
    INT: spacer
 +
    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: Static Flag
 +
  0B:
 +
    INT: CurrentUnits
 +
  0C:
 +
    LONG: GlobalResourceID
 +
</pre>
 +
|valign=top|
  
[UINT16] 05 00                  operand
+
===Variable Descriptions===
 +
----
  
[UINT32] OPCODE                  SMSG_OBJ_UPDATE
+
Obj_OperandCount = 13
  
[UINT64] ID                      ITEM / resource ID
+
STFName:
 +
The STF File name for information on the containers name and default description.
  
[UINT32] ONCR                    ONCR 3 Packet
+
DefaultName:
[UINT8]  3
+
The STF string reference for the containers name.
  
[UINT32] PACKETLENGTH            the length of the Packet following this dword
+
CustomName:
 +
The override name of the container.
 +
Use to display Custom Names.
  
[UINT16] Operand d                perhaps the number of object operands???? highly doubt that
+
Customization:
 +
This is the CSTRING used to contain customization variables for this object.
  
[UINT32] evtl float?????
+
OptionsBitmask:
00 00 80 3f                      //dunno same as the above value is also found in
+
This bitmask contains flags to set various option aspects.
                                  //the nge creo packets I have
+
Note: The same flags are shared among all tangible objects and inherited.
  
[UINT16] length String            length string and string - This string contains the directoryname 
+
Timer:
[String]                          where the stringtable is found in which the name of the resource type
+
Not really needed for Resource Containers.
                                  is stored that will be displayed. WITHOUT @!!!!!!
+
                                  I found this for our Pub 13 client to be : "kb/kb_resources_n"
+
  
[UINT32] 00 00 00 00                     
+
ConditionDamage:
 +
This is the current damage taken by an object.
  
[UINT16]length String            length string and string - this is the selector for the resourcetype name
+
MaxCondition:
[String]                          eg "fungi" look it up in the patch12-TRE  for further info
+
This is the maximum HP(condition) of an object.
  
 +
CurrentUnits:
 +
The current number of resource units inside this container.
  
[UINT32] 00 00 00 00                     
+
GlobalResourceID:
[UINT32] 01 00 00 00
+
A refernece to the ResourceID of the specific type contained inside this container.
 +
It is used to reference the resources specific data.
 +
----
  
[UINT32] 00 00 00 00
+
===Tags===
[UINT32] 00 00 00 00     
+
----
[UINT32] 00 00 00 00
+
{| align="center"
 +
|-
 +
||{{75%}}
 +
|-
 +
|}
 +
|}
  
[UINT32] 00 00 00 00
+
===Sample Packet===
[UINT32] 00 00 00 00
+
----
 
+
<pre>
[UINT16] 00 00
+
 
+
[UINT32] 64 00 00 00
+
 
+
[UINT8]  01
+
 
+
[UINT32] AMOUNT                    this is the amount of the resource
+
 
+
[UINT64] TEMPLATE-ID                this is the ID of the resource template the resource is based upon
+
 
</pre>
 
</pre>
}}
 

Latest revision as of 04:19, 18 September 2011





Baseline - RCNO03

SWGANH Wiki is a repository of Star Wars Galaxies Developer information. This site is only meant to be used by SWGANH Developer team.

RCNO Packet Type QuickNav
RCNO / Resource Container Object
RCNO03 - RCNO06 - RCNO08 - RCNO09


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:		??
INT:		CurrentUnits
LONG:		GlobalResourceID

Deltas Struct


SHORT:			UpdateCount
SHORT:			UpdateType
{
  00:		
    FLOAT:		Complexity
  01:		
    A_STRING:           STFName
    INT:		spacer
    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:		Static Flag
  0B:
    INT:		CurrentUnits
  0C:
    LONG:		GlobalResourceID

Variable Descriptions


Obj_OperandCount = 13

STFName: The STF File name for information on the containers name and default description.

DefaultName: The STF string reference for the containers 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: The same flags are shared among all tangible objects and inherited.

Timer: Not really needed for Resource Containers.

ConditionDamage: This is the current damage taken by an object.

MaxCondition: This is the maximum HP(condition) of an object.

CurrentUnits: The current number of resource units inside this container.

GlobalResourceID: A refernece to the ResourceID of the specific type contained inside this container. It is used to reference the resources specific data.


Tags


75% This packet has been partially reversed.

Sample Packet