Skip to Content
It is currently November 16th, 2018, 6:04 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 68 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
PostPosted: November 15th, 2004, 5:24 pm 
Offline
Alumni
Alumni

Joined: March 11th, 2003, 1:34 pm
Posts: 9959
Location: Maui, HI
Not sure since I don't listen to the stream from the SAM machine.
However, I use the same technique to source my FM transmitter from the SAM machine and the DNAS history log is normal.

_________________
- Steve Kunitzer
- SVS (Spacial Volunteer Support) / Forum Administrator

Image
Image


Top
 Profile  
Reply with quote  
PostPosted: January 4th, 2005, 9:41 am 
Offline
Junior User
Junior User

Joined: August 24th, 2004, 7:31 pm
Posts: 26
Hello~
This happened to me too. It appended password when the message was very long. But the only data that returns from the database in the script's select statement is name and msg. Would this be a bug in SAM3?

Also, I was thinking... if the request message is longer than the max characters that can be streamed, how about splitting the message into few lines and streaming each line one after another?

Anyone know where I can find spec for max number of characters that can be streamed?

BasKido wrote:
::::::::::URGENT NEWS:::::
i just found out the pass of the server often is showed on the end of the request info!!!!!!!!!1
this means listeners can see ur pass 99% of the requests
fuck fuck fuck how to fix??


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 1st, 2005, 11:38 am 
Offline
New User
New User

Joined: March 17th, 2005, 3:44 pm
Posts: 1
Location: Florida
You know!

we should have a repository, of just scripts, valid working scripts!

all the PAL scripts that got made and shared in here...

searching the forums for a script is freakin hard...too many threads to go through.

_________________
Basselope

Be who you are and say what you feel, because thos mind don't matter, and those who matter don't mind.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 24th, 2005, 2:16 pm 
Offline
New User
New User

Joined: April 6th, 2005, 5:17 pm
Posts: 3
Thanks for the awsome script! I just used the first posted script here (edited for my needs), since I only wanted to show "resquested" in the title stream rather than the entire dedication, so it suited me fine.

On a personal note, I would like to thank everyone involved in posting pal and php scripts here for use by anyone who cares to search for them. Your generosity does not go unnoticed!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 24th, 2005, 4:58 pm 
Offline
New User
New User

Joined: April 6th, 2005, 5:17 pm
Posts: 3
I've noticed a small bug in this script that I suspect has to do with a recent Winamp upgrade....

the request only shows when the stream is started during the requested song; otherwise the request does not show in winamp (it does, however show on my website, where the currently playing song is displayed. I'm not sure what could be causing this....I've tried putting the waitfortime variable to 0 to no avail... I'm very new to sam scripts, so I'm not sure where to look for the problem...)

EDIT-- It works fine when listening to the SHOUTcast stream.. sorry.. I was listening to Peercast, which is capturing the stream through shoucast.. interesting that that wouldn't work properly... I will try a few other things...


Top
 Profile  
Reply with quote  
PostPosted: April 28th, 2006, 9:55 am 
Offline
Junior User
Junior User

Joined: September 16th, 2005, 5:51 pm
Posts: 47
Location: london UK
just noticed error in this script

Error: Invalid variant type conversion

does not show were the error is in the script
i have run line by line and that worked fine its when its left to run on its own


PAL.Loop := True;

WriteLn('New song started');

WriteLn('Waiting 20 Seconds before checking if it is a Request');
// Wait a few seconds just in case this song is a Jingle. If it is, and it is under 10 seconds the script will still get the correct info for the song after.
PAL.WaitForTime(T['+00:00:20']); //Wait 20 secs
PAL.LockExecution;

// Instantiate a Song Info object
var Song : TSongInfo;
Song := TSongInfo.Create;

WriteLn('Checking if song has been Requested......');
if ((ActivePlayer.GetSongInfo['requestID']) = 0) then WriteLn('Song is not a Request');

// Check if current song has a request ID
if ((ActivePlayer.GetSongInfo['requestID']) > 0) then
Begin
WriteLn('Song is a Request');
var reqInfo : TDataSet = Query('SELECT name, message FROM requestlist WHERE id = ' + ActivePlayer.GetSongInfo['requestID'], [], true);
var Requested_by : String = reqInfo['name'];
var Dedication_Message : String = reqInfo['message'];
reqInfo.Free;

If (Requested_by = '') then Requested_by := 'Anonymous';
If (Dedication_Message = '') then Dedication_Message := 'Nothing...';

