This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

AllProtection.tcl (Stable: v4.8 / Beta: v4.9b4)

Support & discussion of released scripts, and announcements of new releases.
Post Reply
I
IRCNick
Halfop
Posts: 64
Joined: Wed Oct 12, 2005 9:43 pm
Location: Germany
Contact:

Some errors

Post by IRCNick »

Hi,

Im testing your tcl right now, but i got to following errors.
<Bot> [18:58] Tcl error [clones:kick]: expected integer but got ""
<Bot> [18:58] Tcl error [rev:door]: expected integer but got ""
<Bot> [19:02] Tcl error [adv:kick]: expected integer but got ""
And this is by all types. I have done correctly the config. Where can be the problem. Thanks in advance
User avatar
Linux
Halfop
Posts: 71
Joined: Sun Apr 04, 2004 4:20 pm
Location: Under The Sky

Post by Linux »

Which version you are using? (I think you're using the old version)
Did you try v4.4b20? If not then Download:
allprotection4.4b20.zip
MIRROR
:)
I'm an idiot, At least this one [bug] took about 5 minutes to find...
I
IRCNick
Halfop
Posts: 64
Joined: Wed Oct 12, 2005 9:43 pm
Location: Germany
Contact:

hmm

Post by IRCNick »

I have the only one avaible for download ... version 4.3. Somebody have to update the link in tcl archive to the aktual version
Thank u I will try the newer version... omg i have to make make again all of the config .... 1200 lines :cry:
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

If you're using 4.4b20, that error should not show up. Incase you are using it, please post the whole .set errorInfo output to see where the problem occurs.

My PC is out of order right now and I'm not finding time to fix it, thus I'm not working on the script to release a new complete version, I'll try to fix it this weekend and the rest is yet to be seen.

Edit: that error shouldn't occur in v4.3 either, you must've done something wrong while editing.
I
IRCNick
Halfop
Posts: 64
Joined: Wed Oct 12, 2005 9:43 pm
Location: Germany
Contact:

Post by IRCNick »

Im sure i havent done anythink wrong !
Hmm i have downloaded the newest release 4.4b20 and I saw that u are using the demond's idea to set all of the settings through partyline. This is actually a great idea, but I had a problem with this, when I restart my eggdrop (1.6.17 the newest release from www.eggheads.org) and all the settings I have done are gone. And always when I restart my eggdrop I have to make all settings again. Do u have the same problem or this is somehow fixed ?
I
IRCNick
Halfop
Posts: 64
Joined: Wed Oct 12, 2005 9:43 pm
Location: Germany
Contact:

I forgot...

Post by IRCNick »

I tried already to .set errorInfo but this have to be disabled in the eggdrop.conf because I got nothing. I dont remember the exactly setting in the conf file, if u tell me the settingsname I can post the errorInfo.
User avatar
Linux
Halfop
Posts: 71
Joined: Sun Apr 04, 2004 4:20 pm
Location: Under The Sky

Post by Linux »

Have your .tcl and .set commands enabled, meaning that you need to open your config and comment out (or remove) the following lines:

Code: Select all

unbind dcc n tcl *dcc:tcl 
unbind dcc n set *dcc:set
then save the config and restart the bot.
have full backtrace of the error; that means upon receiving TCL error (you must be logged in), immediately type .set errorInfo and save the output, if the bot replies with 'What? You need .help', you need to enable command .set (see above)

(PS: Quote from demond)
I'm an idiot, At least this one [bug] took about 5 minutes to find...
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

IRCNick, as long as you're using the same .chan file then no need to reset the channel settings at all after restarting/rehashing.

PS: There're two known bugs in 4.4b20, replace $txtc($uhc)+ and $notccf($uhc) with $o+ and it should work perfectly.
I
IRCNick
Halfop
Posts: 64
Joined: Wed Oct 12, 2005 9:43 pm
Location: Germany
Contact:

Post by IRCNick »

Thank to the both of you. I have changed the things that Sir_Fz wrote and I will try first the newest release 4.4b20, than if I have some problem with it I will post the errorInfo here. I think all will be fine. Thank you again for the help. Great work
User avatar
Linux
Halfop
Posts: 71
Joined: Sun Apr 04, 2004 4:20 pm
Location: Under The Sky

Post by Linux »

IRCNick,
just have a look what Sir_Fz said:
Sir_Fz wrote:that error shouldn't occur in v4.3 either, you must've done something wrong while editing.
be careful while editing the script, anyway you welcome anytime :)
I'm an idiot, At least this one [bug] took about 5 minutes to find...
I
IRCNick
Halfop
Posts: 64
Joined: Wed Oct 12, 2005 9:43 pm
Location: Germany
Contact:

There is the same problem

Post by IRCNick »

Same errors...

