Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 01:32

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Conquer 1.0 Question] Client Issues with Chat?

Discussion on [Conquer 1.0 Question] Client Issues with Chat? within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
[Conquer 1.0 Question] Client Issues with Chat?

Hey everyone,

I've been having problems with my chat from Conquer 1.0. I'm using the 4267 client. Is it my coding or is there something wrong with the way the client handles chat input? Is there a way to even fix it?

I'll type something in and it'll add **** to it afterwords like this:


It's probably the client but let me know...
Sincerely,
Fang
FuriousFang is offline  
Old 11/13/2010, 21:03   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
are you sure you aren't reading into the seal of the packet?.... only thing that comes to mind.
pro4never is offline  
Thanks
1 User
Old 11/13/2010, 23:49   #3
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
The message is spawned to the game before it's sent to my message packet. So... it's either a spawning problem (if that's how chat messages are spawned) OR a client problem.
FuriousFang is offline  
Old 11/14/2010, 00:11   #4
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
client problem for me too
_tao4229_ is offline  
Thanks
1 User
Old 11/14/2010, 00:21   #5


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Theres nothing wrong with the 4267 client...they wouldnt have been able to use it otherwise would they x.x
Korvacs is offline  
Thanks
1 User
Old 11/14/2010, 00:21   #6
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
Quote:
Originally Posted by _tao4229_ View Post
client problem for me too
How are the chat windows spawned? Maybe it's adding extra offsets.
FuriousFang is offline  
Old 11/14/2010, 00:25   #7


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Post your chat handler please, and packet structure.
Korvacs is offline  
Thanks
1 User
Old 11/14/2010, 00:35   #8
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
Quote:
Originally Posted by Korvacs View Post
Post your chat handler please, and packet structure.
It's the same as impulse's.
Here's the packet structure for Chat:

Length [2] ushort
Color [4] Uint32
ChatType [8] Uint32
From [18] String with Length
To [19] String with Length
Message [21] String with Length

The offsets are correct. It doesn't have to do with the message packet (I don't think)
FuriousFang is offline  
Old 11/14/2010, 02:33   #9
 
bone-you's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 1,491
Received Thanks: 536
This was actually a problem on official for some people. I forget how it was fixed, but I too had the problem for a short while. But.. I'm not sure if it was because of my proxy bot or not at the time. I mostly only passed packet through and didn't touch them. Don't remember
bone-you is offline  
Thanks
1 User
Old 11/14/2010, 02:38   #10
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
Quote:
Originally Posted by bone-you View Post
This was actually a problem on official for some people. I forget how it was fixed, but I too had the problem for a short while. But.. I'm not sure if it was because of my proxy bot or not at the time. I mostly only passed packet through and didn't touch them. Don't remember
I'm using an official client now... same problem =\
FuriousFang is offline  
Old 11/14/2010, 16:03   #11


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Quote:
Originally Posted by FuriousFang View Post
It's the same as impulse's.
Here's the packet structure for Chat:

Length [2] ushort
Color [4] Uint32
ChatType [8] Uint32
From [18] String with Length
To [19] String with Length
Message [21] String with Length

The offsets are correct. It doesn't have to do with the message packet (I don't think)
Your offsets are incorrect for the 4267 client.

Should be, 17, 18, 19, 20 your off by 1 byte.
Korvacs is offline  
Thanks
1 User
Old 11/14/2010, 20:19   #12
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
Quote:
Originally Posted by Korvacs View Post
Your offsets are incorrect for the 4267 client.

Should be, 17, 18, 19, 20 your off by 1 byte.
If I use those offsets, it doesn't work. Those offsets I use for the serialize version of the packet (for login and such). Here's my Deserialize Message packet:

Code:
public void Deserialize(byte[] Bytes)
        {
            this.Color = BitConverter.ToUInt32(Bytes, 4);
            this.ChatType = BitConverter.ToUInt32(Bytes, 8);
            this._From = Encoding.ASCII.GetString(Bytes, 18, Bytes[17]);
            this._To = Encoding.ASCII.GetString(Bytes, 19 + this._From.Length, Bytes[18 + this._From.Length]);
            this.Message = Encoding.ASCII.GetString(Bytes, (21 + this._From.Length) + this._To.Length, Bytes[(20 + this._From.Length) + this._To.Length]);
      // I took this from Hybrid's source xP      
        }
Here's my Serialize Message Packet:
Code:
public byte[] Serialize()
        {
            byte[] Packet = new byte[(((25 + this._From.Length) + this._To.Length) + this.Message.Length)];
            PacketBuilder.WriteUInt16((ushort)Packet.Length, Packet, 0);
            PacketBuilder.WriteUInt16(1004, Packet, 2);
            PacketBuilder.WriteUInt32(this.Color, Packet, 4);
            PacketBuilder.WriteUInt32(this.ChatType, Packet, 8);
            Packet[16] = 4;
            PacketBuilder.WriteStringWithLength(this._From, Packet, 17);
            PacketBuilder.WriteStringWithLength(this._To, Packet, (ushort)(18 + this._From.Length));
            PacketBuilder.WriteStringWithLength(this.Message, Packet, (ushort)((20 + this._From.Length) + this._To.Length));
            return Packet;
        }
