Survey (Sequence)

From SWGANH Wiki
Jump to: navigation, search

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



00 0d                                        split up in several Packets

01 18                                        server sequence

00 00                                        dunno

02 ee	 				     data bytes count of all Packets

04 00                                        dunno

d5 b1 64 8a 				     opcode

11 00 00 00      			     Resource Count in all Packets (17 in this case)

                                             Here starts the resource section
 
    08 00 				     length res 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            
                                                on startup?????

31 a3                                           CRC