| View previous topic :: View next topic |
| Author |
Message |
ascension Voice
Joined: 26 Mar 2007 Posts: 8
|
Posted: Sun Apr 08, 2007 3:37 am Post subject: |
|
|
| Hum, then then dict detection is faulty for some reason, good to remove it in that case.. |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sun Apr 08, 2007 7:48 am Post subject: |
|
|
GaveUp could explain this better, I dont remember all the details he told me. But, apparently the problem is in dict itself, and is a known problem, it doesn't return the correct version number or something to that effect.
And for whatever reason, my copy of dict doesn't assert any version number, so using "package require dict" works for me, where other systems need "package require dict <version-number>" as I understand the problem.
I'm not sure what the "correct" solution would be as far as the script's checking for the dict package and the version number, since I cannot duplicate the problem. |
|
| Back to top |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Sun Apr 08, 2007 11:24 am Post subject: |
|
|
| Quote: | | GaveUp could explain this better, I dont remember all the details he told me. But, apparently the problem is in dict itself, and is a known problem, it doesn't return the correct version number or something to that effect. |
You've pretty much got that right. It will show a warning but the code functions fine so it's more a nuisance than anything else. Also, when you see errors like
| Quote: | | [3:51/p] <(> [23:52] Tcl error [::tvrage::announceShows]: invalid command name "dict" |
it is NOT a symptom of this problem. The above, obviously, indicates dict is not loaded because the module is not available.
| Quote: | | Hum, then then dict detection is faulty for some reason, good to remove it in that case.. |
When you right the code then you can decide what structures and functions to use. dict was chosen for a reason and it will not be going anywhere any time soon. You failure to administer a box and get dict working is NOT my problem. This code is provided for free and until otherwise (read: never going to happen) it is not my job nor anyone elses to make it work for you.
@rosc2112 -- What tcl version are you running? Seeing as dict is new to the 8.5 branch if you're running that that would explain the lack of the version warning. |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sun Apr 08, 2007 6:39 pm Post subject: |
|
|
I'm running v8.4.11 actually, and dict 8.5.2, compiled with ./configure --enable-threads --enable-shared options.
Edit: I should mention it's also a Linux 2.4.x platform with gcc 3.2.3 and libc-2.3.5 if that makes any diff..My system isn't quite standard, as it's a slackware based system that's been manually upgraded for about the last 10 yrs =)
@everyone complaining about dict:
From what I've read about dict, it's more efficient and flexible than using pure arrays, so it's a better option. And it's really not that hard to implement, just compile it, install and it should work just fine, unless you're on a windoze platform and in that case, you have more problems than just getting dict to work.
<opinion>
Eggdrop, tcl, etc, are *nix platform programs, the ports to windoze are kludges and create more problems than its worth. Get over your fear of learning and reading manuals and run a real os
</opinion> |
|
| Back to top |
|
 |
ascension Voice
Joined: 26 Mar 2007 Posts: 8
|
Posted: Sun Apr 08, 2007 9:09 pm Post subject: |
|
|
| I'm not complaining... but if get detection is faulty that is cause for concern... I am not acting all high and mighty and don't think a simple tcl script author needs to attack everyone that are not making negative comments about or even towards him. Yes, there are lots of stupid questions asked, I did not see anything about the erroneous get detection until rosc's post -- who has been very helpful on this forum for quite a while. Anyway, everyone get along please or get off the high horse. :] |
|
| Back to top |
|
 |
scr1pt Voice
Joined: 30 Mar 2007 Posts: 11
|
Posted: Mon Apr 09, 2007 4:28 pm Post subject: |
|
|
i get this error when !tomorrow, !tomorrow us
Tcl error [::tvrage::tomorrow]: can't read "show(country)": no such element in array
any ideas? |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Mon Apr 09, 2007 9:14 pm Post subject: |
|
|
That type of error indicates that there's no data in the cache, run the update-cache command (configurable in tvrage.conf, the default is !updatecache)
I'm doing a bit of work on the script and make it fetch a new cache when such errors are encountered. Actually, I just looked and the last copy I posted should at least give a proper error message, instead of a tcl error. |
|
| Back to top |
|
 |
scr1pt Voice
Joined: 30 Mar 2007 Posts: 11
|
Posted: Tue Apr 10, 2007 2:56 am Post subject: |
|
|
| k, thanks |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
|
| Back to top |
|
 |
Taz Voice
Joined: 23 Oct 2005 Posts: 9
|
Posted: Sun Apr 15, 2007 9:26 pm Post subject: |
|
|
Thanx for your additional input and support on this project rosc2112. It is appreciated by many I am sure, even if they dont let you know by way of a simple post!!!!!  |
|
| Back to top |
|
 |
bast Voice
Joined: 07 Oct 2006 Posts: 37
|
Posted: Fri Apr 20, 2007 1:33 am Post subject: |
|
|
hey.
Cant get this script to work in my chan.
I have fish enabled, and when i try a command it give me back
invalid command name :: tvrage :: help 0
if i remove the key it works flawless.
and i do got blowcrypt installed so it can decrypt, and all of my other scripts works just fine.
so anyone got any idea?  |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Fri Apr 20, 2007 3:53 am Post subject: |
|
|
What the hell is fish and why would a tv schedule script need blowfish?
Clue: If it works without encryption, don't enable encryption.
The error is because the script uses namespaces and your 'fish' thing doesn't understand namespaces, presumably. |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Fri Apr 20, 2007 9:17 am Post subject: |
|
|
they encrypt channel public traffic
so obviously they are trying to get the bot to work with having to translate that |
|
| Back to top |
|
 |
romeo5k Halfop
Joined: 28 Jul 2006 Posts: 46
|
Posted: Fri Apr 20, 2007 3:30 pm Post subject: NOT WORKING... |
|
|
in the scripts folder are all three of the files i dloed. : .theme,.conf and .tcl
In my eggdrop.conf file, all three and listed so eggy loads em.
then i restart eggy, and go to dcc chat with bot, try to load it, and its iving me an error. It also says something about dict. I tried reading what everyone on here put about dict, but its still not ringing in my head. I went to the wiki site, and got completely lost. So i searched on google and got only 3 links, wiki was not one of em. Up above is the error im getting... tell em what to do, please.. thnx
**edit** i have dictcom.0.02d.tcl, i just looked andf noticed it, i dont know what its doing there, dunno if its not supposed to be there. But whatever way, its there... so what to do? |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Fri Apr 20, 2007 8:22 pm Post subject: |
|
|
Change the order of loading; load dictcom.0.02d.tcl ahead of the tvrage.tcl script. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
|