Survey from the UI (Sequence)

From SWGANH Wiki
Revision as of 07:13, 30 December 2006 by 84.153.220.228 (Talk)

Jump to: navigation, search

Having the Survey ID open, selected a resource and hitting the survey button the client will send the following packet to the server.


05 00 

46 5e ce 80                       

23 00 00 00                       Int 1

16 01 00 00                       Int 2

[UINT64]                          Player ID

[UINT64]                          unused in this packet

18 fa 0c c0                       Opcode *requestsurvey*

[UINT64]                          survey tool ID

[UINICODE]                        resourcename



In the NGE the server responds by sending 3 packets either as multi packet or as standalone.

00 09                              data channel 

wx yz                              server sequence

08 00

74 9e 94 02

23 00                              length following constant string

63 6c 69 65 6e.....                "clienteffect/survey_tool_lumber.cef"
2e 63 65 66                        effekt für das flora surveytool

08 00                              length planet name

74 61 74 6f 6f 69 6e 65            "tatooine"

6c 1c c7 45                        float position_x

24 7e 48 43                        float position_Y

05 76 8f c5                        float position_Z

00 00 00 .... 00                   12 bytes zero in CU Packets, 14 in NGE Packets(unknown purpose)

uv wx yz                           CRC and compression


second packet


00 09

wx yz                              server sequence

04 00                              opcode 1

13 64 2a 6d                        Opcode 2

00 00 00 00                        unknown

00 38 00 00                        unknown in some packets 3a but I got it to work with 38 only

(00 00)                            In some pre cu packets ive seen theres an aditional word herein but crashes the client for me

00 00 00 01                        unknown in some pre cu Packets Ive seen 00 01 00 01 but crashes for me

ff ff ff ff                        unknown

06 00                              length constant string "survey"

73 75 72 76 65 79                  "survey"

00 00 00 00                        unknown

0c 00                              length constant string "start_survey"

73 74 61....
.. 65 79                           "start_survey"

00 00 00 00 00 00 00 00            unknown 56 times 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00

07 00 00 00                        length unicode string with resource name

42 00 69 00 6d 00 61 00
76 00 6f 00 72 00                  res name "B.i.m.a.v.o.r."

00 00 00 00 00 00 00 00 00         unknown 9 times 00


uv wx yz                           crc etc

Now the third packet


00 09

wxyz

02 00

ac 79 7f 87

09 00 00 00                       9 resource concentration points

   6c 1c c6 45                    point1 x cood
   00 00 00 00                    point1 00 (?)
   05 76 90 c5                    point 1 y cood
   aa ed d6 3d                    float concentration (0 - 1.0

   ab cd ef gh                    the same with different coods for points 2 to 9
                                  coords go from (x-32) to (x+32) and from (y-32) to (y+32)
                                  in a 9 Pt Matrix as shown below

01 1c e8                            CRC

(endofpacket)

the player position in the following example was 6371 x; -4590 y

6c 1c c6 45 = 6339	00 00 00 00 	05 76 90 c5 = -4622 	aa ed d6 3d 

6c 1c c6 45= 6339	00 00 00 00 	05 76 8f c5  =-4590	e6 41 c5 3d 

6c 1c c6 45 = 6339	00 00 00 00 	05 76 8e c5 = -4558 	79 35 b3 3d 

6c 1c c7 45 = 6371	00 00 00 00 	05 76 90 c5 = -4622 	cf 46 ce 3d

6c 1c c7 45= 6371	00 00 00 00 	05 76 8f c5 =-4590	c3 43 be 3d

6c 1c c7 45= 6371 	00 00 00 00 	05 76 8e c5 -4558 	9d a8 ad 3d 

6c 1c c8 45= 6403 	00 00 00 00 	05 76 90 c5  -4622 	b9 2b c7 3d 

6c 1c c8 45= 6403 	00 00 00 00 	05 76 8f c5=-4590	12 db b8 3d

6c 1c c8 45= 6403 	00 00 00 00 	05 76 8e c5 -4558 	09 b8 a9 3d 


with these Packets hardcoded in my server I am able to survey, see the survey effect and get the survey data to display in the survey window. It says a waypoint has been created too, though that will be for the future

--Schmunzel 21:53, 6 August 2006 (EDT)