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.

Tcl that Annonce Current Song playing

Old posts that have not been replied to for several years.
g
gnagis
Voice
Posts: 19
Joined: Fri May 28, 2004 5:48 am

Post by gnagis »

thanx your the man ;)
but.. the kick thing and the other command still dosent do anything.. and i dont get annything wrong in the console either :roll: :roll:
got root?
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Sorry i edited my last post while you must of been replying to it. You need the +D flag.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
g
gnagis
Voice
Posts: 19
Joined: Fri May 28, 2004 5:48 am

Post by gnagis »

lol shame on me.. i thought i hade changed that.. but i missed it.. lol...

hmm when i coment that line out nothing changes... it still says the song everytime it changes :S

or should i comment out more then just that line

"sc_output $nick $channel $strStream" ??
got root?
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Did you rehash your bot after commenting that line out? and did you comment out the correct line in sc_playing
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
g
gnagis
Voice
Posts: 19
Joined: Fri May 28, 2004 5:48 am

Post by gnagis »

yeh i did .rehash and .restart... still it wont work...

Code: Select all

proc sc_playing { nick uhost handle channel args } {

    global shoutcast botnick sc_servers sc_responses sc_servercount
    set strCommand "playing"
    set args [string map -nocase {"\\" "\\\\"} $args]
    set args [lindex $args 0]
    set outArgs ""
    if { [sc_execute_command [clock seconds] $strCommand $nick $uhost $channel $
        sc_output $nick $channel "Unable to execute command."
        return
    }
    set iServer $shoutcast(primary_server)
    set strStream "Primary server is currently offline."
    if { $sc_responses($iServer,streamstatus) == 1 } {
        set strStream "Currently Playing: $sc_responses($iServer,songtitle)"
    }
#    sc_output $nick $channel $strStream
got root?
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

ahhhh sorry that proc was for the manual bind my bad :roll:

ok do a find for this line

Code: Select all

sc_output "" $shoutcast(broadcast_channel) $strStream
there are two lines that match that in the script. comment out the first one.

and uncomment the previous one i told you to comment out. Sorry about that =D
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
g
gnagis
Voice
Posts: 19
Joined: Fri May 28, 2004 5:48 am

Post by gnagis »

thanx! realy fast suport ;)
whell i will be quiet now ;)

thanx you realy are the man! :D
got root?
M
Mighty
Voice
Posts: 8
Joined: Mon Apr 05, 2004 10:38 pm

Post by Mighty »

hey doom

awesome script, it seems to be the only available one that works with a cluster to display data so it was the right one for us.

however

I get a tcl error in my eggdrop console it says [sc_update] , [sc_stream] or [sc_userstats] can't read value no such variable exists

some of the time the functions work, other times not at all. am i missing something in the config, when it does show !streams all the info is correct.

*** it only does this when the second server is added. all the details are correct and I get a 200 OK on both.
-M
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Very strange i have been running that script on eggdrop 1.6.15 for a long time and never come across that error. what version of eggdrop are you using?
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
M
Mighty
Voice
Posts: 8
Joined: Mon Apr 05, 2004 10:38 pm

Post by Mighty »

hi doom,

Im running 1.6.15 , compiled on mac os x without the DNS module.

Thing is I now realize it only does it on one server , our relay. We'll call server A our main server and the relay server B.

The error occurs when server A is commented out and when server A and B are both uncommented. It does not occur when server B is commented out.
So logically it is not getting something from server B.

it posts the correct stream data to the irc and the correct count from both streams occassionally (seemingly at random tho) but doesnt respond to !stream, makes one of the aformentioned errors.

Further all the details are correct, ive checked several times. Both servers are running the same software. Considering it posts the correct data some of the time it must be connecting in some capacity.

Is it possible that my provider has set up that server in an odd fashion to be creating a problem. I really can't think how thats possible but <?>

*x2* edit: Adding a separate stream and admin pass didnt help. was the only noticeable difference in server configs.
-M
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Mighty wrote:hi doom,

Im running 1.6.15 , compiled on mac os x without the DNS module.
Have you added both servers as IP's or just one of them as an IP and one as a hostname? if DNS module is not loaded and one is set to hostname rather than IP then it wont work.

Can you paste your config settings at the top of the script?
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
M
Mighty
Voice
Posts: 8
Joined: Mon Apr 05, 2004 10:38 pm

Post by Mighty »

hey man, so I tried it without host names (ips instead) on both and it still operates the same. It worked the same way both without host names and with. Since it seems to use the host field to connect I figure it should not make a difference. Based on the script it seems to be using name only to create a link. The server at luwservers.net is what creates the error.
both occassionally display the stream status with correct listener numbers and links, both worked correctly when the second server was disabled. The only thing Ive noticed is the xml log for luwservers shows incorrect resources adding up quite a bit. One last thing Ive noticed both servers say 0 seconds at the end when it does its occassional random status report.

I think that something at luwservers is set up differently and its not a standard thing. I tested the script with other test servers on a variety of my networks. They all function correctly with the script, except luwservers.net. Guys there have no idea how their server and our dnas there could be any different than is typical.


* I should add this is what displays in IRC occassionally so it obviously connects and works to some extent.
Last edited by Mighty on Mon Feb 21, 2005 2:58 pm, edited 2 times in total.
-M
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Well i cant see anything wrong with the config that you have setup and as it works with the first one then the script is working ok. It has to be something todo with your second server as you suggested. Indulge me and set the second server the same as the first server so both configs are the same and see if it still gives you an error. If it doesn't and works correctly then that will prove its your second server.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
M
Mighty
Voice
Posts: 8
Joined: Mon Apr 05, 2004 10:38 pm

Post by Mighty »

ok strange... at 11 am local time (about an hour ago) it just stopped erroring out and everything is working fine now. nothing changed during that time. uh , i guess Ill just have to wait and see if it happens again. it did it all weekend and just stopped now. the logs totally reflect it. maybe my provider changed something , dunno. at any rate... this script is kick ass dude. ill leave this thread be now.

*ok I spoke too soon, its working now, but is there any way for me to lower the refresh on it announcing users on each server? its kinda flooding the channel atm. sorry im such a pain in the ass.
Last edited by Mighty on Mon Feb 21, 2005 3:08 pm, edited 1 time in total.
-M
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Glad it was of use too you :wink:
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
Locked