|
You last visited: Today at 04:39
Advertisement
general data packet doesn't update client
Discussion on general data packet doesn't update client within the CO2 Private Server forum part of the Conquer Online 2 category.
05/26/2013, 20:47
|
#1
|
elite*gold: 0
Join Date: Sep 2012
Posts: 775
Received Thanks: 327
|
general data packet doesn't update client
edit : question in brief was that client doesn't update(jump) with general data packet when it receive the server reply which i've solved it using ninja step from proxy to client to update it's position , thanks pro4never and fang
|
|
|
05/26/2013, 20:53
|
#2
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,377
|
You cannot force the client to jump via packets. It will only display if sent with another entity's uid.
If you need to re-position the client then you use set position, flash step or hook the jump function in the client itself.
|
|
|
05/26/2013, 20:57
|
#3
|
elite*gold: 0
Join Date: Sep 2012
Posts: 775
Received Thanks: 327
|
Quote:
Originally Posted by pro4never
You cannot force the client to jump via packets. It will only display if sent with another entity's uid.
If you need to re-position the client then you use set position, flash step or hook the jump function in the client itself.
|
nvm i was dumb , thanks anyway
|
|
|
05/26/2013, 21:55
|
#4
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,212
Received Thanks: 4,115
|
Try not to delete your questions after they've been answered, because other members won't be able find them later on. In summary, it isn't possible to make the character jump unless you hook the client, use an interaction or other type of action packet, or use the path-finding feature (which can be invoked by the server and make the client jump to a destination).
|
|
|
05/26/2013, 22:50
|
#5
|
elite*gold: 0
Join Date: Sep 2012
Posts: 775
Received Thanks: 327
|
Quote:
Originally Posted by Fаng
Try not to delete your questions after they've been answered, because other members won't be able find them later on. In summary, it isn't possible to make the character jump unless you hook the client, use an interaction or other type of action packet, or use the path-finding feature (which can be invoked by the server and make the client jump to a destination).
|
the question wasn't worth it , i was just trying to rush stuff as i was almost about to finish my bot and get it to work , and yeah i've used ninja step instead of normal jump thanks buddy
edit : i've updated the thread so others can get what it was about
|
|
|
05/26/2013, 22:50
|
#6
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
|
Quote:
Originally Posted by pro4never
You cannot force the client to jump via packets. It will only display if sent with another entity's uid.
If you need to re-position the client then you use set position, flash step or hook the jump function in the client itself.
|
This will update the client screen too.
(You can find the twomovements packet in impulses source)
Here's the code behind the magic. (and no, this isnt a goddamn ninja step - thats gay)
PHP Code:
case "jump": { ushort targetX, targetY; targetX = targetY = 400; var pkt = new TwoMovement { EntityCount = 1, Facing = client.Entity.Facing, MovementType = TwoMovement.Jump, FirstEntity = client.Entity.UID, X = targetX, Y = targetY }; World.SendLocalPacket(client.Entity, pkt.Build(), 0, 16); client.Entity.X = targetX; client.Entity.Y = targetY; World.GetScreen(client); break; }
You were saying?
|
|
|
05/26/2013, 23:46
|
#7
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,212
Received Thanks: 4,115
|
Quote:
Originally Posted by _DreadNought_
This will update the client screen too.
(You can find the twomovements packet in impulses source)
Here's the code behind the magic. (and no, this isnt a goddamn ninja step - thats gay)
PHP Code:
case "jump": { ushort targetX, targetY; targetX = targetY = 400; var pkt = new TwoMovement { EntityCount = 1, Facing = client.Entity.Facing, MovementType = TwoMovement.Jump, FirstEntity = client.Entity.UID, X = targetX, Y = targetY }; World.SendLocalPacket(client.Entity, pkt.Build(), 0, 16); client.Entity.X = targetX; client.Entity.Y = targetY; World.GetScreen(client); break; }
You were saying?
|
That's a coupled interaction (what I was referring to by "other type of action packet"). It might look really weird if it's like that (like the character is holding hands with an imaginary friend), which is why I didn't mention it. I'm really not certain because I've only seen it when the coupled interaction is undergoing. If you end up trying that... tell me how it looks. I'm kinda interested to know.
|
|
|
05/26/2013, 23:51
|
#8
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
|
Quote:
Originally Posted by Fаng
That's a coupled interaction (what I was referring to by "other type of action packet"). It might look really weird if it's like that (like the character is holding hands with an imaginary friend), which is why I didn't mention it. I'm really not certain because I've only seen it when the coupled interaction is undergoing. If you end up trying that... tell me how it looks. I'm kinda interested to know.
|
That packet is/was used for moving monsters. No idea what coupled interactions use..
And as of 5517 - That works fine and looks perfectly normal.
|
|
|
05/26/2013, 23:53
|
#9
|
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
|
Quote:
Originally Posted by Fаng
That's a coupled interaction (what I was referring to by "other type of action packet"). It might look really weird if it's like that (like the character is holding hands with an imaginary friend), which is why I didn't mention it. I'm really not certain because I've only seen it when the coupled interaction is undergoing. If you end up trying that... tell me how it looks. I'm kinda interested to know.
|
Quote:
Originally Posted by _DreadNought_
From what I remember when testing it (I have no clue what Interactions use, that packet I linked is/was used for mobs moving) - It looks perfectly normal and natural like a normal jump. (Could of changed it later clients??)
|
yeah , it works fine, I usually use it to test hunting and stuff , makes players jump everywhere killing mobs, make the team follow me etc, it works fine tho!
|
|
|
05/27/2013, 00:02
|
#10
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,212
Received Thanks: 4,115
|
Quote:
Originally Posted by _DreadNought_
That packet is/was used for moving monsters. No idea what coupled interactions use..
And as of 5517 - That works fine and looks perfectly normal.
|
I don't have the definition of your "TwoMovement" class. What's the packet type in use for it?
|
|
|
05/27/2013, 00:08
|
#11
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
|
Quote:
Originally Posted by Fаng
I don't have the definition of your "TwoMovement" class. What's the packet type in use for it?
|
No idea, opened up the file in notepad - As I said - "(You can find the twomovements packet in impulses source)"
I done this back when 5517 was newish, so at least a year or so ago.
|
|
|
05/27/2013, 00:16
|
#12
|
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 946
|
@Fang, the packet-type is 0x45A (1114)
|
|
|
05/27/2013, 01:10
|
#13
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,212
Received Thanks: 4,115
|
Quote:
Originally Posted by Super Aids
@Fang, the packet-type is 0x45A (1114)
|
Ah ha. Yah, that's the coupled interactions packet, structured like so:
Code:
// Packet Structure:
public ushort Length; // 0 - The length of the packet.
public PacketType Identifier; // 2 - The packet type.
public HoldingHandsAction Action; // 4 - The type of action being performed while holding hands.
public ushort X; // 6 - The x-coordinate of the jump (only used for jumping).
public ushort Y; // 8 - The y-coordinate of the jump (only used for jumping).
private fixed byte _spacer[2]; // 10 - Unknown Space (You're welcome to inform me on what this might be.
public int Amount; // 12 - The amount of people involved with the action.
public int Identity; // 16 - The identity of the player controlling the action.
public int Target; // 20 - The identity of the target player (holding hands with).
It's used while holding hands (why he originally added it I assume). I've never heard of entities using this packet to jump, but if it's possible... then I suppose it could work. Now that people are saying it looks alright, I'm interested to try it myself and see how it looks. I can't image it would look good with one player though. It was added to make two characters jump while holding hands. Who knows though, maybe there's a default that goes back to the single person jump.
|
|
|
05/27/2013, 01:17
|
#14
|
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 946
|
Action 2 is jump
|
|
|
05/27/2013, 01:37
|
#15
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,212
Received Thanks: 4,115
|
Quote:
Originally Posted by Super Aids
Action 2 is jump
|
Code:
/// <summary> This enumerated type defines the types of interactions that can be executed by the client. </summary>
public enum HoldingHandsAction : ushort
{
WALK_WHILE_HOLDING_HANDS = 1,
JUMP_WHILE_HOLDING_HANDS = 2
}
Correct (but that's for coupled jumps). As I said, I'd really be interested to see what else it could be used for with single jumps. I'm just worried that it would try showing the holding hands action with an imaginary character. That's what I experienced, but the interactions action was applied when I tried. It might as well do a regular jump.
|
|
|
|
|
Similar Threads
|
Information about newish subtypes of the general data packet. (Again)
06/18/2011 - CO2 Private Server - 4 Replies
I'm working on a proxy for the Turkish servers, wondering if anyone has information about any of the following subtypes for the general data packet (type 0x271A).
0x6F, 0x7D, 0x81, 0x83-0x88, 0x8A-0x90, 0x92-0x96, 0x98-0x9B, 0x9D-0xA0, 0xA4, 0xA5, 0xAB, 0xAE, 0xAF, 0x193 - server->client (yes, the dashes represent the range)
0x66, 0x6F, 0x7B, 0x84, 0x91, 0x92, 0x94, 0x97, 0x98, 0x99, 0xA1, 0xAD, 0xAC, 0x136, 0x192 - client->server
and 0x77, 0x67, 0x7C, 0x3E8, and 0x3E9 (these I've been...
|
Unknown general data subtypes for client v4267, and "spawn effect" subtype?
03/21/2011 - CO2 Private Server - 19 Replies
Need as much information as possible about any of the following subtypes for the general data packet (type 0x3F2, 1010) for v4267: 0x9B (sent server->client and client->server; When sent server->client, client echoes the packet with character's current coordinates in the 4-byte value, some sort of verification?), 0x9D (sent client->server; no idea.), 0xA0 (sent server->client and client->server; client echoes the packet with the current time in the 4-byte value. But what is it used for?...
|
5065 General Data Packet
07/08/2010 - CO2 Private Server - 8 Replies
Well I'm currently upgrading Hybrid's to 5065.
I successfully got it logged into a 5065 client, updated the characterinfo packet, iteminfo packet, and now I'm working on GeneralData packet.
I'm trying to turn this dump into a structure.
18 00 F2 03 8E A0 49 00 F2 D4 4C 00 00 00 00 00 00 00 00 00 00 00 4A 00 54 51 43 6C 69 65 6E 74
As much as Nullable taught me about dumps, all I got from that is
0x18 = 24, which is the length.
0x3F2 = 1010, which is the packet id.
It's the rest...
|
Packet data for Race effect and Archon Buff - Elven Update ?
10/16/2009 - RF Online - 0 Replies
Since elven update ... I think packet for skills and forces have changed ..
anyone knows race effect and archon buff packet for RF elven update ... ??
|
[Question] Packet data , packet editing ??
10/13/2009 - 9Dragons - 2 Replies
I would like to know :
What is packet data?
How do i get the address for hacking a item in game?
How to use it ??
|
All times are GMT +2. The time now is 04:39.
|
|