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.

alice.tcl & egghttp.tcl don't work?

Old posts that have not been replied to for several years.
Locked
d
dilema

alice.tcl & egghttp.tcl don't work?

Post by dilema »

Ok I have my eggdrop 1.6 all set up. All my scripts work well excpet ones that require egghttp.tcl. I have that script loaded (and yes it's at the top it's being loaded first) these scripts are whatis.tcl and alice.tcl. Now when i go to load up my bot with say egghttp.tcl (at the top) and alice.tcl i get

[22:21] Tcl error in file 'Ph34r-M3.conf':
[22:21] wrong # args: should be "switch ?switches? string pattern body ... ?default body?"
while executing
"switch $alice_engine {
0 {
set alice_url "http://alice.sunlitsurf.com:2009/a.l.i.c.e./"
set alice_input "text"
set alice_cookie_..."
invoked from within
"if {($alice_engine < 6) && (![info exists egghttp(version)] || ($egghttpnumvers < 103))} {
putlog "alice.tcl : Could not load alice.tcl, egghttp.tcl..."
(file "scripts/alice.tcl" line 86)
invoked from within
"source scripts/alice.tcl"
(file "Ph34r-M3.conf" line 1351)
[22:21] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)


Now thats when i try to load egghttp.tcl and alice. My config file is set up properly but it's saying it's not and telling me about the line where it has "source scripts/alice.tcl" so thats fine. Now when i remove alice.tcl and add wahtis.tcl (i did this to make sure it wasn't the alice script and was the egghttp.tcl, seeing they both depend on it obviosly if they both don't work it's the egghttp.tcl script) so with the whatis.tcl i get

[22:25] bseen1.4.2c: -- Bass's SEEN loaded --
[22:25] Loading seen database...
[22:25] Done loading 10 seen records.
[22:25] ASS - AntiSlapScript by Konsument loaded
[22:25] aEddie's Extensionsa v0.8.6a by Jamie Cheetham -- loaded! --
[22:25] CNN News v1.1 by Thrill - Loaded.
[22:25] The aBastard Operator from Hella Excuses Board :: by Tiernan <tin@angelsfury.net> :: Loaded
[22:25] Respect TCL by SLaVe .:. LOADED
[22:25] * easyspeak.tcl by Dalanx loaded.
[22:25] whatis.tcl v1.1.2 by strikelight now loaded.
[22:25] bgexec.tcl v1.1 by strikelight now loaded.
[22:25] sysinfo.tcl 1.2.0 by strikelight now loaded
[22:25] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).
[22:25] use '.help userinfo' for commands.
[22:25] Userfile loaded, unpacking...
[22:25] === Ph34r-M3: 1 channels, 3 users.
Launched into the background (pid: 4132)

Notice the whatis script gets loaded but not the egghttp.tcl script? which makes it definately the egghttp.tcl script that is problematic. Can anyone tell me why this is happening? i would really like to try out the alice.tcl script but thats not gonna happen until i get this fixed. well thanks in advance i hope i gave enough info on the issue. By the way everything is in the standard locations I.E. modules and such.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Not all scripts show a line stating they have been loaded, and they don't need to.

In most, it is a line to state what is is, who by and the version, usualy aimed at saying it is loaded.

So long as you don't have a # at the begining of the the source line to load the egghttp.tcl script, then all should be fine.

If you so wish to prove it, edit your cofnig file, and change one letter in the egghttp.tcl line. Try loading the bot. If it fails, then all is working fine.

As for the alice problem.

Check the alice config section. What have you set for the value of alice_engine?
d
dilema

Nope!

Post by dilema »

Well, the alice.tcl fails miserably. And I don't think it's getting loaded because I have tried a few other .tcl scripts that require it. each one that requires it doesn't get loaded. I am assuming they are not getting loaded because egghttp.tcl isn't being loaded. So if i try a bunch of scripts that depend on one other script and they fail. Odds are it's the egghttp.tcl
Anyway about Alice i have changed that value to everything it has to offer from 1 to 6 (it only gives me six options) and to no avail. there is absolutely no documentation on the egghttp.tcl on the web. I searched google for that and alice.tcl errors came up with nothing. And i know i can recieve [censored] from the web cause i have a stock grabber and a cnn news grabber. but these don't require egghttp/tcl and they grab [censored] from the web fine. Thats why i think it's egghttp.tcl not working
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

What line have you used to load the egghttp.tcl script?
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

This user has contacted me regarding the problem, so I'll just post the problem/answer here for future reference..

Problem:
User did not read and/or interpret the comments above the settings in the config section of alice.tcl correctly, and thus attempted to use methods designed for pre 1.5.x versions of eggdrop.
ie. was setting the variable alice_channels

Solution:
The use of .chanset #channel +alice is required for 1.5.x+ eggdrop bots.
(As stated in the documentation of alice.tcl)
Locked