|
You last visited: Today at 20:07
Advertisement
Call me a noob but I need help with this
Discussion on Call me a noob but I need help with this within the CO2 Private Server forum part of the Conquer Online 2 category.
06/21/2010, 20:27
|
#1
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
|
Call me a noob but I need help with this
Thanks Impulse #Request _Delete_
|
|
|
06/21/2010, 21:03
|
#2
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
I think you're biting off way more than you can chew.
Anywho,
Code:
Console.WriteLine("Made it to 1086");
|
|
|
06/21/2010, 21:16
|
#3
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
|
Thanks Impulse #Request _Delete_
|
|
|
06/21/2010, 21:23
|
#4
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by Eliminationn
It's just there as I little test to see if it gets there. And it also helps me when it comes to auth to get an understanding what it does first then after.
|
What I'm saying is, do you notice that "Made it to 1086 isn't on the console.
Find out the method for that is sent, and the problem should be there.
|
|
|
06/21/2010, 21:39
|
#5
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
|
Thanks Impulse #Request _Delete_
|
|
|
06/21/2010, 22:03
|
#6
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
What I'm saying is OBVIOUSLY the packet isn't being sent, otherwise it WOULD say Made it to 1086...
|
|
|
06/21/2010, 22:23
|
#7
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
|
Thanks Impulse #Request _Delete_
|
|
|
06/21/2010, 22:29
|
#8
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Then don't you think there may be a difference between teh 2 packets?
|
|
|
06/21/2010, 23:12
|
#9
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 912
|
Your AuthCon packet should have:
Code:
WriteUInt16(8, 0, Buffer);
It works with 5165 because it doesn't require this packet.
|
|
|
06/22/2010, 02:05
|
#10
|
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
|
Oh boy, epic copy and pasting from my source. I wouldn't bother if you atleast knew what you're doing..
Code:
public void Auth_AnnounceNewconnection()
{
//GenerateSeed and send packet
}
|
|
|
06/22/2010, 04:45
|
#11
|
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
|
Quote:
Originally Posted by ImmuneOne
Oh boy, epic copy and pasting from my source. I wouldn't bother if you atleast knew what you're doing..
|
You outweigh him when it comes to copy and pasting..
Keeping on topic, the whole password seed packet is wrong.
Code:
public AuthCon()
{
Buffer = new byte[8];
WriteUInt16(7, 0, Buffer);
WriteUInt16(0x423, 2, Buffer);
WriteUInt16(Seed, 4, Buffer);
}
First 2 bytes should contain the length of the packet, which is not 7 obviously..
Code:
public AuthCon()
{
Buffer = new byte[8];
WriteUInt16(8, 0, Buffer);
WriteUInt16(0x423, 2, Buffer);
WriteUInt32(Seed, 4, Buffer);
}
|
|
|
06/22/2010, 16:12
|
#12
|
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
|
Very useful post.
|
|
|
06/22/2010, 21:55
|
#13
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
|
Thanks Impulse #Request _Delete_
|
|
|
06/23/2010, 04:59
|
#14
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
So exactly what do YOU want it to do next?
|
|
|
06/23/2010, 05:18
|
#15
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 912
|
Quote:
Originally Posted by Eliminationn
It it finishes the WHOLE WinSocket.ReciveData but don't know what to do next. ?
|
So the auth server gets a new connection, send the seed packet.
Then the client will send the auth server a packet, id 1086.
That packet has the username, password, server, etc.
Then you send the auth response packet, and the client will connect to the game server.
|
|
|
All times are GMT +2. The time now is 20:07.
|
|