Register for your free account! | Forgot your password?

You last visited: Today at 22:37

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

Advertisement



Formal Release

Discussion on Formal Release within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 12/01/2010, 20:51   #46
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
Problem with your NpcEngine.

Im getting a System.NullRefrenceException exception at
Code:
CompiledScript Script = Engine.CompileScript(processfile);
It must be the script
Code:
' Scripted by DreadNought
' Npc: Test

Imports System
Imports ConquerScriptLinker

Partial Public Class NpcEngine
    Public Shared Sub TestNPC()
        Dim dlg As String() = Nothing

        Select Case OptionID
            Case 0
                ReDim dlg(2)
                dlg(0) = "TEXT If you are seeing this then it will make DreadNought happy!"
                dlg(1) = "OPTION1 Happy Happy Happy!"
                dlg(2) = "OPTION-1 Haha **** off."
            Case 1
                ReDim dlg(1)
                dlg(0) = "TEXT He is very Happy!"
				dlg(1) = "OPTION-1 Goody Goody Godyy!!"
        End Select

        If Not dlg Is Nothing Then
            Dialog(dlg)
        End If
    End Sub
End Class
I might like to add ive added it into my source and theres no errors.

Also, I love the way you handle commands!
_DreadNought_ is offline  
Old 12/01/2010, 21:28   #47
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
Give me the full-exception information generated for the NullReferenceException.
Also, edited the post above from "post" to "get", thanks.
InfamousNoone is offline  
Old 12/01/2010, 21:52   #48

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
It could be me but your "ninjahax" command is a non-working one, isn't it?
Kiyono is offline  
Old 12/01/2010, 22:29   #49
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
Quote:
[Npc Processor Error - 12111, 0, ]
("I added a Console.WriteLine(e) as the e.ToString doesnt work.");
System.NullReferenceException: Object Refrence not set to an instance of an object.
at NpcDialogs.ConquerScriptEngine.ProcessNpc(GameStat e Client, Byte OptionID, String Input) in C:\Users\John\Documents\*********\********\******* *\NpcDialogs\ConquerScriptEngine.cs:line 447
Line 447 is the line I posted above.
_DreadNought_ is offline  
Old 12/01/2010, 23:08   #50
 
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
Quote:
Originally Posted by kyle191 View Post
I have no knowledge of C++ but I'm curious about setting this up, but I have no idea where to change the IP for my client.

Any help please?

Kyle.
This is not C++ this is C#.
copz1337 is offline  
Old 12/02/2010, 04:11   #51
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
Quote:
Originally Posted by _DreadNought_ View Post
Line 447 is the line I posted above.
My ConquerScriptEngine.cs is only 400 lines long...?
InfamousNoone is offline  
Old 12/02/2010, 07:35   #52
 
xScott's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 322
Received Thanks: 63
suprised how much i dont know from reading this
thx for the homework (a)
xScott is offline  
Thanks
1 User
Old 12/02/2010, 08:55   #53
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
@InfamousNoone: I added a string containing what language ive set it to(To support both VB and C#) then added some checks everywhere.

Code:
if (Extension == "VB")
{
           bla bla;
}
else
{
           bla blah;
}
.
_DreadNought_ is offline  
Old 12/02/2010, 15:17   #54

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Just wondering but why do +12s change back to +9 when you relog?
//edit NVM, public const byte MaxPlus = 9; >_>
Kiyono is offline  
Thanks
1 User
Old 12/02/2010, 15:23   #55
 
lostsolder05's Avatar
 
elite*gold: 20
Join Date: Jan 2006
Posts: 890
Received Thanks: 241
Quote:
Originally Posted by _tao4229_ View Post
No, but the encryptions are different.
That should be enough to set off your garden variety idiots for a few weeks.
Hey that's me! Lawl do I win a cookie for getting in a few months back when I first acquired the source?

Nice release though but I wish you hadn't of released it Going to be 500 noobs using it soon enough which'll be hard to top. Oh well not like I've played CO recently anyway.
lostsolder05 is offline  
Old 12/02/2010, 15:34   #56

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Quote:
Originally Posted by lostsolder05 View Post
Hey that's me! Lawl do I win a cookie for getting in a few months back when I first acquired the source?

Nice release though but I wish you hadn't of released it Going to be 500 noobs using it soon enough which'll be hard to top. Oh well not like I've played CO recently anyway.
Don't worry, they won't be able to set it up if no one makes a guide.

//edit This is kinda weird, item scripts don't seem to work, things like potions, hairdye and met/dbscrolls have scripts but don't seem to be working in-game. Any help with this?
Kiyono is offline  
Thanks
1 User
Old 12/02/2010, 18:15   #57
 
elite*gold: 0
Join Date: Nov 2009
Posts: 129
Received Thanks: 45
Quote:
Originally Posted by Kiyono View Post
//edit This is kinda weird, item scripts don't seem to work, things like potions, hairdye and met/dbscrolls have scripts but don't seem to be working in-game. Any help with this?
EquipItem.cs Line 44

Needs to be <= Now.Time
~Falcon is offline  
Thanks
2 Users
Old 12/02/2010, 18:46   #58

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Quote:
Originally Posted by ~Falcon View Post
EquipItem.cs Line 44

Needs to be <= Now.Time
Thanks, worked but it's weird that Hybrid never noticed that his item scripts didn't work.
Kiyono is offline  
Old 12/02/2010, 22:13   #59
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
Quote:
Originally Posted by Kiyono View Post
Thanks, worked but it's weird that Hybrid never noticed that his item scripts didn't work.
It was probably a mistake I made in the later end (near the end of when I dropped off the project). Sorry about that.

Quote:
Originally Posted by _DreadNought_ View Post
@InfamousNoone: I added a string containing what language ive set it to(To support both VB and C#) then added some checks everywhere.

Code:
if (Extension == "VB")
{
           bla bla;
}
else
{
           bla blah;
}
.
It's evident then your issue is caused by your own appended code as nobody else (nor myself) is subject to this problem. What were you trying to achieve? Maybe I can be of some assistance.
InfamousNoone is offline  
Old 12/02/2010, 22:45   #60

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Quote:
Originally Posted by InfamousNoone View Post
It was probably a mistake I made in the later end (near the end of when I dropped off the project). Sorry about that.



It's evident then your issue is caused by your own appended code as nobody else (nor myself) is subject to this problem. What were you trying to achieve? Maybe I can be of some assistance.
Since items were working on Project Manifest, does this mean that you recoded it or something?
Kiyono is offline  
Reply


Similar Threads Similar Threads
[Formal subject]tell us about ur problem then u will get the answer
08/18/2009 - CO2 Private Server - 11 Replies
tell us about ur problem then u will get the answer just for binary any patch u like :cool: for moderators : Dont close this therad its helpful alot of pplz here
WTS Lv92 AK With 375m Worth of Items and Formal Costume (Abbadon)
02/27/2009 - Trading - 3 Replies
Up for Trade is a Lv92 AK Axe Hybrid named RurouniKenshin on abbadon Server in 2moons. Knights Formal Suite Costume = $11.40 Real Money Quesa Helm +4 4x25 Meds = 8-10m Quesa Armor +5 4x25 Meds = 20m T3 Gloves +4 = 30m T3 Pants +4 = 30m T3 Boots +5 =45m +4 85 Axe 3x56 Rhombs = 10m +4 87 Shield 3x25 Meds = 6m



All times are GMT +1. The time now is 22:37.


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.