Register for your free account! | Forgot your password?

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

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

Advertisement



Nullereference Not set to an instance..

Discussion on Nullereference Not set to an instance.. within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
EOS 60D's Avatar
 
elite*gold: 0
Join Date: Feb 2013
Posts: 94
Received Thanks: 13
Nullereference Not set to an instance..

so i had this null reference errror. i dont get it why its null ..


so im loading

public Map WaitingArea;

Code:
WaitingArea = Kernel.Maps[ElitePKTournament.WaitingAreaID].MakeDynamicMap();
EPK WatingAreaID
public const ulong WaitingAreaID = 2068;
EOS 60D is offline  
Old 08/07/2014, 23:57   #2
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
Quote:
Originally Posted by EOS 60D View Post
so i had this null reference errror. i dont get it why its null ..


so im loading

public Map WaitingArea;

Code:
WaitingArea = Kernel.Maps[ElitePKTournament.WaitingAreaID].MakeDynamicMap();
EPK WatingAreaID
public const ulong WaitingAreaID = 2068;
Breakpoint this line and check values to know where is the null ....
abdeen is offline  
Old 08/08/2014, 00:58   #3
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
cuz ur maps don't contain map with id = 2068
abdoumatrix is offline  
Old 08/08/2014, 05:23   #4
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 943
Received Thanks: 408
Quote:
Originally Posted by abdeen View Post
Breakpoint this line and check values to know where is the null ....
The null is where he doesnt have that map added to the dictionary/list...
So he is trying to make reference to something that doesnt exist

I recommend using a

Code:
if(!Kernel.Maps.ContainsKey(ElitePKTournament.WaitingAreaID)){
Handle something alternative or add the map before
}
pintinho12 is offline  
Old 08/08/2014, 11:44   #5
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
Quote:
Originally Posted by pintinho12 View Post
The null is where he doesnt have that map added to the dictionary/list...
So he is trying to make reference to something that doesnt exist

I recommend using a

Code:
if(!Kernel.Maps.ContainsKey(ElitePKTournament.WaitingAreaID)){
Handle something alternative or add the map before
}
Or he can just add map with this id [2068] to the database and it will be loaded at server launch ...
abdeen is offline  
Old 08/08/2014, 11:46   #6
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
Quote:
Originally Posted by pintinho12 View Post
The null is where he doesnt have that map added to the dictionary/list...
So he is trying to make reference to something that doesnt exist

I recommend using a

Code:
if(!Kernel.Maps.ContainsKey(ElitePKTournament.WaitingAreaID)){
Handle something alternative or add the map before
}
xD this will just stop the error but the more will come sooner

he had to put new map 2068

PHP Code:
2068    2068    0    0 
abdoumatrix is offline  
Old 08/08/2014, 11:51   #7
 
Yupmoh's Avatar
 
elite*gold: 26
Join Date: Jul 2011
Posts: 522
Received Thanks: 285
You need to initialize an instance of that object before calling it. It's really simple, If it's not there you'll get a NRE.
Yupmoh is offline  
Old 08/08/2014, 15:55   #8
 
EOS 60D's Avatar
 
elite*gold: 0
Join Date: Feb 2013
Posts: 94
Received Thanks: 13
Its fixed now.. thank you guys for the replies .. appreciate it.. its the map not added on the map path..
EOS 60D is offline  
Reply


Similar Threads Similar Threads
Male Instance bug
10/11/2013 - Fiesta Online - 2 Replies
Hallo, auf meinem server ist male instance buggy, und zwar wenn ich ihn bei der halben hp habe oder bissl drüber verschwindet er einfach und alle anderen mobs auch :/ wisst ihr vlt woran es liegt? mfg kenzo963
i need to know how to do a map instance
03/29/2011 - Metin2 Private Server - 0 Replies
hi the question is in the thread title =) i need to know how to do a map instance ( like the deviltower for exemple) if you know how to do that, can you help me? i can pay if it's the problem =)
How to get out of an instance quick
11/09/2006 - WoW Exploits, Hacks, Tools & Macros - 5 Replies
I found this exploit when i was farming incendious and needed a fast way to get out. What you need is 2 or more people in a group, and in an instance, obiously. The leader of the group kicks everyone from the party, and then once everyone gets the message "You will be teleported in x seconds", they simply log out and back in and you and the other people will be at the start of the instance
Well... there goes the instance rez bug
03/12/2006 - WoW Exploits, Hacks, Tools & Macros - 8 Replies
http://forums.worldofwarcraft.com/thread.a...mp=1# post380719 Originally Posted by SomeFaggot
Instance mob
03/04/2005 - WoW Exploits, Hacks, Tools & Macros - 0 Replies
Have two people in an instance, one that can go invisible for a long period of time (rogue/druid form). One person runs through small portion of the instance, aggros multiple mobs and runs back into the instance portal while the other person is invisible in the instance. Mobs should get stuck at the portal, and after a minute or so disappear.



All times are GMT +1. The time now is 09:51.


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.