| View previous topic :: View next topic |
| Author |
Message |
Ace-T Halfop
Joined: 29 Aug 2006 Posts: 82
|
Posted: Wed Jul 11, 2007 9:17 am Post subject: Timer |
|
|
i am using LoReZ ShoutCast Script v2.1, and timer doesnt work
if {$sc::sets(adv) == 1} {
timer $sc::sets(advtime) "sc::post privmsg none all {$sc::texts(adv)}"
}
and
# Advertise every X Minutes
set sc::sets(advtime) 15
but it will announce onces then it wont announce no more.. :s
any ideas y? |
|
| Back to top |
|
 |
Ace-T Halfop
Joined: 29 Aug 2006 Posts: 82
|
Posted: Wed Jul 11, 2007 7:48 pm Post subject: |
|
|
even if i do summet easy as
set delay 1
timer delay "sc::post privmsg none all {$sc::texts(adv)}"
it works once then nothing..
is there a comand for party line to see what timers are running?? |
|
| Back to top |
|
 |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Wed Jul 11, 2007 8:39 pm Post subject: |
|
|
IMHO you should try to contact the author at first. _________________ ·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
================================== |
|
| Back to top |
|
 |
Ace-T Halfop
Joined: 29 Aug 2006 Posts: 82
|
Posted: Thu Jul 12, 2007 9:08 am Post subject: |
|
|
cant seem to find him hehe
is there a way to get a list of active timers in partyline?? |
|
| Back to top |
|
 |
Zircon Op
Joined: 21 Aug 2006 Posts: 191 Location: Montreal
|
Posted: Thu Jul 12, 2007 11:03 am Post subject: |
|
|
I think this will do the job in the partyline :
|
|
| Back to top |
|
 |
Ace-T Halfop
Joined: 29 Aug 2006 Posts: 82
|
Posted: Thu Jul 12, 2007 6:23 pm Post subject: |
|
|
nah dont work
just need to know why this timer aint reapting rly, timers in tcl are hard  |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Thu Jul 12, 2007 7:04 pm Post subject: |
|
|
There's a little script called timer1.0 in the tcl archive, that will allow you to look at the timers and set/kill new ones as needed.. You can debug your timer procs with putcmdlog strings, to see if the vars are being reset and the proc is being executed and such.
The var the proc is testing is not being set properly (f {$sc::sets(adv) == 1})
Where does the var $sc::sets(adv) get set? If it's a config option, it needs to be set to 1.. If it's set somewhere else in some proc, you need to follow the chain of logic to figure out why it's not being set to 1.
As far as making timers repeat, it's not that hard. There's plenty of example scripts in the archive and the forums, for example any of the advertising scripts that repeat every few minutes. |
|
| Back to top |
|
 |
Ace-T Halfop
Joined: 29 Aug 2006 Posts: 82
|
Posted: Thu Jul 12, 2007 8:44 pm Post subject: |
|
|
thx for ur reply, i have tried the script and it seems the timer is dying after the first announce, and i have it set to == 1 in the script so i know its not tht
just gotta find why its dying at the first announce rly  |
|
| Back to top |
|
 |
Zircon Op
Joined: 21 Aug 2006 Posts: 191 Location: Montreal
|
Posted: Thu Jul 12, 2007 9:15 pm Post subject: |
|
|
| Zircon wrote: | I think this will do the job in the partyline :
|
U have to enable the .tcl commad in your conf file so it can work
| Quote: | # Comment these two lines if you wish to enable the .tcl and .set commands.
# If you select your owners wisely, you should be okay enabling these.
unbind dcc n tcl *dcc:tcl
unbind dcc n set *dcc:set |
|
|
| Back to top |
|
 |
Ace-T Halfop
Joined: 29 Aug 2006 Posts: 82
|
Posted: Thu Jul 12, 2007 9:22 pm Post subject: |
|
|
the timer1.0 scripted worked fine
i new the timer was setting anyway, cause if i set it to announce every 2 mins, it announced after the first 2 mins then died |
|
| Back to top |
|
 |
|