Hello, this my first project messing with packets, so get it easy guys.
After sending a jump packet to server I can see from another account logged in that the jump was made, but client that i sent the packet didnt update the hero position (jump animation on client was not made). How can I update the client, I mean, how can i synchronize it?
Shouldn't it working by sending the same jump packet to client? I guess no, right...
I can call jump function from memory, but at the end it will send jump packet again to server, so no point doing that way...
Would it work if I use same packet that I received from others players jump and construct one with my hero info and send it to client? (I suppose that there is some hero info on this packet)
Here are some jump packets, one received (server->client) from someone jumping around and one packet sent by jumping with mouseclick.
Thank you in advance. I can't enjoy a sunday break in other way.
After sending a jump packet to server I can see from another account logged in that the jump was made, but client that i sent the packet didnt update the hero position (jump animation on client was not made). How can I update the client, I mean, how can i synchronize it?
Shouldn't it working by sending the same jump packet to client? I guess no, right...
I can call jump function from memory, but at the end it will send jump packet again to server, so no point doing that way...
Would it work if I use same packet that I received from others players jump and construct one with my hero info and send it to client? (I suppose that there is some hero info on this packet)
Here are some jump packets, one received (server->client) from someone jumping around and one packet sent by jumping with mouseclick.
Code:
27-05-2018 20:15:15 [RECV] Type: 2102 Length: 25 =================================================================== 19 00 36 08 08 fc b3 c9 02 18 00 48 ac 81 86 0f ; ..6........H.... 60 a1 01 68 00 70 00 78 00 ; `..h.p.x. [DECODED] Decoded-length: 32 Decoded-Fields: 7 Field's key : 1, 3, 9, 12, 13, 14, 15, Field's type: 0, 0, 0, 0, 0, 0, 0, Field's size: 4, 4, 4, 4, 4, 4, 4, 19 00 36 08 fc 59 52 00 00 00 00 00 ac 80 e1 01 | ..6..YR......... a1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
Code:
27-05-2018 20:29:21[SENT] Type: 2102 Length: 47 =================================================================== 2f 00 36 08 08 fb b3 c9 02 38 b2 03 40 d3 03 48 ; /.6......8..@..H d3 96 c3 0f 60 89 01 68 06 70 af 03 78 d2 03 88 ; ....`..h.p..x... 01 ea 07 a0 01 ff ff ff ff ff ff ff ff ff 01 ; ............... [DECODED] Decoded-length: 56 Decoded-Fields: 11 Field's key : 1, 7, 8, 9, 12, 13, 14, 15, 17, 20, 0, Field's type: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, Field's size: 4, 4, 4, 4, 4, 4, 4, 4, 4, 8, 8, 2f 00 36 08 fb 59 52 00 b2 01 00 00 d3 01 00 00 | /.6..YR......... 53 cb f0 01 89 00 00 00 06 00 00 00 af 01 00 00 | S............... d2 01 00 00 ea 03 00 00 ff ff ff ff ff ff ff ff | ................ fd 7e bf df ed 76 bb dd | .~...v..