Difference between revisions of "Survey UI (Sequence)"

From SWGANH Wiki
Jump to: navigation, search
 
(Packet Breakdown)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
After the client has sent the radial use Packet to the server detailing the item and the selected radial option, the server responds to the client by sending a packet containing the names and types of the resources of a given resource type that are in the current spawn and thus the client opens up the survey ID
+
=Description=
  
<pre>
+
After the client has sent the radial use Packet to the server detailing the item and the selected radial option, the server responds to the client by sending a packet containing the names and types of the resources of a given resource type that are in the current spawn and the client opens up the survey UI.
  
 +
=Packetflow=
  
00 0d                                        split up in several Packets
+
{{PacketFlow|Survey UI|
 +
<graphviz>
 +
digraph G
 +
{
 +
        rankdir = LR;
 +
        node [shape=record, width=.2, height=.2];
 +
        node [width=1];
 +
        node1 [color="#929292", label = "CLIENT", style="bold", fontname="arial", fontcolor="#929292", URL="Test101"];
 +
        node2 [color="orange", label = "SERVER", style="bold", fontname="arial", fontcolor="#458CAF", URL="Test102"];
 +
        node3 [color="orange", label = "CLIENT", style="bold", fontname="arial", fontcolor="#458CAF", URL="Test101"];
 +
        node1 -> node2:w [color="#929292"];
 +
        node2:w -> node3:e [color="#515FCA", constraint=false];
 +
}
 +
</graphviz>
 +
}}
  
01 18                                        server sequence
+
=Packet Breakdown=
  
00 00                                        dunno
+
{{Box Packet|'''[[ResourceListForSurveyMessage|ResourceListForSurveyMessage]]''' ('''Client''' <-- '''Server''')|
 +
<pre>
 +
04 00                                         
  
02 ee     data bytes count of all Packets
+
D5 B1 64 8A                        OPCODE
  
04 00                                        dunno
+
[UINT32] counter          Resource Count
  
d5 b1 64 8a     opcode
+
                                             Start of the resource section
 
+
11 00 00 00          Resource Count in all Packets (17 in this case)
+
 
+
                                             Here starts the resource section
+
 
   
 
   
     08 00     length res name
+
     [ASCII]                                  Resource Name  
 
+
    49 61 74 68 6d 61 73 65     Name Res 1) Iathmase
+
 
+
    06 36 7b e2 17 00 00 00                  Res ID
+
 
+
    1a 00      length Res Type
+
 
+
    63 6f 72 6e 5f 64 6f 6d 65 73            |corn_domesticated_tatooine
+
    74 69 63 61 74 65 64 5f 74 61     |
+
    74 6f 6f 69 6e 65            |
+
 
+
 
+
 
+
07 00 length name Res 2)
+
 
+
53 61 72 69 74 61 76 Name Res 2) Saritav
+
 
+
.............
+
 
+
05 00      Res Name Length Res xy
+
 
+
46 6f 72 61 6e Res Name Foran
+
 
+
12 e6 f0 d2 17 00 00 Res ID Byte Nr 8 in second packet
+
 
+
3b e9 crc                                    crc
+
 
+
 
+
Packet Nr 2
+
 
+
 
+
00 0d                                          split up Packet opcode
+
 
+
01 19                                          server sequence
+
 
+
00 last byte of last resource id of first Packet
+
 
+
15 00                                          length Res Type     
+
 
+
66 72 75 69 74 5f 66 72 75                      fruit_fruits_tatooine = Res Type
+
 
+
.............
+
 
+
1b 00                                          string length res type last res
+
 
+
73 6f 66 74 77 6f 6f                            softwood_evergreen_tatooine = restype
+
64 5f 65 76 65 72 67
+
72 65 65 6e 5f 74 61 74 6f       
+
6f 69 6e 65  
+
 
+
End resource description
+
 
+
0f 00                                          length string
+
 
+
66 6c 6f 72 61 5f 72 65 73 6f                  flora_resources = what ui to open
+
75 72 63 65 73
+
  
8b be 14 19 18 00 00 00                        id of the resource that will be shown in the window           
+
    [UINT64]                                Resource ID
                                                on startup?????
+
  
31 a3                                          CRC
+
    [ASCII]                                  Resource type *corn_domesticated_tatooine*
  
 +
[ASCII]                                      Name of the UI to open (flora resources)
  
 +
[UINT64]                                    Survey Tool Id
 
</pre>
 
</pre>
 +
}}

Latest revision as of 23:24, 12 April 2007

Description

After the client has sent the radial use Packet to the server detailing the item and the selected radial option, the server responds to the client by sending a packet containing the names and types of the resources of a given resource type that are in the current spawn and the client opens up the survey UI.

Packetflow

 Client <-> Server Sequence: Survey UI

{{{2}}}

Packet Breakdown

Packet: ResourceListForSurveyMessage (Client <-- Server)
04 00                                        

D5 B1 64 8A                     	     OPCODE

[UINT32] counter      			     Resource Count

                                             Start of the resource section
 
    [ASCII]                                  Resource Name 

    [UINT64]                                 Resource ID

    [ASCII]                                  Resource type *corn_domesticated_tatooine*

[ASCII]                                      Name of the UI to open (flora resources)

[UINT64]                                     Survey Tool Id