| View previous topic :: View next topic |
| Author |
Message |
McGuyver Voice
Joined: 31 Aug 2011 Posts: 14
|
Posted: Wed Aug 31, 2011 1:31 pm Post subject: |
|
|
with the latest git i am getting the following every minute
| Code: | | Tcl error [::tvrage::announceShows]: invalid command name "countries" |
|
|
| Back to top |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Wed Aug 31, 2011 1:46 pm Post subject: |
|
|
| What do you get if you do an !updatecache or a rehash? |
|
| Back to top |
|
 |
McGuyver Voice
Joined: 31 Aug 2011 Posts: 14
|
Posted: Wed Aug 31, 2011 4:00 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Wed Aug 31, 2011 4:02 pm Post subject: |
|
|
| Care to try that sentence again in English? |
|
| Back to top |
|
 |
McGuyver Voice
Joined: 31 Aug 2011 Posts: 14
|
Posted: Wed Aug 31, 2011 7:28 pm Post subject: |
|
|
I figured out why I was having problems. I had changed the to 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 to | Code: | | after 1 [namespace current]::init | and it appears to have fixed my problems. I hope that is easy to understand. |
|
| Back to top |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Wed Aug 31, 2011 7:32 pm Post subject: |
|
|
| What was the crash message? The init should not need to change. |
|
| Back to top |
|
 |
McGuyver Voice
Joined: 31 Aug 2011 Posts: 14
|
Posted: Wed Aug 31, 2011 7:37 pm Post subject: |
|
|
| Code: | [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) |
|
|
| Back to top |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Wed Aug 31, 2011 7:47 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
McGuyver Voice
Joined: 31 Aug 2011 Posts: 14
|
Posted: Wed Aug 31, 2011 8:08 pm Post subject: |
|
|
| Code: | 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. |
|
| Back to top |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Wed Aug 31, 2011 8:27 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
McGuyver Voice
Joined: 31 Aug 2011 Posts: 14
|
Posted: Thu Sep 01, 2011 9:34 pm Post subject: |
|
|
| Just thought that I should mention that I am using eggdrop-1.6.20 with tcl-8.5.10 and tcllib-1.11.1 |
|
| Back to top |
|
 |
McGuyver Voice
Joined: 31 Aug 2011 Posts: 14
|
Posted: Fri Sep 02, 2011 1:27 am Post subject: |
|
|
| I just tested the script with eggdrop v1.6.19+ctcpfix and restarting and rehashing do not crash the bot. |
|
| Back to top |
|
 |
McGuyver Voice
Joined: 31 Aug 2011 Posts: 14
|
Posted: Fri Sep 02, 2011 9:08 pm Post subject: |
|
|
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: | | Smallville (2001-2011) |
|
|
| Back to top |
|
 |
kenh83 Halfop
Joined: 08 Sep 2010 Posts: 61
|
Posted: Fri Sep 02, 2011 10:04 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Fri Sep 02, 2011 11:13 pm Post subject: |
|
|
| 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: | | Smallville (2001-2011) |
|
If you grab the latest version there is are "endedyear", "endedday" and "endedmonth" settings that can be used for this purpose. |
|
| Back to top |
|
 |
|