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.

TVRage.com Schedule Script (Latest: 2.0)

Support & discussion of released scripts, and announcements of new releases.
Post Reply
M
McGuyver
Voice
Posts: 14
Joined: Wed Aug 31, 2011 1:27 pm

Post by McGuyver »

with the latest git i am getting the following every minute

Code: Select all

Tcl error [::tvrage::announceShows]: invalid command name "countries"
G
GaveUp
Op
Posts: 139
Joined: Thu Jan 19, 2006 3:56 am

Post by GaveUp »

What do you get if you do an !updatecache or a rehash?
M
McGuyver
Voice
Posts: 14
Joined: Wed Aug 31, 2011 1:27 pm

Post by McGuyver »

looks like !updatecache is the only way to fix it after a .restart
Last edited by McGuyver on Wed Aug 31, 2011 4:06 pm, edited 1 time in total.
G
GaveUp
Op
Posts: 139
Joined: Thu Jan 19, 2006 3:56 am

Post by GaveUp »

Care to try that sentence again in English?
M
McGuyver
Voice
Posts: 14
Joined: Wed Aug 31, 2011 1:27 pm

Post by McGuyver »

I figured out why I was having problems. I had changed the

Code: Select all

init
to

Code: Select all

after 1 init
because the bot kept crashing whenever I did a .rehash or .restart. After some testing I found out that it was not running the init proc. I have now changed the

Code: Select all

init
to

Code: Select all

after 1 [namespace current]::init
and it appears to have fixed my problems. I hope that is easy to understand.
G
GaveUp
Op
Posts: 139
Joined: Thu Jan 19, 2006 3:56 am

Post by GaveUp »

What was the crash message? The init should not need to change.
M
McGuyver
Voice
Posts: 14
Joined: Wed Aug 31, 2011 1:27 pm

Post by McGuyver »

Code: Select all

[13:07:30] #McGuyver# rehash
[13:07:30] Writing user file...
[13:07:30] Writing channel file...
[13:07:30] Rehashing ...
[13:07:30] Writing channel file...
[13:07:30] Listening at telnet port 1910 (all).
[13:07:30] Loading TVRage.com Primetime Schedule Script v2.0b6-dev
[13:07:30] tvrage.tcl info: Loaded tvrage.conf successfully.
[13:07:30] tvrage.tcl info: Loaded themes/default.theme successfully.
[13:07:31] Writing channel file...
[13:07:31] Listening at telnet port 1910 (all).
[13:07:31] Tcl error in file 'eggdrop.conf':
[13:07:31] can't read "owner": no such variable
    while executing
"set notify-newusers "$owner""
    (file "eggdrop.conf" line 363)
[13:07:31] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
G
GaveUp
Op
Posts: 139
Joined: Thu Jan 19, 2006 3:56 am

Post by GaveUp »

That's not an error from the tvrage script.

I assume after you're loading this script before that line in your eggdrop conf and that's causing some issue. That's just a guess, though.
M
McGuyver
Voice
Posts: 14
Joined: Wed Aug 31, 2011 1:27 pm

Post by McGuyver »

Code: Select all

grep -n notify-newusers eggdrop.conf && grep -n tvrage eggdrop.conf
363:set notify-newusers "$owner"
1357:source scripts/tvrage/tvrage.tcl
I think the updateCache proc might be the culprit spot because if I comment out "updateCache 1 2 3 4 5" I don't have any problems restarting or rehashing the bot.
G
GaveUp
Op
Posts: 139
Joined: Thu Jan 19, 2006 3:56 am

Post by GaveUp »

Make sure you have the latest from the git repository. If you do and you're still having problems hop on the forum irc channel and send me a message so we can debug it further.
M
McGuyver
Voice
Posts: 14
Joined: Wed Aug 31, 2011 1:27 pm

Post by McGuyver »

Just thought that I should mention that I am using eggdrop-1.6.20 with tcl-8.5.10 and tcllib-1.11.1
M
McGuyver
Voice
Posts: 14
Joined: Wed Aug 31, 2011 1:27 pm

Post by McGuyver »

I just tested the script with eggdrop v1.6.19+ctcpfix and restarting and rehashing do not crash the bot.
M
McGuyver
Voice
Posts: 14
Joined: Wed Aug 31, 2011 1:27 pm

Post by McGuyver »

Is there a way to get the year a show ended just by using a theme file or will the script have to be modified?
An example of what I want.

Code: Select all

Smallville (2001-2011)
k
kenh83
Halfop
Posts: 61
Joined: Wed Sep 08, 2010 11:22 am

Post by kenh83 »

GaveUp,

Just got the latest GIT of the script and now I'm getting this all the time:

!showinfo Dexter
[09:59:25pm] <tvrage> {%%show_name%%} ({%%country%%} > {%%network%%} > {%%premiered%%} > {%%show_url%%})
[09:59:25pm] <tvrage> class > {%%classification%%}
[09:59:25pm] <tvrage> genre > {%%genres%%}
[09:59:25pm] <tvrage> status > {%%status%%}
[09:59:25pm] <tvrage> last > not available
[09:59:26pm] <tvrage> next > not available
G
GaveUp
Op
Posts: 139
Joined: Thu Jan 19, 2006 3:56 am

Post by GaveUp »

McGuyver wrote:Is there a way to get the year a show ended just by using a theme file or will the script have to be modified?
An example of what I want.

Code: Select all

Smallville (2001-2011)
If you grab the latest version there is are "endedyear", "endedday" and "endedmonth" settings that can be used for this purpose.
Post Reply