FuriousFang is offline  
Old 11/14/2010, 21:25   #13


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Ok well, turns out you are using the offsets i told you to use, dunno how you managed that one but oh well.

Also you not sending the players UID in the packet, it should go directly after the chattype, and if that doesnt fix it then its something you have done in your source, since i have the chat packet working perfectly on an official 4267 client.
Korvacs is offline  
Thanks
1 User
Old 11/14/2010, 22:15   #14
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
Quote:
Originally Posted by Korvacs View Post
Ok well, turns out you are using the offsets i told you to use, dunno how you managed that one but oh well.
I know how to code packets... Saint taught me that when I was helping Tommy develop Elite CoEmu.

Quote:
Originally Posted by Korvacs View Post
Also you not sending the players UID in the packet, it should go directly after the chattype, and if that doesnt fix it then its something you have done in your source, since i have the chat packet working perfectly on an official 4267 client.
I should have thought of that... it's in the other patches. Thanks.
I put it at offset 12... still not working. =\ It still sends random characters.

Here's the new one now:

Code:
public void Deserialize(byte[] Bytes)
        {
            this.Color = BitConverter.ToUInt32(Bytes, 4);
            this.ChatType = BitConverter.ToUInt32(Bytes, 8);
            this.ClientUID = BitConverter.ToUInt32(Bytes, 12);
            this._From = Encoding.ASCII.GetString(Bytes, 18, Bytes[17]);
            this._To = Encoding.ASCII.GetString(Bytes, 19 + this._From.Length, Bytes[18 + this._From.Length]);
            this.Message = Encoding.ASCII.GetString(Bytes, (21 + this._From.Length) + this._To.Length, Bytes[(20 + this._From.Length) + this._To.Length]);
            
        }

        public byte[] Serialize()
        {
            byte[] Packet = new byte[(((25 + this._From.Length) + this._To.Length) + this.Message.Length)];
            PacketBuilder.WriteUInt16((ushort)Packet.Length, Packet, 0);
            PacketBuilder.WriteUInt16(1004, Packet, 2);
            PacketBuilder.WriteUInt32(this.Color, Packet, 4);
            PacketBuilder.WriteUInt32(this.ChatType, Packet, 8);
            PacketBuilder.WriteUInt32(this.ClientUID, Packet, 12);
            Packet[16] = 4;
            PacketBuilder.WriteStringWithLength(this._From, Packet, 17);
            PacketBuilder.WriteStringWithLength(this._To, Packet, (ushort)(18 + this._From.Length));
            PacketBuilder.WriteStringWithLength(this.Message, Packet, (ushort)((20 + this._From.Length) + this._To.Length));
            return Packet;
        }
FuriousFang is offline  
Old 11/15/2010, 00:01   #15


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Are you resending the chat packet after the server receives it?
Korvacs is offline  
Thanks
1 User
Closed Thread


Similar Threads Similar Threads
EQ2 Client Issues, Need Fix
07/09/2010 - General Gaming Discussion - 0 Replies
OK so I either need a solid link to the client download, or, I need the following .dll file fixed. dll issue: Bad file - js3250.dll Error: The procedure entry point JS_IsSystemObject could not be located in the dynamic link library js3250.dll This error occurs when I attempt to launch the game through "EverQuest2.exe" rather then launching it through EQ2.exe like normal.
CLient issues?
09/25/2009 - CO2 Private Server - 0 Replies
I normally wont post questions, but I cant figure it out and need a lil guidance... I think I am having a Client issue But unsure because when I use another servers client I cant even connect to their servers (their down as fast as they come up). I have the login and game servers working correctly and able to see myself log in to the account server. I get to the point on the client that I should be logging onto the game server and I just hang there (and it doesnt say logging into...
Conquer multi-client question.
06/05/2009 - Conquer Online 2 - 10 Replies
I've looked everywhere online and surfed this forum much as possible. My question is for conquer multi-clients. I use multi client just so that I can log in that 3rd window for my fiance's toon. I know it's under cheating at the Co.91 website but how strict do they go about acting on these. Has anyone ever had an account or IP Banned randomly for multi-client? Or caught in any way? I want to know if it's something that probably never will get noticed, or if they give a warning. Our archers...
Mac Issues-Using Conquer with Paralells
08/05/2007 - Conquer Online 2 - 0 Replies
Hey. I have been using my standard windows (xp) machine to play conquer for the past year or so, and recently I went and bought a mac. I use some software called parallels to run xp on the mac, and downloaded the conquer client to start playing. Soon I discovered every time I tried to run the client I got an error - the send/don't send error thing. Does anyone know how to fix this, or even a different way to run conquer on a mac? Thanks guys.
Issues loading conquer.
06/03/2006 - Conquer Online 2 - 1 Replies
I just installed Conquer and I loaded it. I waited till the AutoPatch Updating thing finished, when it did it was in the second window, the one that shows Loading Conquer... on the corner, and then the stupid error message comes up. _____________________________________ dx error. please check your video card driver _____________________________________ I dont know why it doesnt work. I keep trying and it shows the same error. I had this error message before but only when I...



All times are GMT +2. The time now is 01:32.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.