Uptime contest script.

Release your script here.
State:
- Author
- What it does
- Perhaps a little guide.
- Also, if the snippet is of any use to the community, it has a chance of getting posted on the main page, so don't hesitate to submit/ask!

Re: Uptime contest script.

Postby aFaik » Tue Oct 13, 2009 9:31 am

So... where do I put your code to make it work? Or do I wait for the creator to implement it correctly into the whole script and download it again? :)
aFaik
 

Re: Uptime contest script.

Postby aFaik » Sun Oct 25, 2009 10:37 pm

Hello again!

The script now works (don't know how - didn't do anything) but a new problem arose. For example, if I schedule a contest with !uptime start HH:MM DD/MM-YYYY command and the date is next month (not 31 days away but just few days that are in the following month) it doesn't work and (telnet) gives me this error:

Code: Select all
Tcl error [::uptime::public]: wrong # args: should be "join nickname hostname handle channel"


If the date is set in the current month, everything works fine. Any solutions to this?
aFaik
 

Re: Uptime contest script.

Postby aFaik » Sun Nov 01, 2009 4:10 pm

Now even if the date is in current month the script doesn't work. Maybe it has something to do with November :?: :?: as it didn't work when I set it in october to start in november, and I doesn't work in november when I set it to start in november. Very strange......

Now, it sometimes gives me this error:
Code: Select all
[17:10] Tcl error in script for 'timer815226':
[17:10] couldn't open "./scripts/counter.txt": no such file or directory
aFaik
 

Re: Uptime contest script.

Postby r0t3n » Fri Nov 06, 2009 12:48 am

Code: Select all
set month1 "0[expr $month-1]"


That line may very well be responsible for it not working for november/december, due to month 11/12 then becomes 010/011...

Try replacing it with:

Code: Select all
set month1 "[expr {$month>=11 ? "" : "0"}][expr {$month-1}]"
r0t3n
 

Re: Uptime contest script.

Postby aFaik » Mon Nov 09, 2009 4:41 pm

Thank you for your answer, will try it ASAP!
aFaik
 

Re: Uptime contest script.

Postby aFaik » Thu Feb 11, 2010 3:19 pm

Hello again!

Unfortunately your update doesn't work. The funny thing is that it schedules the competition allright but never starts when the set date and time arrive. I've tried both your version and default version - neither of them start the scheduled competition. I tried also the initial version (without my design codes) and it doesn't work either - so I don't think I messed up with design... Any input on this? I find this script highly usable and would be really glad if it worked. Thank you in advance!
aFaik
 

Re: Uptime contest script.

Postby elfik72 » Sun Feb 21, 2010 7:05 pm

hello,

The script does not work:

!uptime on -> ok

!uptime off ->
Code: Select all
Tcl error [::uptime::public]: wrong # args: should be "channel get channel-name setting-name"


!uptime start ->
Code: Select all
Tcl error [::uptime::public]: wrong # args: should be "clock format clockval ?-format string? ?-gmt boolean?"


eggdrop version: eggdrop v1.6.19

Can you help me ?
(sry for my english i'm french :)

Thanks
elfik72
 

Re: Uptime contest script.

Postby aFaik » Sun Feb 21, 2010 10:42 pm

I think that something is wrong with the script. It work fine last year, this year it doesn't. I strongly suspect that it has something to do with time calculation.

@elfik72: Try just starting it without scheduling. So !uptime on and than !uptime start. Let me know if it works!
aFaik
 

Re: Uptime contest script.

Postby elfik72 » Mon Feb 22, 2010 12:20 pm

!uptime on
Preparing Uptime Contest. Autovoice is turned on.

ok

!uptime start
Tcl error [::uptime::public]: wrong # args: should be "clock format clockval ?-format string? ?-gmt boolean?"
Tcl error [main_func]: can't read "::timeup": no such variable

:?
elfik72
 

Re: Uptime contest script.

Postby aFaik » Mon Feb 22, 2010 2:39 pm

Hmm that's strange. For me "ad-hoc" start works normally, just scheduling doesn't. Hope somebody will fix this, I'd love to help but have no TCL knowledge :|
aFaik
 

PreviousNext

Return to TCL Scripting Release

Who is online

Users browsing this forum: No registered users and 0 guests

cron