Code: Select all

 <BotName>  Tcl error [adv:kick]: expected integer but got ""
 <BotName>  Tcl error [nosense:kick]: expected integer but got ""
 <IRCNick> .set errorInfo
 <BotName>  #IRCNick# set errorInfo
 <BotName> Currently: expected integer but got ""
 <BotName> Currently:     while executing
 <BotName> Currently: "incr NumKicks"
 <BotName> Currently:     (procedure "getkcount" line 3)
 <BotName> Currently:     invoked from within
 <BotName> Currently: "getkcount"
 <BotName> Currently:     (procedure "mapall" line 3)
 <BotName> Currently:     invoked from within
 <BotName> Currently: "mapall $km $c $bti"
 <BotName> Currently:     ("kb" arm line 2)
 <BotName> Currently:     invoked from within
 <BotName> Currently: "switch -- $p {
 <BotName> Currently:   "kb" {
 <BotName> Currently:    putquick "KICK $c $n :[mapall $km $c $bti]"
 <BotName> Currently:    putquick "MODE $c +b [set bm [masktype $n!$u $bty]]"
 <BotName> Currently:    if {($bti > 0) && ([..."
 <BotName> Currently:     (procedure "do:p" line 3)
 <BotName> Currently:     invoked from within
 <BotName> Currently: "do:p $p $nick $uhost $chan $kmsg $wmsg $btype $btime $klmsg $ktime $ktype"
 <BotName> Currently:     (procedure "punish:method" line 69)
 <BotName> Currently:     invoked from within
 <BotName> Currently: "punish:method $nosense(pmeth) $nick $uhost $chan [ap:mapr $nosense(kmsg) "random string"] $nosense(wmsg) $nosense(btype) $nosense(btime) $nosense(klms..."
 <BotName> Currently:     (procedure "nosense:ban" line 4)
 <BotName> Currently:     invoked from within
 <BotName> Currently: "nosense:ban $nick $uhost $chan "
 <BotName> Currently:     (procedure "nosense:kick" line 15)
 <BotName> Currently:     invoked from within
 <BotName> Currently: "nosense:kick $_jp1 $_jp2 $_jp3 $_jp4"
But i found the problem. The file kcount.txt or whatever must not be empty and have to exist in the directory(config path). If empty it get backspace and return "" . In the newer version have to check(suggestion), if the file is emtry and if not than write 0 for example.

Somethink else for the adversting
If I write in the channel

Code: Select all

Welcome to #Channel
Its all fine I become a ban ;)
but if I write only

Code: Select all

#Channel
I become no ban.And same is with http:// ftp:// , //write and etc or order is turned( http://example.com -> ban , Welcome to http://example.com -> no ban)
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

It does check if the file exists or not, but I'll add a check to see if the return is an integer in the next version. Thanx for the notice.

As for your advertising issue, that depends on the words you put in the list of advertising words.
I
IRCNick
Halfop
Posts: 64
Joined: Wed Oct 12, 2005 9:43 pm
Location: Germany
Contact:

Another bug

Post by IRCNick »

Code: Select all

[18:45] * BotName sets mode: +l 120
[18:46] * BotName sets mode: +l 120
[18:46] * Joins: Nick1 (~taka87@somecool.host.com)
[18:46] * Joins: Nick2 (~kristian_@another.cool.domain.com)
[18:47] * AnotherBot sets mode: +l 119
[18:48] * Joins: Nick3 (~Ral@blqblq.domain.Net)
[18:48] *** Quits: Nick4 (Client Quit)
[18:48] * Joins: Nick5 (VpjkPz@Ip.home.com)
[18:48] *** Quits: Nick6 (Client Quit)
[18:49] *** Quits: Nick7 (Client Quit)
[18:49] * AnotherBot sets mode: +l 118
[18:50] *** Quits: Nick8 (Some cool quitmsg)
[18:50] * BotName sets mode: +l 121
[18:50] * BotName sets mode: +l 123
[18:50] * BotName sets mode: +l 120
[18:50] *** Quits: Nick9 (Quit: Another quitmsg)
[18:50] * BotName sets mode: +l 116
Why set the bot so many times the limit,when there are no changes (usercount) I think this isnt normal? In the config I have setted the timer to check every 1 min. Need fix ;) or ?
I
IRCNick
Halfop
Posts: 64
Joined: Wed Oct 12, 2005 9:43 pm
Location: Germany
Contact:

Some extention

Post by IRCNick »

The limit proc is totally buged ;)
My settings are to add +10 above. The egg add normally +10 but not always
Example (log again)
There are 78 users in the channel:

Code: Select all

[23:13] * AnotherBot sets mode: +l 88
[23:15] * MyBot sets mode: +l 99
[23:15] * MyBot sets mode: +l 96
[23:15] * AnotherBot sets mode: +l 88
[23:15] * MyBot sets mode: +l 93
I think, that this proc must be fixed.

PS. Sry for reporting bugs, but we all want, that the tcl work fine ;)

Greet
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

.chanset #channel ap:limit 10
and everything works fine, no several limits and no invalid limits.
Post Reply