Register for your free account! | Forgot your password?

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

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

Advertisement
Bitcoin Dice Game


I don't want spoonfeeding

Discussion on I don't want spoonfeeding within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2010
Posts: 869
Received Thanks: 75
I don't want spoonfeeding

Like I said I don't want spoonfeeding but I'd like to know if I should be searching in GameState, PacketHandler, Program or ClientWrapper

Code:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Desco_Pj.Client.GameState.get_ChampionPoints() in C:\SourceNightMareV1\SourceNightMareV1\Client\GameState.cs:line 2454
   at Desco_Pj.Network.PacketHandler.UseItem(ConquerItem item, GameState client) in C:\SourceNightMareV1\SourceNightMareV1\Network\PacketHandler.cs:line 15860
   at Desco_Pj.Network.PacketHandler.EquipItem(ItemUsage itemUsage, GameState client) in C:\SourceNightMareV1\SourceNightMareV1\Network\PacketHandler.cs:line 21889
   at Desco_Pj.Network.PacketHandler.HandlePacket(Byte[] packet, GameState client) in C:\SourceNightMareV1\SourceNightMareV1\Network\PacketHandler.cs:line 1831
   at Desco_Pj.Program.processData(Byte[] buffer, Int32 length, GameState Client) in C:\SourceNightMareV1\SourceNightMareV1\Program.cs:line 1272
   at Desco_Pj.Program.GameServer_OnClientReceive(Byte[] buffer, Int32 length, ClientWrapper obj) in C:\SourceNightMareV1\SourceNightMareV1\Program.cs:line 1255
   at Desco_Pj.Network.Sockets.ClientWrapper.doReceive(Int32 available) in C:\SourceNightMareV1\SourceNightMareV1\Network\Sockets\ClientWrapper.cs:line 130
I'm attempting to add code so that I can use ChiToken and that's what the console gave me when I tried to use it, just want to know which area I should be searching



denominator is offline  
Old 05/01/2020, 23:24   #2
 
elite*gold: 12
Join Date: Jul 2011
Posts: 7,699
Received Thanks: 3,805
It says exactly where you should be searching in that error. It includes the full stack trace of what line caused the issue and all calls that came before it. It also includes an error name and a full description of what the error means. This isn't the first time you've done this either... so tell me. Can you answer the following questions?

1. What is the name of the error?
2. What is the description of that error and what does that mean?
3. What line and file did the error occur in?
4. What is the parent method? What can you say the server was doing when the error occurred?


Spirited is offline  
Thanks
2 Users
Old 05/01/2020, 23:34   #3
 
elite*gold: 0
Join Date: Aug 2010
Posts: 869
Received Thanks: 75
Going to hazard a guess that it's reference not set to an instance of an object on line 2454 of GameState.cs? Going to guess it's something set to null?

Not really sure what the parent method is though, I'll be checking it tomorrow after I have got some needed sleep :/

Server was running normally I had built it and wasn't actually debugging it, just wanted to see if I had it working or not lol
denominator is offline  
Old 05/02/2020, 00:46   #4
 
elite*gold: 26
Join Date: Jul 2011
Posts: 462
Received Thanks: 247
Please stop with the ****** posts and stupid questions, read a book on programming or find a tutorial online it's much better for you, you'll understand how stupid what you're doing is when you actually learn how to program.

EDIT: Look man, I don't wanna be a **** about it, but you're spamming the forums with terrible questions that don't even require any external inputs to help you get to the bottom of it. Honestly direct message me and I'll recommend a book or a tutorial or something to save you from your misery.


Yupmoh is offline  
Old 05/02/2020, 04:19   #5
 
elite*gold: 12
Join Date: Jul 2011
Posts: 7,699
Received Thanks: 3,805
Quote:
Originally Posted by denominator View Post
Going to hazard a guess that it's reference not set to an instance of an object on line 2454 of GameState.cs? Going to guess it's something set to null?

Not really sure what the parent method is though, I'll be checking it tomorrow after I have got some needed sleep :/

Server was running normally I had built it and wasn't actually debugging it, just wanted to see if I had it working or not lol
Well, on the next line directly below where you found the root of the problem (GameState.cs at line 2454), what does it say?
Spirited is offline  
Old 05/02/2020, 12:23   #6
 
elite*gold: 0
Join Date: Aug 2010
Posts: 869
Received Thanks: 75
Quote:
Originally Posted by Spirited View Post
Well, on the next line directly below where you found the root of the problem (GameState.cs at line 2454), what does it say?
at Desco_Pj.Network.PacketHandler.UseItem(ConquerItem item, GameState client) in C:\SourceNightMareV1\SourceNightMareV1\Network\Pac ketHandler.cs:line 15860?
denominator is offline  
Old 05/02/2020, 18:27   #7
 
elite*gold: 12
Join Date: Jul 2011
Posts: 7,699
Received Thanks: 3,805
Quote:
Originally Posted by denominator View Post
at Desco_Pj.Network.PacketHandler.UseItem(ConquerItem item, GameState client) in C:\SourceNightMareV1\SourceNightMareV1\Network\Pac ketHandler.cs:line 15860?
Right, so that tells you that it tried to consume an item, and something that it passed into your GameState was null or something in the GameState itself was null. So now, take a look at the GameState and see what that line is that threw the exception and what variables it uses that could be null / uninitialized.
Spirited is offline  
Thanks
1 User
Old 05/02/2020, 19:57   #8
 
