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.

Timer

Help for those learning Tcl or writing their own scripts.
Post Reply
A
Ace-T
Halfop
Posts: 82
Joined: Tue Aug 29, 2006 7:25 am

Timer

Post by Ace-T »

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?
A
Ace-T
Halfop
Posts: 82
Joined: Tue Aug 29, 2006 7:25 am

Post by Ace-T »

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??
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

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.
==================================
A
Ace-T
Halfop
Posts: 82
Joined: Tue Aug 29, 2006 7:25 am

Post by Ace-T »

cant seem to find him hehe

is there a way to get a list of active timers in partyline??
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

I think this will do the job in the partyline :
.tcl timers
A
Ace-T
Halfop
Posts: 82
Joined: Tue Aug 29, 2006 7:25 am

Post by Ace-T »

nah dont work :(


just need to know why this timer aint reapting rly, timers in tcl are hard :(
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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.
A
Ace-T
Halfop
Posts: 82
Joined: Tue Aug 29, 2006 7:25 am

Post by Ace-T »

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 :)
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

Zircon wrote:I think this will do the job in the partyline :
.tcl timers
U have to enable the .tcl commad in your conf file so it can work
# 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
A
Ace-T
Halfop
Posts: 82
Joined: Tue Aug 29, 2006 7:25 am

Post by Ace-T »

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
Post Reply