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.

http.tcl

Support & discussion of released scripts, and announcements of new releases.
Post Reply
S
Solo
Voice
Posts: 3
Joined: Fri Feb 22, 2008 11:46 am

http.tcl

Post by Solo »

Ok so i have this youtube script, and it says in comments that http.tcl is required, which im assuming is so bot can connect with http to get the youtube information.

So i got this http.tcl script and put it in my scripts folder and added the source scripts/http.tcl to conf and restated bot, it didn't appear to load, and i got this error.

Code: Select all

0415:11…   10 Rufus: [15:17] #Solo# rehash
15:11…   10 Rufus: Rehashing.
15:11…   10 Rufus: [15:17] Writing user file...
15:11…   10 Rufus: [15:17] Writing channel file...
15:11…   10 Rufus: [15:17] Rehashing ...
15:11…   10 Rufus: [15:17] Listening at telnet port 3336 (all).
15:11…   10 Rufus: [15:17] Tcl error in file 'rufus.conf':
15:11…   10 Rufus: [15:17] conflicting versions provided for package "http": 2.5.3, then 2.5.0
15:11…   10 Rufus: while executing
15:11…   10 Rufus: "package provide http 2.5.0"
15:11…   10 Rufus: (file "scripts/http-2.5.tcl" line 28)
15:11…   10 Rufus: invoked from within
15:11…   10 Rufus: "source scripts/http-2.5.tcl"
15:11…   10 Rufus: (file "rufus.conf" line 1338)
15:11…   10 Rufus: [15:17] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
So yea, im figuring eggdrop has its own build in version or something? well i dunno, ill let you guys tell me :) thanks.
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Unload the script. There is already a HTTP package in the TCL library.

(Use package require http if you don't have it in your script)
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Even further, never ever load tcl-packages using source, use the package require command for these. It'll make sure the proper version is loaded, keeps track which packages are loaded, etc.

Of course, this does not apply to normal scripts, which are loaded using the source command as usual.
NML_375
S
Solo
Voice
Posts: 3
Joined: Fri Feb 22, 2008 11:46 am

Post by Solo »

Yea i did it without the http tcl first, and the links didnt show still in irc (i tried a youtube and googler tcl scripts)

So, i'll try what you both suggested and come back :) thanks.
S
Solo
Voice
Posts: 3
Joined: Fri Feb 22, 2008 11:46 am

Post by Solo »

Ok so i tried what you both said, and it didnt say anything about http loading, but i can get http results from the partyline, but not in the channels, and yes they are set so they can recieve them if it helps.
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Solo wrote:Ok so i tried what you both said, and it didnt say anything about http loading, but i can get http results from the partyline, but not in the channels, and yes they are set so they can recieve them if it helps.
.chanset #yourchan +setting
Most scripts use this to allow/deny the ability to perform in each channel.

If you "READ" the documentation included with the script (if the script has none, read the top comments of the script) you will most always find the reason for things not going as expected.
Post Reply