Formal Release

12/01/2010 20:51 _DreadNought_#46
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 fuck 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!
12/01/2010 21:28 InfamousNoone#47
Give me the full-exception information generated for the NullReferenceException.
Also, edited the post above from "post" to "get", thanks.
12/01/2010 21:52 Kiyono#48
It could be me but your "ninjahax" command is a non-working one, isn't it?
12/01/2010 22:29 _DreadNought_#49
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.
12/01/2010 23:08 copz1337#50
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#.
12/02/2010 04:11 InfamousNoone#51
Quote:
Originally Posted by _DreadNought_ View Post
Line 447 is the line I posted above.
My ConquerScriptEngine.cs is only 400 lines long...?
12/02/2010 07:35 xScott#52
suprised how much i dont know from reading this :o
thx for the homework (a)
12/02/2010 08:55 _DreadNought_#53
@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;
}
.
12/02/2010 15:17 Kiyono#54
Just wondering but why do +12s change back to +9 when you relog?
//edit NVM, public const byte MaxPlus = 9; >_>
12/02/2010 15:23 lostsolder05#55
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.
12/02/2010 15:34 Kiyono#56
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?
12/02/2010 18:15 ~Falcon#57
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
12/02/2010 18:46 Kiyono#58
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.
12/02/2010 22:13 InfamousNoone#59
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.
12/02/2010 22:45 Kiyono#60
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?