Users browsing this thread: 2 Guest(s)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic Packet Informations World
07-28-2009, 02:29 PM, (This post was last modified: 07-28-2009, 06:16 PM by Neo.)
#1
Basic Packet Informations World
Hello together,
i now try to release some little packet informations (maybe some of you have more ideas what they can mean Wink).

For the first, some packets are easy to understand , some are hard.

Lets start with the initial packets.

After Clients connect, server have to send 5 times the
"00 00 00 00 00 00 05" packet.
(A little note, if your client sends 00 00 00 00 00 00 06 packet, than some packets are lost or something is wrong)

After this , you get a initial data packet , i will explain what it is .
Example :
Code:
82 b6 17 c6 48 04 01 00 00 3d 71 06 0e 00 01 00 00 00 b6 17 c6 48 01 44 00 34 00 72 65 73 6f 75
72 63 65 2f 77 6f 72 6c 64 73 2f 66 69 6e 61 6c 5f 77 6f 72 6c 64 2f 73 6c 75 6d 73 5f 62 61 72
72 65 6e 73 5f 66 75 6c 6c 2e 6d 65 74 72 00 2b 00 48 61 6c 6c 6f 77 65 65 6e 5f 45 76 65 6e 74
2c 57 69 6e 74 65 72 33 48 61 6c 6c 6f 77 65 65 6e 46 6c 79 45 79 65 54 53 45 43 00 0a 80 e5 e7
cb c0 12 00 00 00 00 0a 80 e4 14 61 46 e4 00 00 00 00 08 80 b2 4e 00 08 00 08 02 08 80 b2 52 00
1e 00 08 02 08 80 b2 54 00 0d 00 08 02 08 80 b2 4f 00 08 00 08 02 08 80 b2 51 00 1e 00 08 02 08
80 b2 11 00 32 00 08 02 16 80 bc 45 03 11 00 00 02 00 00 00 11 00 32 00 00 00 00 00 00 00 00 16
80 bc 45 00 02 00 00 02 00 00 00 cc 00 0c 00 00 00 00 00 00 00 00 16 80 bc 45 00 03 00 00 0b 00
00 00 37 02 96 00 00 00 00 00 00 00 00 16 80 bc 45 00 04 00 00 2d 00 00 00 23 04 0a 00 00 00 00
00 00 00 00 16 80 bc 45 00 05 00 00 2d 00 00 00 20 04 0a 00 00 00 00 00 00 00 00 16 80 bc 45 00
06 00 00 2d 00 00 00 19 04 05 00 00 00 00 00 00 00 00 16 80 bc 45 00 07 00 00 2d 00 00 00 42 04
05 00 00 00 00 00 00 00 00 16 80 bc 45 00 08 00 00 34 00 00 00 83 02 c8 00 00 00 00 00 00 00 00
08 80 b2 36 04 00 00 08 02 16 80 bc 45 03 36 04 00 40 00 00 00 36 04 00 00 00 00 00 00 00 00 00
16 80 bc 45 00 09 00 00 40 00 00 00 7b 04 01 00 00 00 00 00 00 00 00 16 80 bc 45 00 0a 00 00 49
00 00 00 e3 03 05 00 00 00 00 00 00 00 00 16 80 bc 45 00 0b 00 00 49 00 00 00 7b 04 0e 00 00 00
00 00 00 00 00 16 80 bc 45 00 0c 00 00 4c 00 00 00 15 04 0b 00 00 00 00 00 00 00 00 16 80 bc 45
00 0d 00 00 4c 00 00 00 06 04 0b 00 00 00 00 00 00 00 00 16 80 bc 45 00 0e 00 00 4c 00 00 00 19
04 07 00 00 00 00 00 00 00 00 16 80 bc 45 00 0f 00 00 53 00 00 00 15 04 01 00 00 00 00 00 00 00
00 16 80 bc 45 00 10 00 00 53 00 00 00 19 04 01 00 00 00 00 00 00 00 00 08 80 b2 3a 04 00 00 08
02 16 80 bc 45 03 3a 04 00 53 00 00 00 3a 04 00 00 00 00 00 00 00 00 00 16 80 bc 45 00 11 00 00
53 00 00 00 06 04 01 00 00 00 00 00 00 00 00 16 80 bc 45 00 12 00 00 5f 00 00 00 7c 04 0f 00 00
00 00 00 00 00 00 16 80 bc 45 00 13 00 00 5f 00 00 00 07 04 0f 00 00 00 00 00 00 00 00 16 80 bc
45 00 14 00 00 62 00 00 00 06 04 01 00 00 00 00 00 00 00 00 08 80 b2 35 04 00 00 08 02 16 80 bc
45 03 35 04 00 62 00 00 00 35 04 00 00 00 00 00 00 00 00 00 16 80 bc 45 00 15 00 00 62 00 00 00
15 04 01 00 00 00 00 00 00 00 00 16 80 bc 45 00 16 00 00 35 01 00 00 07 04 03 00 00 00 00 00 00
00 00 16 80 bc 45 00 17 00 00 35 01 00 00 1d 04 05 00 00 00 00 00 00 00 00 16 80 bc 45 00 18 00
00 35 01 00 00 42 04 0a 00 00 00 00 00 00 00 00 08 80 b2 3b 04 00 00 08 02 16 80 bc 45 03 3b 04
00 36 01 00 00 3b 04 00 00 00 00 00 00 00 00 00 16 80 bc 45 00 19 00 00 36 01 00 00 07 04 01 00
00 00 00 00 00 00 00 16 80 bc 45 00 1a 00 00 48 01 00 00 77 04 05 00 00 00 00 00 00 00 00 16 80
bc 45 00 1b 00 00 48 01 00 00 03 04 05 00 00 00 00 00 00 00 00 16 80 bc 45 00 1c 00 00 48 01 00
00 76 04 0a 00 00 00 00 00 00 00 00 16 80 bc 45 00 1d 00 00 48 01 00 00 e4 03 0a 00 00 00 00 00
00 00 00 16 80 bc 45 00 1e 00 00 48 01 00 00 7c 04 0a 00 00 00 00 00 00 00 00 08 80 b2 3c 04 00
00 08 02 16 80 bc 45 03 3c 04 00 4e 01 00 00 3c 04 00 00 00 00 00 00 00 00 00 16 80 bc 45 00 1f
00 00 4e 01 00 00 07 04 05 00 00 00 00 00 00 00 00 16 80 bc 45 00 20 00 00 5d 01 00 00 7b 04 05
00 00 00 00 00 00 00 00 16 80 bc 45 00 21 00 00 5d 01 00 00 20 04 0f 00 00 00 00 00 00 00 00 16
80 bc 45 00 22 00 00 d7 01 00 00 23 04 0f 00 00 00 00 00 00 00 00 16 80 bc 45 00 23 00 00 d7 01
00 00 1d 04 05 00 00 00 00 00 00 00 00 16 80 bc 45 00 24 00 00 36 02 00 00 37 02 0a 00 00 00 00
00 00 00 00 16 80 bc 45 00 25 00 00 74 02 00 00 34 02 1e 00 00 00 00 00 00 00 00 16 80 bc 56 00
26 00 00 c5 a7 00 00 7e 02 16 00 00 00 00 00 00 00 00 16 80 bc 56 00 27 00 00 c5 a7 00 00 cc 00
19 00 00 00 00 00 00 00 00 16 80 bc 56 00 28 00 00 c5 a7 00 00 41 02 28 00 00 00 00 00 00 00 00
16 80 bc 56 00 29 00 00 c5 a7 00 00 09 04 16 00 00 00 00 00 00 00 00 16 80 bc 56 00 2a 00 00 c5
a7 00 00 16 04 01 00 00 00 00 00 00 00 00
....H....=q..........H.D.4.resource/worlds/final_world/slums_barrens_full.metr.+.Halloween_Event
,Winter3HalloweenFlyEyeTSEC................aF........N........R........T........O........Q......
....2......E..........2...........E......................E........7.............E....-...#......
.......E....-... .............E....-.................E....-...B.............E....4..............
...6........E.6..@...6.............E....@...{.............E....I.................E....I...{.....
........E....L.................E....L.................E....L.................E....S.............
....E....S.................:........E.:..S...:.............E....S.................E...._...|....
.........E...._.................E....b.................5........E.5..b...5.............E....b...
..............E....5.................E....5.................E....5...B.............;........E.;.
.6...;.............E....6.................E....H...w.............E....H.................E....H..
.v.............E....H.................E....H...|.............<........E.<..N...<.............E..
..N.................E. ..]...{.............E.!..]... .............E."......#.............E.#....
................E.$..6...7.............E.%..t...4.............V.&......~.............V.'........
............V.(......A.(...........V.)....................V.*.................

Lets look into it:
82 is a header, mostly a 0x82 header is sent when it approve a action you do .
After this, the next 4 bytes seems like a little timestamp (but not for real time, it seems to be the SimTime Timer)
Code:
b6 17 c6 48

After this you will find something like this :
Code:
resource/worlds/final_world/slums_barrens_full.metr.+.Halloween_Event
,Winter3HalloweenFlyEyeTSEC
This will tell your client, which world file it have to load (The Barrens are "Richland & Westview", you can change there the values to every metr file that exists (for example, to international/it.metr for international, and yes you can load the constructs with it too and the white hallways).

After the metr file you can add events and TSec for the for the world, it will overwrite the client tsec(weather) settings with it.

Lets go on to the next interesting part of these packet :
Code:
00 00 00 00 0a 80 [b]e4 14 61 46 e4 00 00 00[/b] 00

The bytes "e4 14 61 46 e4 00 00 00" have to be read as little endian uint64 format , cause this is your money ..in this case it is 3.829.817.620 $info.

The Rest of the packet is atm widely unknown from me ..i just resend the data for it Wink
I first thought this could be RezIDs but this seems not real.

The world coordinates where the player is spawned and the weared items, is stored in an another packet, that i would explain later in some days...i got it work to modify the player position.
Reply
07-28-2009, 05:50 PM,
#2
RE: Basic Packet Informations World
please stop saying "read backwards"
its a little endian uint64
IS THAT SO HARD TO REMEMBER ?
Reply
07-28-2009, 06:14 PM, (This post was last modified: 07-28-2009, 06:15 PM by Neo.)
#3
RE: Basic Packet Informations World
lol yeah come on its okay, its just for easy understanding for non-programmers Tongue

But for you ..i will change it Wink

I have actually some problems to understand how the SimTime is initialized and on which it depends...
Reply
07-28-2009, 08:31 PM,
#4
RE: Basic Packet Informations World
anyone who wants to help should know what endianness is, nothing to do with programming
Reply


Forum Jump: