Register for your free account! | Forgot your password?

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

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

Advertisement



[Help] Program.cs minor (yet annoying) error

Discussion on [Help] Program.cs minor (yet annoying) error within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
[Help] Program.cs minor (yet annoying) error

okay, so let me cut to the chase. I have been getting this problem in my program.cs file and I have not yet figured out how to solve it... I tried commenting it but yet nothing has happened. when I debug the build the whole solution it brings up the server command prompt with all the data loading then stops at the bottom saying this error (NullReferenceException):

Quote:
Object reference is not set to an instance of an object
on this piece of code:

Code:
[COLOR="Red"]if (EntityUID.Now == 0)[/COLOR]
                {
                    Console.Clear();
                    Console.WriteLine("Database error. Please check your MySQL. Server will now close.");
                    Console.ReadLine();
                    return;
                }
sorry for the noob-ness I have not been coding for a while now...

any ideas would be appreciated (:
killersub is offline  
Old 06/13/2011, 20:04   #2
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
EntityUID.Now has no data to compare it with 0!??
check if UntityUID.Now has anydata or not , before comparing it , that what would i do though!
Mr_PoP is offline  
Old 06/13/2011, 21:43   #3
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
Quote:
Originally Posted by Mr_PoP View Post
EntityUID.Now has no data to compare it with 0!??
check if UntityUID.Now has anydata or not , before comparing it , that what would i do though!
what do you mean by has no data to compare with 0?

this code defines the EntityUID.Now

Code:
public uint Now
        {
            get;
            set;
        }
killersub is offline  
Old 06/13/2011, 22:04   #4

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Oh, I had the exact same problem a while ago, this is the old trinity source right? If so the error is caused by not matching server names. I know it says something about IDs but that's irrelevant.
Kiyono is offline  
Thanks
1 User
Old 06/13/2011, 22:07   #5
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
Quote:
Originally Posted by Kiyono View Post
Oh, I had the exact same problem a while ago, this is the old trinity source right? If so the error is caused by not matching server names. I know it says something about IDs but that's irrelevant.
do you know where can I change/fix that? (sorry for the noob response)

EDIT: I found out the problem. thanks Kiyono (:

Quote:
Originally Posted by Kiyono View Post
Oh, I had the exact same problem a while ago, this is the old trinity source right? If so the error is caused by not matching server names. I know it says something about IDs but that's irrelevant.
oops.. now When I start up my client it crashes. does that have to do with any configuration?
killersub is offline  
Reply


Similar Threads Similar Threads
annoying error
10/29/2009 - Silkroad Online - 4 Replies
i got one error that kick me from game every 30 min there is a photo: http://www.elitepvpers.com/forum/picture.php?album id=1104&pictureid=3326
minor bugs in p-server really annoying
06/29/2009 - Conquer Online 2 - 0 Replies
i followed playboy94's p-server guide http://www.elitepvpers.com/forum/co2-pserver-discu ssions-questions/201216-guide-powersource-setup-ma de-easy.html easy enuff ok so theres a problem when i log on its in like super high res and like sky on the right side of the screen (video card i know) had this prob in rl co fixed it by hitting regular instead of high def this one uses CIDloader.exe umm ok how do i open conquer in low res i've looked through cfg files and ini.s cant find anything...
Annoying error.
01/29/2009 - Dekaron Private Server - 0 Replies
I've formatted and re-installed all the correct required things needed. And configured all my settings as it was before I formatted (Yes my server worked before I had formatted using the same MSSQL) I've even done the ODBC and SN correctly, and yet I get this error. http://anonymouse.org/cgi-bin/anon-www.cgi/http:/ /demonicbots.freehostia.com/error.PNG Can anyone help me fix this error?



All times are GMT +1. The time now is 17:16.


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