Register for your free account! | Forgot your password?

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

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

Advertisement



Problem in adding New Skills

Discussion on Problem in adding New Skills within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Problem in adding New Skills

Well i tried to add the 2 new skills and i added the Skill book ID in packethandler and i added the Skills ID into magictype.SQL but when i tried to use them i got that Error ..What should i do ?

shadowman123 is offline  
Old 08/12/2011, 03:52   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Sounds like you never handle the skill properly inside the source.

You say that you 'handle the skill in the packet handler'. It should be part of your attack./spell handling code. You should scroll up to see what the error is and where it occurs, check out that section of code and do a bit of breakpointing.

Sounds to me like you're just not coding it properly inside the source.
pro4never is offline  
Old 08/12/2011, 05:23   #3
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
but all i understood is the problem in packet handler..but if so why it give an error in handle.cs ?
shadowman123 is offline  
Old 08/12/2011, 05:41   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Because that's where the issue IS.

It mentions Packet handler because that's how the data flows.

You receive the packet (AsyncSocket.cs line 89), you then handle the packet receive method (Program.cs line 1212) and then process the packet in your Packet processor before handling the skill. The actual ERROR is in the SKILL handling as I said. Go to the line it's talking about, place some breakpoints and use some common sense to figure out where the actual issue lies.

From the last few words of the error that is visible I'm assuming it's a null reference exception where you're not targeting or handling the skill properly.

Again, a few simple tests on your end would fix this up.... you just need to spend some time actually DOING IT yourself. Few breakpoints and 5-10 min of research should be enough.
pro4never is offline  
Old 08/12/2011, 16:42   #5
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
aha but 5-10 mins if im pro coder like you anyways i'd like to say Thanks alot dude .ill try what u said then give u the result
shadowman123 is offline  
Old 08/12/2011, 23:14   #6
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
actually for pro4never(most coders, including me) would take upto a minute to figure out depending on the problem(if its advanced, 10 mins max as you said) but yeah, this should take a beginner who knows how to breakpoint and the very basics of c# a few minutes, if you cant figure it out, you quite possibly need to get help from google.
_DreadNought_ is offline  
Reply


Similar Threads Similar Threads
Adding more than 3 skills in DB-Bot doesn't work
08/01/2010 - SRO Private Server - 3 Replies
Hey All my bot use only 3 skills if i add more than 3 skills in attack skill list it only use the first 3 skills except the buffs it use all buffs i add i'm using bot: SRO-DB Bot v1.0b2
[Question]Adding Skills
08/22/2009 - CO2 Private Server - 1 Replies
How do you add skills? For example I want a skill for GMs only that uses magic and 1 hits everyone.
[HELP]After adding 2 skills...
04/23/2009 - CO2 Private Server - 5 Replies
//EDIT: NVM got it to work...
[Help] With adding skills in lotf
09/09/2008 - CO2 Private Server - 4 Replies
How exactly would i like add skills in lotf casue i want to add some more skills. I'll release it if some one could help me on how to do it :)
Adding Skills [LOFT]
08/24/2008 - CO2 Private Server - 1 Replies
#Edit : Already got the skill working,



All times are GMT +2. The time now is 03:51.


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