Results 1 to 7 of 7
  1. #1

    Title
    Junior Broadcaster
    Join Date
    Jun 2017
    Posts
    2
    Rep Power
    0

    pal script not working on sam 4.2.2

    this is the code
    PAL.Loop := True;
    Pal.WaitForTime(T['XX:00:00']);
    CAT['Station IDs (All)'].QueueTop(smRandom, EnforceRules);
    Pal.WaitForTime(T['XX:15:00']);
    CAT['Station IDs (All)'].QueueTop(smRandom, EnforceRules);
    Pal.WaitForTime(T['XX:30:00']);
    CAT['Station IDs (All)'].QueueTop(smRandom, EnforceRules);
    Pal.WaitForTime(T['XX:45:00']);
    CAT['Station IDs (All)'].QueueTop(smRandom, EnforceRules);

    help me pls...

    thank you

  2. #2
    GKIye's Avatar
    Title
    Moderator
    Join Date
    Nov 2008
    Location
    @ home
    Posts
    3,005
    Rep Power
    69
    It would be way easier to use the "Event Scheduler"

    Use this line into your scheduler
    CAT['Station IDs (All)'].QueueTop(smLRP, NoRules);
    Good luck !
    Visit and listen @ BW !



  3. #3
    shoutcaststreaming's Avatar
    Title
    Premium Member
    Join Date
    Sep 2008
    Location
    Los Angeles, California
    Posts
    784
    Rep Power
    29
    Code:
    PAL.Loop := True;
    Pal.WaitForTime(T['XX:00:00']);
    CAT['Station IDs (All)'].QueueTop(smRandom, EnforceRules);
    Pal.WaitForTime(T['XX:15:00']);
    CAT['Station IDs (All)'].QueueTop(smRandom, EnforceRules);
    Pal.WaitForTime(T['XX:30:00']);
    CAT['Station IDs (All)'].QueueTop(smRandom, EnforceRules);
    Pal.WaitForTime(T['XX:45:00']);
    CAT['Station IDs (All)'].QueueTop(smRandom, EnforceRules);
    I tried it on my SAM (version 2015.4) and it works perfectly.

    If you are using version 4.2.2, I'm guessing that it is a cracked version that you downloaded from the Internet. Cracked versions notoriously contain malware and other nasty features. Why don't you buy a real version ?
    SCS - Dedicated Bandwidth Servers
    Shoutcast / Icecast / Windows Media
    Transcoding - Auto DJ - Mobile Radio - FLASH Players - Auto DJ
    Broadcasting World's Stream Host of the Month

  4. #4

    Title
    Avid Broadcaster
    Join Date
    May 2009
    Posts
    119
    Rep Power
    12
    Quote Originally Posted by GKIye View Post
    It would be way easier to use the "Event Scheduler"

    Use this line into your scheduler


    Good luck !
    Unfortunately the Event Scheduler in SAM does not have a 15 minutes repeating Event, your suggestion would mean the user would have to setup 4 events per hour times 24, makes no sense. PAL is the right mechanism for this type of programing. Your suggestion of NOT enforcing Rules is right on.

    Rob Oyler
    5280 Jazz

  5. #5

    Title
    Junior Broadcaster
    Join Date
    Jun 2017
    Posts
    2
    Rep Power
    0

    It works fine!!!!

    Quote Originally Posted by GKIye View Post
    It would be way easier to use the "Event Scheduler"

    Use this line into your scheduler


    Good luck !
    IT WORKS FINE!!!!
    Thank You

  6. #6
    shoutcaststreaming's Avatar
    Title
    Premium Member
    Join Date
    Sep 2008
    Location
    Los Angeles, California
    Posts
    784
    Rep Power
    29
    So you wrote 96 lines of code in what you could have done in 8 lines ?
    SCS - Dedicated Bandwidth Servers
    Shoutcast / Icecast / Windows Media
    Transcoding - Auto DJ - Mobile Radio - FLASH Players - Auto DJ
    Broadcasting World's Stream Host of the Month

  7. #7
    MarcAlle's Avatar
    Title
    Streaming Specialist
    Join Date
    May 2008
    Posts
    949
    Rep Power
    19
    Quote Originally Posted by shoutcaststreaming View Post
    So you wrote 96 lines of code in what you could have done in 8 lines ?
    Sometimes you gotta get that word count up You know, like those college essays we had to write that were minimum number of words. Lots of extra things haha!
    Stream101 | Affordable Media Solutions
    Shared/Reseller cPanel® Web Hosting | WordPress Hosting | Premium Stream Hosting
    TOLL-FREE: (877) 240-7767 | 30 Day NO QUESTIONS Money-Back Guarantee
    100% Cogent Free Network | CloudLinux OS | Tier 1 Bandwidth | Grand Rapids, MI

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •