Register for your free account! | Forgot your password?

You last visited: Today at 07:05

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

Advertisement



4351 Login Issue.

Discussion on 4351 Login Issue. within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168
4351 Login Issue.

So I have decided to attempt my own custom server. I've decided on the patch 4351 because it has the new interface with the Cp slot for a second currency or w/e. For the last 5-6 hours or so i have tried to figure out the login sequence. Yes, I did check out CoFuture_Release for some help but that didn't help much at all.Also, looked at TheCOServer but that is so unorganized it confuses me but struggled my way through that sequence and that didn't work either.

AuthStuff - Then
I receive 1052
Send 1004 - "ANSWER_OK"
Send 1006 - Char Info
Receive 1010:74
Send 1010:74
Send 1010:104


Thats as far as I can get, I don't receive any packets after that and not sure if I have the sequence wrong, not sending the right packet, or have the packets structured wrong.

Any help would be very much appreciated.
Thanks.
Santa is offline  
Old 01/25/2011, 07:40   #2
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
Where the client gets stuck?
What does the screen look like when it gets stuck?
FuriousFang is offline  
Old 01/25/2011, 10:15   #3
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
Sounds like a packet splitting issue, I'll check my 4351 source when I get home from college though (3 1/2 Hours).
© Haydz is offline  
Old 01/25/2011, 13:44   #4
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
^
|

Split packets.
_tao4229_ is offline  
Old 01/25/2011, 15:37   #5
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
Okay, yeah I was getting curious so I double checked.



As you can see the 0x4B (Hotkeys) is sent in the same packet as the 0x72 (Get Surroundings).

Good Luck
© Haydz is offline  
Old 01/25/2011, 16:26   #6
 
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168
I do not receive the HotKey packet.



I have got school now.

Fang,

"Logging into the Server..."
Santa is offline  
Old 01/25/2011, 16:38   #7
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
Either you're Structure or Response (0x4A) for the 1010 packet is erroneous.

As generally, once you send the 0x4A, you appear in the conquer world and the login sequence continues.

I'll Post my Data Packet up if it's any help.

Code:
    struct DataPacket
    {
        public ushort Size, Type;
        public uint TimeStamp;
        public uint UID;
        public uint lParam;
        public ushort wParamA;
        public ushort wParamB;
        public ushort wParamC;
        public DataIDs SubType;

        //Properties used in the Jump Packet
        public ushort lParamX { get { return (ushort)(lParam & 0xFFFF); } }
        public ushort lParamY { get { return (ushort)(lParam >> 16); } }
    }
© Haydz is offline  
Old 01/25/2011, 20:57   #8
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
Quote:
Originally Posted by StarBucks View Post
I do not receive the HotKey packet.



I have got school now.

Fang,

"Logging into the Server..."
K, so somewhere in that login sequence, a packet you sent is wrong.
You're probably trying to make the login more complicated than it is. I logged into it fine by just sending what the client requested. What did you say that the last packet sent was? Because that is probably the problem. The client requests everything for login. You shouldn't have to try to send it stuff that it doesn't request for.

Also, when you receive packet 1052: You check the pool for connections already tied to the character, send the message "ANSWER_OK" if the character exists, load the character and send the character info packet (1006), and then you wait for the client to respond.

