Register for your free account! | Forgot your password?

You last visited: Today at 14:02

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

Advertisement



A error

Discussion on A error within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2010
Posts: 174
Received Thanks: 13
A error

Okay so i get this error in the console when i run the server:


I go into the source and theres no errors :S im not totally sure what it is...
Okay so this is the screenshot of the source:


Sorry if the screenshots are abit hard to see, its a very sunny day and my blinds were open.
2010mrsurfer is offline  
Old 05/18/2010, 13:27   #2
 
elite*gold: 0
Join Date: May 2010
Posts: 29
Received Thanks: 8
i got same error =\
PrettyGodness is offline  
Old 05/18/2010, 13:37   #3
 
elite*gold: 0
Join Date: May 2010
Posts: 174
Received Thanks: 13
Quote:
Originally Posted by PrettyGodness View Post
i got same error =\
It confused me when i had a look, i couldnt see any errors ^^
2010mrsurfer is offline  
Old 05/18/2010, 13:54   #4
 
elite*gold: 0
Join Date: Feb 2009
Posts: 262
Received Thanks: 161
if (MyMath.ChanceSuccess(90))
{
if (Char != null)
if (MobID == 1)
{
Char.CPs += 900;
Char.Silvers += 900;
}
}
teroareboss1 is offline  
Old 05/19/2010, 01:25   #5
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
Read the error message carefully:
"Object reference not set to an instance of an object."

So you're using an object/variable when it hasn't been set to something.

Like if you're using a class called "Conquer", and you just define it like this:
Code:
public static Conquer MyCo;
Then you try to use it:
Code:
MyCo.Version += 10;
You'll get the same error, since MyCo == null.

So as @teroareboss1 pointed out, your Char is probably set to null, thus the error. =D
kinshi88 is offline  
Old 05/19/2010, 04:57   #6
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by kinshi88 View Post
Read the error message carefully:
"Object reference not set to an instance of an object."

So you're using an object/variable when it hasn't been set to something.

Like if you're using a class called "Conquer", and you just define it like this:
Code:
public static Conquer MyCo;
Then you try to use it:
Code:
MyCo.Version += 10;
You'll get the same error, since MyCo == null.

So as @teroareboss1 pointed out, your Char is probably set to null, thus the error. =D
Damn you beat me to most of the explanation but the actual problem should be more related to setting the drop item. I had this for a short while when I was coding dis city drops.

If you are using a bunch of if/elseif statements to control what item id is dropped then you MUST make sure you have a backup plan.

Example:

Lets say you have a simple drop ratio on a specific map... if you had something along the lines of..

if(Calculation.PercentSuccess(50))
{
DropItem.ID = MeteorID;
}
else if (Calculation.PercentSuccess(50))
{
DropItem.ID = DragonBallId;
}


If you used something like that then you could theoretically NOT have anything set for the item ID causing this error. Yes you have two 50 percent chance things but just like flipping a coin... you can fail to flip heads twice in a row.

Basically check through your drop code and make sure that there isn't something in there that is being left empty. Chances are you are creating a structure for a new item and then filling in the blanks (what item ID, what +, what dura, etcetcetc) If one of those is left blank and not filled in then it can cause this kind of error to pop up as it seems to be.


I'd vote for that over character as it's happening in the drop item section of code. My other theory is that somewhere on the server a guard or something is killing monsters and the server isn't setup to control who the killer was and therefor is setting the "owner" of the item to something fucked up.... that seems less likely though.
pro4never is offline  
Old 05/19/2010, 07:51   #7
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
Well it might not be that that Char is null, but I did explain the object reference error =P
kinshi88 is offline  
Old 05/19/2010, 08:28   #8
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
If the char was null it wouldn't be online?
Arcо is offline  
Old 05/19/2010, 09:56   #9
 
elite*gold: 0
Join Date: May 2010
Posts: 174
Received Thanks: 13
I sort of understand what your saying, Thanks anyway i changed it
2010mrsurfer is offline  
Reply


Similar Threads Similar Threads
PortMap Error: RichEdit line insertion error
02/16/2012 - Metin2 Private Server - 5 Replies
Hey Leute, habe mir letztens nen Metin2 P-Server mit Hamachi erstellt. Alles läuft super, wenn da dieser kack nicht wäre. PortMap zeigt eine Fehlermeldung, nachdem man sich eingeloggt hat: RichEdit line insertion error. Diese erscheint einmal zusätzlich pro Sekunde und PortMap und Metin2 wird beendet, sobald ca. 100 von diesen Meldungen auf dem Bildschirm sind. Was soll ich machen? Hat jemand ne Lösung? Vielen Dank im Vorraus =)
[Fehler] Patch? Error? Hier Hilfe! [Error]
12/02/2010 - Combat Arms - 14 Replies
Da ich keine Werbung machen möchte muss ich wohl alles abkopieren... Ich entschuldige mich das ich alles zuspoilern musste aber bei soviel Text....;) 1.Error Codes und ähnliches Da es nach einem neuen Update immer wieder Probleme auftreten, empfehlen wir Euch folgende Liste mit den häufigsten Fehlern durchzugehen: 1. Deinstalliere Combat Arms über Arbeitsplatz-->Software 2. Prüfe ob alle Ordner von Nexon auf der Festplatte gelöscht sind. Wenn nicht lösche...
MySro Error~>Microsoft Error Visual C++ Runtime...
08/18/2009 - SRO Private Server - 3 Replies
Hello, i have got a problem: http://image.cp-g.net/pics/4a8971bd15c0d.jpg. I have already installed Microsoft Visual C++ Runtime Library 2005 and after that i installed 2007. It didn´t work. Who can help me? thanks Alucard15



All times are GMT +1. The time now is 14:02.


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.