|
You last visited: Today at 07:19
Advertisement
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.
05/01/2020, 23:11
|
#1
|
elite*gold: 0
Join Date: Aug 2010
Posts: 951
Received Thanks: 76
|
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
|
|
|
05/01/2020, 23:24
|
#2
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
|
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?
|
|
|
05/01/2020, 23:34
|
#3
|
elite*gold: 0
Join Date: Aug 2010
Posts: 951
Received Thanks: 76
|
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
|
|
|
05/02/2020, 00:46
|
#4
|
elite*gold: 26
Join Date: Jul 2011
Posts: 522
Received Thanks: 285
|
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.
|
|
|
05/02/2020, 04:19
|
#5
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
|
Quote:
Originally Posted by denominator
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?
|
|
|
05/02/2020, 12:23
|
#6
|
elite*gold: 0
Join Date: Aug 2010
Posts: 951
Received Thanks: 76
|
Quote:
Originally Posted by Spirited
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?
|
|
|
05/02/2020, 18:27
|
#7
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
|
Quote:
Originally Posted by denominator
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.
|
|
|
05/02/2020, 19:57
|
#8
|
elite*gold: 0
Join Date: Aug 2010
Posts: 951
Received Thanks: 76
|
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);
}
}
}
|
|
|
05/02/2020, 20:06
|
#9
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
|
And what's the set property definition for CP.Points?
|
|
|
05/02/2020, 20:56
|
#10
|
elite*gold: 0
Join Date: Aug 2010
Posts: 951
Received Thanks: 76
|
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
|
|
|
 |
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 +1. The time now is 07:20.
|
|