Register for your free account! | Forgot your password?

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

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

Advertisement



Help with Impulse's 5165

Discussion on Help with Impulse's 5165 within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
xBlackPlagu3x's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 286
Received Thanks: 71
Help with Impulse's 5165

I've looked at the database, looked through the code, looked at code that wasn't even relevant to the error and I still cannot find the error to the following, I just don't understand it. (Wow, what it be real easy...)

Error Message:

Line 40-51 in Program.cs:

Database(codatabase), Table(Configuration), Column(EntityUID), Data(1000230)

Any information needed other than that? Thanks for those of you who help me out, I need Impulse's source fixed up so I can have a chance to learn as many others have done from this source.
xBlackPlagu3x is offline  
Old 09/12/2011, 07:35   #2
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
it means your database connection wasn't successful.
-impulse- is offline  
Old 09/12/2011, 09:21   #3
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
EntityUID is null.

It's only assigned, if MySqlReader r is reading.

If your code does not enter through
if (r.Read())
{
}
Then it will not be assigned, so that's where your problem is.

As Impulse said, there is no database connection.
BaussHacker is offline  
Old 09/14/2011, 02:21   #4
 
xBlackPlagu3x's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 286
Received Thanks: 71
I'm such an idiot. It was because I didn't set my ServerName to the one I put in the database. So THAT is fixed.

But I've encountered another problem and I can obviously tell it has something to do with the EntityUID.

ErrorCode:

Where the null reference was handled is:

And the line of code at line 301 in Program.cs is:

Don't flame this and call me an idiot. I at least know what the problem is, just not how to go about solving it.
xBlackPlagu3x is offline  
Old 09/14/2011, 11:31   #5
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
arg1's length is not equal or above position.
BaussHacker is offline  
Old 09/16/2011, 04:26   #6
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Tada....

Code:
try
                            {
                                Client.Exchange = false;

                                Client.Action = 1;
                                ushort position = 7;
                                uint PacketLen = BitConverter.ToUInt32(arg1, position);
                                int JunkLen = BitConverter.ToInt32(arg1, position += 4); 
                                int Len = BitConverter.ToInt32(arg1, position += (ushort)(JunkLen + 4));
                                byte[] pubKey = new byte[Len];
                                position += 4;
                                string PubKey = System.Text.ASCIIEncoding.ASCII.GetString(arg1, position, Len);

                                Client.Cryptography = Client.DHKeyExchance.HandleClientKeyPacket(PubKey, Client.Cryptography);
                            }
Spirited is offline  
Thanks
1 User
Old 03/09/2013, 06:03   #7
 
N.I.G.H.T.M.A.R.E's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 110
Received Thanks: 13
Man, I could not understand his explanation to fix this bug, can you explain again?
N.I.G.H.T.M.A.R.E is offline  
Old 03/09/2013, 06:54   #8
 
EOS 60D's Avatar
 
elite*gold: 0
Join Date: Feb 2013
Posts: 94
Received Thanks: 13
Its a copy paste work dude there is no need to understand..
EOS 60D is offline  
Old 03/09/2013, 23:46   #9
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
There are two problems being discussed by this thread. One of the problems that was encountered was the null exception with the mysql reader. That happened because the MySql database wasn't set up correctly. The second problem was causing the client to hang due to some offset calculation issues. I fixed those calculations to be correct. That's all.
Spirited is offline  
Reply


Similar Threads Similar Threads
Impulse's source npc
03/06/2011 - CO2 Private Server - 0 Replies
Can anyone tell me why this does not work?It's the same id as in the npcs.txt file(111110) but it still chooses the default in the "switch (client.ActiveNpc)" is there something wrong with the "(npcRequest.OptionID)" or? public static void GetDialog(NpcRequest npcRequest, GameState client) { if (npcRequest == null || client == null || client.Entity == null) return; Dialogs dialog = new Dialogs();
[Release] Max Players/GM & PM Allowed To Connect ( Impulse's 5165 )
06/19/2010 - CO2 PServer Guides & Releases - 8 Replies
Here's a VERY quick code for setting the maximum number of client's aloud online. FIrst in Program.cs under public static DateTime StartDate; Add public static int MaxPlayers = 200;
[Release] Few commands ( Impulse's 5165 )
06/18/2010 - CO2 PServer Guides & Releases - 8 Replies
Here's a few commands... In console you can't type @restart to restart so add this at <Program.cs under public static void CommandsAI(string command) { try { string data = command.Split(' '); switch (data)



All times are GMT +1. The time now is 01:52.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.