| View previous topic :: View next topic |
| Author |
Message |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Wed Oct 22, 2008 11:24 pm Post subject: |
|
|
| The error was caused due to a dict or tcl bug if I recall correctly. Something like that. It wasn't an issue with the script and nothing could be done about it. I imagine it's the same issue still. |
|
| Back to top |
|
 |
Joori Voice
Joined: 24 Mar 2006 Posts: 34 Location: Sydney
|
Posted: Thu Oct 23, 2008 3:24 am Post subject: |
|
|
Bugger, guess i can't run it, or wait for an update for tcl and see if that fixes the problem.
Cheers for the rapid response! _________________ No Haters, No Spies, Just the love 'tween my thighs! |
|
| Back to top |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Thu Oct 23, 2008 7:47 am Post subject: |
|
|
| If it's the bug I'm thinking of dict still loads and the script will work. It just throws the warning everytime you load the script. |
|
| Back to top |
|
 |
Joori Voice
Joined: 24 Mar 2006 Posts: 34 Location: Sydney
|
Posted: Thu Oct 23, 2008 8:12 am Post subject: |
|
|
| GaveUp wrote: | | If it's the bug I'm thinking of dict still loads and the script will work. It just throws the warning everytime you load the script. |
Unfortunately, I dont think it is the same bug. You see, when I try to load the script I get;
| Code: | | [22:03] tvrage.tcl error: dict required. READ: http://forum.egghelp.org/viewtopic.php?p=67617#67617 |
So thinking that the script should still load, I try and set the channels I would like to announce to and get;
| Code: | .chanset #pkr +tvannounce
Error trying to set +tvannounce for #pkr, invalid mode. |
I'm thinking that the dict error is preventing the rest of the script from loading and executing the binds which would allow me to set various announce channels and/or quiet channels. _________________ No Haters, No Spies, Just the love 'tween my thighs! |
|
| Back to top |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Thu Oct 23, 2008 9:18 am Post subject: |
|
|
| You are right. This is a different error. For some reason TCL isn't finding the dict module. |
|
| Back to top |
|
 |
Joori Voice
Joined: 24 Mar 2006 Posts: 34 Location: Sydney
|
Posted: Thu Oct 23, 2008 10:36 pm Post subject: |
|
|
Ok, well I've given up on trying to figure out the error with TCL8.5.. I've tried uninstalling and reinstalling and all to no avail. I have now installed TCL8.4 and the Dict package mentioned in previous posts in this thread. The script now works just fine
After all that, I should have just installed TCL8.4 in the first place instead of trying to troubleshoot the error when I myself know next to nothing about TCL programming. My *nix knowledge is limited in it'self so yeah... all good now. Works great so far
Cheers for the help! _________________ No Haters, No Spies, Just the love 'tween my thighs! |
|
| Back to top |
|
 |
wac Halfop

Joined: 10 Dec 2006 Posts: 80 Location: in my cardboard box
|
Posted: Tue Oct 28, 2008 12:28 am Post subject: uh |
|
|
ugh got the script and dict tryed to install dict to a dir within my shell to no avail, trying to look through the pages to find an answer... ffs... _________________ I see j00! |
|
| Back to top |
|
 |
user

Joined: 18 Mar 2003 Posts: 1452 Location: Norway
|
Posted: Tue Oct 28, 2008 4:56 am Post subject: |
|
|
| Joori wrote: | | Ok, well I've given up on trying to figure out the error with TCL8.5.. |
In Tcl 8.5 dict is a native command, so the check for the dict package will of course fail. I suggest changing the dict check from | Code: | if {[catch {package require dict} error]} {
die "tvrage.tcl error: dict required."
} | to | Code: | if {![llength [info commands dict]]&&[catch {package require dict} error]} {
die "tvrage.tcl error: dict required."
} | which should make it compatible with 8.5 or any other implementation of dict. (not all of them come in the form of a package) _________________ Have you ever read "The Manual"? |
|
| Back to top |
|
 |
Joori Voice
Joined: 24 Mar 2006 Posts: 34 Location: Sydney
|
Posted: Tue Oct 28, 2008 8:52 am Post subject: |
|
|
awesome stuff, i'll give that a go and see how it pans out. Although, it drives me nuts seeing people use "die" in their scripts when most of them would not render the eggdrop useless and thus it's not needed... so i might just remove that seeing as i wouldn't want to compromise my eggdrop's uptime as im sure many others would have the same view. I've had many instances where my eggdrop has been forced to shutdown because of that damn die command when it wasn't needed.
Die == not cool! _________________ No Haters, No Spies, Just the love 'tween my thighs! |
|
| Back to top |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Tue Oct 28, 2008 9:31 am Post subject: |
|
|
I don't disagree with you. The die code is left over from the original code, which was hobbled together as I was relearning the language after a several year break. This is one of the things I've been meaning to change and just haven't gotten around to. Since the last release of this, long ago, I haven't touched egg scripting at all and due to some other things taking up time I haven't gotten back to doing it, though, as I obviously still watch the forums I plan to at some point.
| Quote: | | In Tcl 8.5 dict is a native command |
Thanks for the information. |
|
| Back to top |
|
 |
wac Halfop

Joined: 10 Dec 2006 Posts: 80 Location: in my cardboard box
|
Posted: Tue Oct 28, 2008 8:38 pm Post subject: |
|
|
this may seem like a stupid question but is the version previous to the one that required dict still compatible with tv rage, if so could I get a copy of it as I'm on a shell and haven't the slightest as to how to incorporate dict into just a dir within my shell environment, thanks! _________________ I see j00! |
|
| Back to top |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Tue Oct 28, 2008 9:09 pm Post subject: |
|
|
| While there might be bugs with it, the tvrage interface hasn't changed significantly since this script was started so it should still work. You'll have to find the post referencing it and try the download link, though. I no longer have a copy of the old versions. |
|
| Back to top |
|
 |
wac Halfop

Joined: 10 Dec 2006 Posts: 80 Location: in my cardboard box
|
Posted: Thu Oct 30, 2008 10:02 pm Post subject: |
|
|
Ok thanks for your help.  _________________ I see j00! |
|
| Back to top |
|
 |
arbiter Voice
Joined: 24 Oct 2005 Posts: 8
|
Posted: Thu Nov 06, 2008 1:57 am Post subject: |
|
|
well, even in 8.5 on mine at least it still complained and wanted tcldict.
[12:54:31am] <OverMind> Tcl version: 8.5.2
i end up having to do a rig job that works great, found a libdict compile in distro of nix i use and loaded it manually using a seperate tcl file
load /usr/lib64/dict8.5.2/libdict8.5.2.so
putlog "Module loaded: libdict8.5.2"
problem solved works prefect =) |
|
| Back to top |
|
 |
darkwolf Voice
Joined: 26 Feb 2007 Posts: 9
|
Posted: Thu Dec 04, 2008 11:15 pm Post subject: |
|
|
!tvinfo doesn't seem to work anymore.
TVRage: getShowInfo: ERROR: connect failed
 |
|
| Back to top |
|
 |
|