elite*gold: 0
Join Date: Aug 2010
Posts: 869
Received Thanks: 75
So then it must be something to do with this

Code:
public uint ChampionPoints
        {
            get
            {
                return CP.Points;
            }
            set
            {
                uint old = CP.Points;
                if (CP.TodayPoints < value)
                    CP.TodayPoints = value;
                if (CP.TodayPoints > 650)
                {
                    CP.TodayPoints = 650;
                    if (Entity.FullyLoaded)
                        Send(new Message("Your Champion Points have reached the max amount of 650 points. You can collect more points tommorrow.", Color.Red, Message.System));
                }
                else
                {
                    CP.Points =   <---Probably this part
                   value;
                    if (old < ChampionPoints)
                        CP.AllChampionPoints += (ChampionPoints - old);
                    if (Entity.FullyLoaded && old < ChampionPoints)
                        Send(new Message("You received " + (ChampionPoints - old) + " Champion Points!", Color.Red, Message.System));
                }
                if (Entity.LoadedActivenessSystem)
                {
                    Activenes.SendSinglePacket(this, Activeness.Types.ChampionPTask, 1);
                }
            }
        }
denominator is offline  
Old 05/02/2020, 20:06   #9
 
elite*gold: 12
Join Date: Jul 2011
Posts: 7,699
Received Thanks: 3,805
And what's the set property definition for CP.Points?
Spirited is offline  
Old 05/02/2020, 20:56   #10
 
elite*gold: 0
Join Date: Aug 2010
Posts: 869
Received Thanks: 75
You've lost me lol unless you mean this

Code:
public Network.GamePackets.ChampionPoints CP;
Currently reading just to try to get a better understanding of it all


denominator is offline  
Reply



« Dimmed player after login | Missing Shop Items »

Similar Threads Similar Threads
tutorial how to hack anyone [spoonfeeding]
12/13/2013 - Dragon City - 2 Replies
UPDATE: UPDATE : BAGO NA CP NUMBER KO NAWALA KASI CP KO EHH 09434406958 EAN PO THANKS! <---- UPDATE: PLEASE KUNG MAG TTXT KAYO PARA LANG MAG SAMPLE AKO PARA MAG AVAIL KAYO , WAG NALANG PO KAYO MAG AVAIL, LEGIT NA UNG THREAD AT TRUSTED . STRICTLY PAY FIRST DIN PO AKO THANKYOU , NGA PLA ONLINE ANG TUTORIAL HINDI MEETUP CONTACT'S: gmail : [email protected] ung thread na to pra sa mga gus2 maging hacker
tutorial how to hack anyone [spoonfeeding]
12/13/2013 - Browsergames - 1 Replies
UPDATE: UPDATE : BAGO NA CP NUMBER KO NAWALA KASI CP KO EHH 09434406958 EAN PO THANKS! <---- UPDATE: PLEASE KUNG MAG TTXT KAYO PARA LANG MAG SAMPLE AKO PARA MAG AVAIL KAYO , WAG NALANG PO KAYO MAG AVAIL, LEGIT NA UNG THREAD AT TRUSTED . STRICTLY PAY FIRST DIN PO AKO THANKYOU , NGA PLA ONLINE ANG TUTORIAL HINDI MEETUP CONTACT'S: gmail : [email protected] ung thread na to pra sa mga gus2 maging hacker
tutorial how to hack anyone [spoonfeeding]
12/13/2013 - Facebook - 1 Replies
UPDATE: UPDATE : BAGO NA CP NUMBER KO NAWALA KASI CP KO EHH 09434406958 EAN PO THANKS! <---- UPDATE: PLEASE KUNG MAG TTXT KAYO PARA LANG MAG SAMPLE AKO PARA MAG AVAIL KAYO , WAG NALANG PO KAYO MAG AVAIL, LEGIT NA UNG THREAD AT TRUSTED . STRICTLY PAY FIRST DIN PO AKO THANKYOU , NGA PLA ONLINE ANG TUTORIAL HINDI MEETUP CONTACT'S: gmail : [email protected] ung thread na to pra sa mga gus2 maging hacker
I want to create a Server but i don't want to make mistakes.
07/12/2013 - Rappelz Private Server - 1 Replies
Hey ^Title So i have been inactive for 1 year and now i want to know whats up. Are there 8.2 Files? If yes where can i get it? Google wont help me :( What requierments does Rappelz have now? (Server) I'm ready to buy a root and install it etc but i don't want to waste money on a root wich doesn't meet the requierments. It would be nice if you could help me :)
Don't want to be scammed? and If you got scammed want some justice?
07/03/2011 - Silkroad Online Trading - 0 Replies
Dear members, Recently there was a huge wave of scam because you simply didn't follow the rules and you didn't use the black market interface for your trades .. this is the only way to make sure you will be fine even if someone scammed you. Here it is .. if you got scammed using our black market plugin you get supported :) and the scammer if proven he is, will be banned. Add to that you can rate him negatively and show people that he scammed you so people would take care in the future...



All times are GMT +2. The time now is 04:33.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2020 elitepvpers All Rights Reserved.