The client responds to the message packet, NOT the character data. After that, you should get the general packet request (74) which sets the location (as I'm sure you already know). If you get a black screen with the Conquer GUI, then your offsets are wrong.

(There might be more to it depending on the patch - i can't remember right now)

Good luck!
Sincerely,
Fang
FuriousFang is offline  
Old 01/26/2011, 03:15   #9
 
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168
This is my Gen data Packet

PHP Code:
public static byte[] GeneralData(uint IDushort ValueAushort ValueBushort ValueCushort Type)
        {
            
byte[] = new byte[24];
            
WriteUInt16((ushort)P.Length0P);
            
WriteUInt16(10102P);
            
WriteUInt32((uint)Environment.TickCount4P);
            
WriteUInt32(ID8P);
            
WriteUInt32(ValueA10P);
            
WriteUInt16(ValueB14P);
            
WriteUInt16(ValueC16P);
            
WriteUInt16(018P);
            
WriteUInt16(Type20P);
            return 
P;
        } 
C.Send(Packets.GeneralData(1002, 1002, 439, 386, 74));
Is that correct, or do i send the uid instead of the MapID twice?

I can't test atm, have to take dog to the clinic.
Santa is offline  
Old 01/26/2011, 03:49   #10
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
There's a few problems

Code:
[php]public static byte[] GeneralData(uint ID, ushort ValueA, ushort ValueB, ushort ValueC, ushort Type)
        {
            byte[] P = new byte[24];
            WriteUInt16((ushort)P.Length, 0, P);
            WriteUInt16(1010, 2, P);
            WriteUInt32((uint)Environment.TickCount, 4, P);
            WriteUInt32(ID, 8, P);
            WriteUInt32(ValueA, [B]12[/B], P);
            WriteUInt16(ValueB, [B]16[/B], P);
            WriteUInt16(ValueC, [B]18[/B], P);
            WriteUInt16(0, [B]20[/B], P);
            WriteUInt16(Type, 22, P);
            return P;
        }
ID should be the characters unique ID, not the MapID.
ValueA = MapID.
ValueB = X;
ValueC = Y;

Try that packet and everything should be fine
© Haydz is offline  
Old 01/26/2011, 03:52   #11
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
Quote:
Originally Posted by StarBucks View Post
This is my Gen data Packet

PHP Code:
public static byte[] GeneralData(uint IDushort ValueAushort ValueBushort ValueCushort Type)
        {
            
byte[] = new byte[24];
            
WriteUInt16((ushort)P.Length0P);
            
WriteUInt16(10102P);
            
WriteUInt32((uint)Environment.TickCount4P);
            
WriteUInt32(ID8P);
            
WriteUInt32(ValueA10P);
            
WriteUInt16(ValueB14P);
            
WriteUInt16(ValueC16P);
            
WriteUInt16(018P);
            
WriteUInt16(Type20P);
            return 
P;
        } 
C.Send(Packets.GeneralData(1002, 1002, 439, 386, 74));
Is that correct, or do i send the uid instead of the MapID twice?

I can't test atm, have to take dog to the clinic.
Here's the one that I'm using for my 5016. It probably will work:
Code:
Buffer = new byte[36];
WriteUInt16(28, 0, Buffer);
WriteUInt16(1010, 2, Buffer);
WriteUInt32((uint)TimeStamp.GetHashCode(), 4, Buffer);
WriteUInt32(UID, 8, Buffer);
WriteUInt32(dwParam, 12, Buffer);
WriteUInt16(wParam1, 14, Buffer);
WriteUInt16(wParam2, 16, Buffer);
WriteUInt32(wParam3, 18, Buffer);
WriteUInt16(ID, 22, Buffer);
And this is what I'm doing for my general 1010+74:
Code:
generalData.dwParam = client.Entity.MapID;
generalData.wParam2 = client.Entity.X;
generalData.wParam3 = client.Entity.Y;
client.Send(generalData);
Good luck!
Sincerely,
Fang

EDIT: Hahaha, Haydz beat me to the punch.
FuriousFang is offline  
Old 01/26/2011, 03:55   #12
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
Quote:
Originally Posted by FuriousFang View Post
Here's the one that I'm using for my 5016. It probably will work:
Code:
snip
And this is what I'm doing for my general 1010+74:
Code:
snip
Good luck!
Sincerely,
Fang
You seem to be allocating a 36 byte buffer for a 28 byte packet?

Anyway that's different to 4351, which is only a 24 byte packet.

And yeah, I'm depriving myself of sleep for no reason so, need something to occupy my time
© Haydz is offline  
Old 01/26/2011, 04:27   #13
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
Quote:
Originally Posted by © Haydz View Post
You seem to be allocating a 36 byte buffer for a 28 byte packet?

Anyway that's different to 4351, which is only a 24 byte packet.

And yeah, I'm depriving myself of sleep for no reason so, need something to occupy my time
Yah. TQServer = 8 bytes.
FuriousFang is offline  
Old 01/26/2011, 04:42   #14
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
Quote:
Originally Posted by FuriousFang View Post
Yah. TQServer = 8 bytes.
I know that but you stated that it's 5016, which is before the TQServer padding came into effect.
© Haydz is offline  
Old 01/26/2011, 04:44   #15
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Lol'd.
Arcо is offline  
Reply


Similar Threads Similar Threads
[ISSUE]Server Login GM
02/23/2010 - Dekaron Private Server - 7 Replies
Hi guys, I used the search button but could not find anything, the server was running smooth for 3days when we activated the AntiGmHack made by zombe & patched our client we've gotten an error saying at the login screen: There is an error in the server. Please reconnect later. So I went to the database remove my GM tags and I could login. So everyone can login except: DEKARON
[Question] Login issue & autologin professional
03/14/2009 - SRO Private Server - 1 Replies
I am getting an error on the ECSRO server. It is saying "Cannot connect (C10)" not Cannot connect due to server traffic =/ also Does autologin professional actually know how many people are in the server? i mean i turned on slot checking and set it up activate login with slot checking:2 but after it types my user name and pass it just stands there reporting all 0's on server slot Zzz thank you help greatly appreciated :D
What is Causing D-Shop Login Issue?
03/10/2009 - Dekaron - 0 Replies
I hear that the D-shop is locking people out again. Does anyone know people are doing to cause it? I've gone into the D-shop and am still able to log out and back in fine. I don't get stuck at all. Just wondering if anyone has tried D-shop but did get locked out.
login issue
07/17/2007 - Eudemons Online - 2 Replies
for the past wk i have not been able to login to eo. i have re downloaded and reinstalled the program but, it still will not let me login. i have come to epvp asking for help because after emailing tq several times u have not received any response. could some1 here plzz help me. the error mess. i keep receiving is server maintenance or server congested.
L2W on Off US : login issue
02/24/2006 - Lineage 2 - 4 Replies
I belive is a protocol version issue in the .ini Any idea to fix it ?



All times are GMT +2. The time now is 07:05.


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.