Valhalla Legends Archive

Member Forums => Spht's Forum => Topic started by: JiMMaH on October 17, 2004, 08:28 PM

Title: Tell me why this happens.
Post by: JiMMaH on October 17, 2004, 08:28 PM
I keep getting this error and i'd like to know why am i sending it commands too fast?
[18:25:30] <JiMMaH-Un4> ^set -=^* S
[18:25:30] <To: JiMMaH-Un4> -=^* => -=^*: S
[18:25:38] Warning: Exception caught in plugin "C:\My Documents\Bots\Bnet\SphtBotv3\oper.dll" message hook, unloading plugin!

[18:25:38] <JiMMaH-Un4> ^set *Un4* S
[18:25:38] <To: JiMMaH-Un4> *Un4* => *Un4*: S
[18:25:46] <JiMMaH-Un4> ^set A|2$][N S
Title: Re: Tell me why this happens.
Post by: Spht on October 17, 2004, 10:19 PM
Quote from: JiMMaH on October 17, 2004, 08:28 PM
I keep getting this error and i'd like to know why am i sending it commands too fast?
[18:25:30] <JiMMaH-Un4> ^set -=^* S
[18:25:30] <To: JiMMaH-Un4> -=^* => -=^*: S
[18:25:38] Warning: Exception caught in plugin "C:\My Documents\Bots\Bnet\SphtBotv3\oper.dll" message hook, unloading plugin!

[18:25:38] <JiMMaH-Un4> ^set *Un4* S
[18:25:38] <To: JiMMaH-Un4> *Un4* => *Un4*: S
[18:25:46] <JiMMaH-Un4> ^set A|2$][N S


That's odd.  Could you try to track down a pattern to it?  ie, "it happens everytime I use X character in usermask when trying to set Y flag."

Also, what operating system are you using?
Title: Re: Tell me why this happens.
Post by: JiMMaH on October 17, 2004, 10:43 PM
I use Windows 2000 and it might be possibly be that I'm using Wildcards in DB. I'm not quite sure but i'll keep testing it.
Title: Re: Oper.dll bug repository
Post by: JiMMaH on October 17, 2004, 10:57 PM
Yep doesn't seem to like the wildcards on both sides Ex: *Un4* *]sV[*) Haven't really found anything other than that.


[20:47:01] Warning: Exception caught in plugin "C:\My Documents\Bots\Bnet\SphtBotv3\Oper.Dll" message hook, unloading plugin!

[20:47:01] <JiMMaH-Un4> ^set *]sV[* Z
[20:47:01] <To: JiMMaH-Un4> *]sV[* => *]sV[*: Z

[20:52:52] <JiMMaH-Un4> ^add -=^* S
[20:52:56] <JiMMaH-Un4> Ack
[20:53:13] <JiMMaH-Un4> ^set -=^* S
[20:53:13] <To: JiMMaH-Un4> -=^* => -=^*: S

[20:53:31] Warning: Exception caught in plugin "C:\My Documents\Bots\Bnet\SphtBotv3\Oper.dll" message hook, unloading plugin!

[20:53:31] <JiMMaH-Un4> ^set *Un4* S
[20:53:31] <To: JiMMaH-Un4> *Un4* => *Un4*: S
Title: Tell me why this happens.
Post by: Spht on October 18, 2004, 12:46 PM
Quote from: JiMMaH on October 17, 2004, 10:57 PM
Yep doesn't seem to like the wildcards on both sides Ex: *Un4* *]sV[*) Haven't really found anything other than that.


[20:47:01] Warning: Exception caught in plugin "C:\My Documents\Bots\Bnet\SphtBotv3\Oper.Dll" message hook, unloading plugin!

[20:47:01] <JiMMaH-Un4> ^set *]sV[* Z
[20:47:01] <To: JiMMaH-Un4> *]sV[* => *]sV[*: Z

[20:52:52] <JiMMaH-Un4> ^add -=^* S
[20:52:56] <JiMMaH-Un4> Ack
[20:53:13] <JiMMaH-Un4> ^set -=^* S
[20:53:13] <To: JiMMaH-Un4> -=^* => -=^*: S

[20:53:31] Warning: Exception caught in plugin "C:\My Documents\Bots\Bnet\SphtBotv3\Oper.dll" message hook, unloading plugin!

[20:53:31] <JiMMaH-Un4> ^set *Un4* S
[20:53:31] <To: JiMMaH-Un4> *Un4* => *Un4*: S


1) Is that SphtBotv3?

2) When exception is caught, does it still write the database change to users.txt?  Does it ever write database changes to users.txt?  When does it NOT write to users.txt?

