DING!
okay okay! I get cha!
yeah, the old code didn't require sending the args/flags along with a run/list command... (though I DID include them in the "controlled" proc..)
since the writing of the previous post, I have "worked around" as many issues as I could... mainly sticking all the "timer-controlled" procs (updates) into a SINGLE proc and then binding that to "time" (the number of globals is SCARY!)
I still noticed that NO expressions or if/else works unless I set those particular varables as a global even if the
if statment is still inside the SAME proc as the varable! setting the varable as a global works- even though that varable will NEVER be used outside the proc (isn't that a whaste of resources??) for this reason, I'm cirrently at 46 "global" varables and expect to climb to over 100! (I hope there isn't a LIMIT!)
because it was requested: and now I can access the web at this terminal)
heres the ACTUAL code, from the OLD Bot, reguarding the timers..
Code: Select all
##### Run Timers #####
if {![info exists loop]} {
utimer 5 [list RunLoop1]
utimer 6 [list RunLoop2]
utimer 97 [list RunLoop3]
utimer 98 [list RunLoop4]
set loop 1
}
proc RunLoop1 {} {
[list GetInfo]
utimer 5 [list RunLoop1]
return 1
}
proc RunLoop2 {} {
[list OtsSwitch]
utimer 5 [list RunLoop2]
return 1
}
proc RunLoop3 {} {
[list UpteTitle]
utimer 5 [list RunLoop3]
return 1
}
proc RunLoop4 {} {
[list UpteSong]
utimer 5 [list RunLoop4]
return 1
}
this code WORKED in the old Bot FLAWLESSLY..
but, as it was pointed out.. I was WAY beihind and I know I misssed a LOT of upgrades.. I'm "re"learning TCL now so I could figure out the NEW limits on what I can and can't do...
the NEW code for the "timers" section has been changed to:
Code: Select all
### Get Server Info ###
bind time - "* * * * *" ServInfo
"GetInfo" (sockets), "OtsSwitch" (auto playout control), "UpteTitle" (updates the current cast title) and "UpteSong" (updates the current song name) have all been combined to a single proc called "ServInfo" and, though its now SLOWED to updating once a minute.. (old code did it once every 5 seconds) it was the best I could do!
Now, with Speechless's suggestions, I will try reworking the timers section once again.. I surely didn't catch the concept of including the arg/flasg on the end of the exec/list section (I tried everything ELSE)
One thins I see going wrong... is will I have to pass the args all the way down to the end procs and will that be an issue? I guess I'll find out!
in the meantime, thanks everyone for your help! I appreciate it.. I'm working hard to redesign all of this.. and.. perhaps, with all your help, I'll not only get the NEW Bot up and running, but I plan to ELIMINATE the old Bot's reliance on PHP for the web-side of things.. I think the new Bot could do a BETTER job than running php in a shell!
more exciting details to come! if you want to find out more, I invite you to my chat network at this link (the website is still down as the BOT will be generating it DYNAMICALLY!) see? eggdrop in action!
Using Flash:
http://www.warp-radio.com/warp-chat-flash.html
you can join via your favorite IRC client too:
server irc.warp-radio.com:6667
channel #WARP-Radio
come by and say hi

(sorry if this seemed poachy- but I am writing the bot in realtime and it does make progress in that chat netowrk!)
again, thanks for all your help.. I believe it will be resolved soon enough
-DjZ-