If ((Requested_by = 'Anonymous') and (Dedication_Message = 'Nothing...')) then
Begin
WriteLn('Song is a Request without Dedication');
WriteLn(Requested_by); // This should aways echo Anonymous
WriteLn(Dedication_Message); // This should aways echo Nothing...
Song['artist'] := ActivePlayer.GetSongInfo['artist'] + ' - ' + ActivePlayer.GetSongInfo['title'];
Song['title'] := '~Requested~';
Encoders.SongChange(Song);
End
else
Begin
WriteLn('Song is a Request with a Dedication');
WriteLn(Requested_by);
WriteLn(Dedication_Message);
Song['artist'] := ActivePlayer.GetSongInfo['artist'] + ' - ' + ActivePlayer.GetSongInfo['title'];
Song['title'] := 'Song ~Requested~ by ' + Requested_by + ' : Whos Dedication is:- ' + Dedication_Message + '~';
Encoders.SongChange(Song);
End;
End;

PAL.UnlockExecution;
WriteLn('Done....');

// Release data structures
Song.Free;

WriteLn('Waiting for next song to start');
PAL.WaitForPlayCount(1); {Wait for 1 songs to play}
{
**************
* Change log *
**************

Revision 0.05 2004/11/12 xgeek


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 28th, 2006, 11:25 am 
Offline
Alumni
Alumni

Joined: March 11th, 2003, 1:34 pm
Posts: 9959
Location: Maui, HI
Try casting the requestID to a string in the query.

_________________
- Steve Kunitzer
- SVS (Spacial Volunteer Support) / Forum Administrator

Image
Image


Top
 Profile  
Reply with quote  
PostPosted: April 28th, 2006, 12:55 pm 
Offline
Junior User
Junior User

Joined: September 16th, 2005, 5:51 pm
Posts: 47
Location: london UK
FesterHead wrote:
Try casting the requestID to a string in the query.


ive no idea what that means fester this is all new to me.

sorry

john


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 28th, 2006, 1:04 pm 
Offline
Alumni
Alumni

Joined: March 11th, 2003, 1:34 pm
Posts: 9959
Location: Maui, HI
Instead of:
Code:
var reqInfo : TDataSet = Query('SELECT name, message FROM requestlist WHERE id = ' + ActivePlayer.GetSongInfo['requestID'], [], true);


Try:
Code:
var reqInfo : TDataSet = Query('SELECT name, message FROM requestlist WHERE id = ' + IntToStr(ActivePlayer.GetSongInfo['requestID']), [], true);

_________________
- Steve Kunitzer
- SVS (Spacial Volunteer Support) / Forum Administrator

Image
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 28th, 2006, 1:04 pm 
Offline
Senior User
Senior User

Joined: April 2nd, 2006, 12:47 am
Posts: 79
He means this line:
Code:
var reqInfo : TDataSet = Query('SELECT name, message FROM requestlist WHERE id = ' + ActivePlayer.GetSongInfo['requestID'], [], true);

Should probably (meaning I haven't tested it) look like:
Code:
var reqInfo : TDataSet = Query('SELECT name, message FROM requestlist WHERE id = ' + InttoStr(ActivePlayer.GetSongInfo['requestID']), [], true);



EDIT: and of course he posted seconds before I did. Nice to know I was right though :roll:


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 28th, 2006, 6:00 pm 
Offline
Junior User
Junior User

Joined: September 16th, 2005, 5:51 pm
Posts: 47
Location: london UK
i tried the change as mentioned above
and still have same error message
after it comes from a request to check if the next song is when the problem accures

cheers to u guys for replying so fast :wink:


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 28th, 2006, 6:01 pm 
Offline
Senior User
Senior User

Joined: April 2nd, 2006, 12:47 am
Posts: 79
I just have to ask... You're the guy using PAL2, right? and hoping all these scripts in the PAL3 support forum will work?


Top
 Profile  
Reply with quote  
 Post subject: :
PostPosted: April 28th, 2006, 6:05 pm 
Offline
Junior User
Junior User

Joined: September 16th, 2005, 5:51 pm
Posts: 47
Location: london UK
im using sam 3 now


Last edited by johnboy200 on April 28th, 2006, 9:39 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 28th, 2006, 9:38 pm 
Offline
Junior User
Junior User

Joined: September 16th, 2005, 5:51 pm
Posts: 47
Location: london UK
ok i have managed to get it working.....

now is there a way of getting it to read from a text file in sam directory when there is no request.

the text file would contain maybe show details or up coming events?

any help on this one would be greatfull

cheers john


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 30th, 2006, 11:20 am 
Offline
Senior User
Senior User

Joined: April 24th, 2005, 10:05 am
Posts: 95
Location: uk
big big monster props to geek, fester, schnell and everyone else who's worked on this topic, ive been away for 5 days im on catch up...

this is truely innovation, outstanding script....

respect to the pioneers right here on this forum !!!

_________________
Paul Helz

Image


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 68 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group