3) When exception is caught, does it still write the change to security.log?  Does it ever write to security.log?  When does it NOT write to security.log?

4) Does oper.log contain any unusual errors?

5) Are your commands being logged to mmyyyy.log?  Especially the command that causes the exception -- does that get logged?  Are any commands getting logged?

6) Is *Un4* causing a problem specifically?  Does it only cause problems when someone in the channel matches *Un4*?  I've never had any problems with using wildcards, nor has anyone else reported problems.

Getting a good answer to these questions should help me track down a real problem if one exists.
Title: Tell me why this happens.
Post by: JiMMaH on October 18, 2004, 06:51 PM
It creates them yes and the user is saved to the DB but the plugin just shuts down as I have showed you before Heh. Also now it won't even load at all.

Security Log:

10/17/2004 20:53:31 JiMMaH-Un4 creates entry *Un4*, flags = S <>

File That tells me all users are loaded :

[16:44:31] Loading config...

[16:44:31] Loading database...

[16:44:31] Database loaded (3 users)

Error I get when i reconnect the bot:

[16:44:36] Warning: Exception caught in plugin "C:\My Documents\Bots\Bnet\SphtBotv3\Oper.dll" message hook, unloading plugin!


Title: Tell me why this happens.
Post by: JiMMaH on October 18, 2004, 06:52 PM
And Yes this is SphtBot3
Title: Tell me why this happens.
Post by: JiMMaH on October 18, 2004, 06:58 PM
Also when i remove the wildcard *Un4* it works just fine but when its readded it has a problem.
Title: Tell me why this happens.
Post by: Spht on October 18, 2004, 09:13 PM
Paste the contents of your users.txt and oper.cfg here.
Title: Tell me why this happens.
Post by: JiMMaH on October 18, 2004, 09:40 PM
Heres the information you requested also could the Safelist flag in jimmah-un4 be conflicting with *Un4*?

Users.txt=
*un4* S
jimmah-un4 ALMNOQS

Oper.cfg =

trigger=^
protection=false
Title: Tell me why this happens.
Post by: Spht on October 18, 2004, 10:40 PM
Quote from: JiMMaH on October 18, 2004, 09:40 PM
also could the Safelist flag in jimmah-un4 be conflicting with *Un4*?

No.  They're interpreted as a bitmask internally, so they'd just be added together.

I do not know why you are getting that error.  Setuser was the first command that was implemented, so it was tested quite a bit and I never had that kind of problem.  Also, no one else has reported having any problems with it.

By the way, your oper.cfg line "protection=false" is invalid.  First, there is no "protection" configuration value -- it's "protect."  Second, it checks if the value is non-zero, then enables.  So if you set it to "false" then that'll be interpreted as true.
Title: Tell me why this happens.
Post by: JiMMaH on October 18, 2004, 10:44 PM
Eh the protection=false stops the Bot from banning everyone on startup.
Title: Tell me why this happens.
Post by: Spht on October 18, 2004, 10:47 PM
Quote from: JiMMaH on October 18, 2004, 10:44 PM
Eh the protection=false stops the Bot from banning everyone on startup.

No it doesn't...  Paste logs of whatever you're experiencing.  Your system sounds *majorly* confused from the problems you've been reporting.
Title: Tell me why this happens.
Post by: JiMMaH on October 18, 2004, 11:23 PM
Well i tried only using one wild card and it worked.. Also could i see Protect=0 Disables it?

[21:18:50] <JiMMaH-Un4> ^kick -=^IcY*
[21:18:50] -=^IcY^=- was kicked out of the channel by TheLoft.

Yet when i do double Wildcards.

[21:18:50] -=^IcY^=- was kicked out of the channel by TheLoft.
[21:20:54] Warning: Exception caught in plugin "C:\My Documents\Bots\Bnet\SphtBotv3\oper.dll" message hook, unloading plugin!

[21:20:54] <JiMMaH-Un4> ^kick *IcY*
[21:20:54] -=^IcY^=- was kicked out of the channel by TheLoft.
Title: Tell me why this happens.
Post by: JiMMaH on October 18, 2004, 11:34 PM
Also it saves the information for ^set *Un4* S Yet when it loads up and i load plugin it just quits automaticly with that error message no idea why it does it..
Title: Re: Tell me why this happens.
Post by: Spht on October 19, 2004, 07:48 PM
It turns out his system *was* majorly confused!  After reinstalling his VC++ runtimes, the plugin behaves as it should.  Now to wait for some USEFUL bug reports (if there are any) from this guy.

Topic locked.