Survey from the UI (Sequence)
From SWGANH Wiki
Having the Survey ID open, selected a resource and hitting the survey button the client will send the *requestsurvey* 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.
08 00 74 9e 94 02 Opcode *PlayClientEffectLocMessage* [ASCII] "clienteffect/survey_tool_lumber.cef" effekt für das flora surveytool [ASCII] "tatooine" [FLOAT] position_x [FLOAT] position_y [FLOAT] position_Z [UINT64] 00 [UINT32] 12 bytes zero in CU Packet, 14 in NGE Packet
second packet (ChatSystemMessage)
00 09 wx yz server sequence 04 00 opcode 1 13 64 2a 6d Opcode 2 ChatSystemMessage 00 unknown 00 00 00 00 unknown 38 00 00 00 size 00 00 unknown 01 unknown ff ff ff ff unknown, color ? 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)