Scala - Digital Signage Software [Logo]
Languages: EnglishGermanPolishJapaneseNorwegianFrench
  Markets Products Partners Services Support About Us  
Scala Support Scala Celebrates 20 Years of Innovation and Leadership

optibase mpg files not advancing with scripting variables

Posted: Thursday, 06/24/2004 -- by Scott Thompson. Subject: optibase mpg files not advancing with scripting variables

Hello, I have a script that plays a new .mpg file through a videoplex plus each time the script is looped. For example, it plays FILE 1, returns to start then plays FILE 2, returns to start then plays FILE 3 etc.

The problem is that the optibase card plays the first video clip each time, but the variables we have set for each file are advancing. It's like the optibase is not clearing cache.

The script works fine if we use ICD3's software playback for the mpg files, or if we just use still screens.

I have pasted the script following this message, thanks for your help.


!ScalaScript
:"TGC2004a.sca"
{
Group:
Integer(psanum, maxpsa, nucunum, maxnucu, electnum, maxelect, updatenum, maxupdate, tgcpronum, maxtgcpro);
BackgroundSettings(Size(640, 480));
Config.SaveOpts(SaveEditable(On));
Sequence:
:"INITIALIZE VARS"
{
      Sequence:
      :"Initialize Psa Num"
      {
          Group:
           psanum = 0;
           Display(Backdrop(Pen(16)), Margin(10, 10, 0, 0), Tabs(Explicit(80, 160, 240, 320, 400, 480, 560)), UserPalette(RGBPen(1, $0, $ffffff, $999999, $555555, $712068, $df449c, $dc110e, $662200, $ff5a00, $ff9c00, $ffee00, $8800, $dd00, $cccc, $66ff, $aa, $777777, $bbbbbb, $dddddd)));
      }
      :"Initialize Max PSA"
      {
          Group:
           maxpsa = 4;
           Display(Backdrop(Pen(1)), Margin(10, 10, 0, 0), Tabs(Explicit(80, 160, 240, 320, 400, 480, 560)), UserPalette(RGBPen(1, $0, $ffffff, $999999, $555555, $712068, $df449c, $dc110e, $662200, $ff5a00, $ff9c00, $ffee00, $8800, $dd00, $cccc, $66ff, $aa, $777777, $bbbbbb, $dddddd)));
      }
}
:"START HERE"
Display(Backdrop(Pen(1)), Margin(10, 10, 0, 0), Tabs(Explicit(80, 160, 240, 320, 400, 480, 560)), UserPalette(RGBPen(1, $0, $ffffff, $999999, $555555, $712068, $df449c, $dc110e, $662200, $ff5a00, $ff9c00, $ffee00, $8800, $dd00, $cccc, $66ff, $aa, $777777, $bbbbbb, $dddddd)));
{
      Group:
      Display(Wipe("MosaicFill", Direction(90)), Backdrop(Pen(12)), Margin(10, 10, 0, 0), Tabs(Explicit(80, 160, 240, 320, 400, 480, 560)), UserPalette(RGBPen(1, $0, $ffffff, $999999, $555555, $712068, $df449c, $dc110e, $662200, $ff5a00, $ff9c00, $ffee00, $8800, $dd00, $cccc, $66ff, $aa, $777777, $bbbbbb, $dddddd)));
      Text(20, 20, "psa num = !psanum", AntiAlias(On), Update(Normal), Font("Segoe Regular (Western [<Segoe>])", 50), Wrap(On, Width(610)));
      Text(149, 171, "maxpsa = !maxpsa", AntiAlias(On), Update(Normal), Font("Segoe Regular (Western [<Segoe>])", 50), Wrap(On, Width(481)));
      Duration(2000);
}
:"Insert PSA"
Goto("PSA START");
{
      Group:
      Display(Wipe("SpiralIn", Direction(90)), Backdrop(Pen(11)), Margin(10, 10, 0, 0), Tabs(Explicit(80, 160, 240, 320, 400, 480, 560)), UserPalette(RGBPen(1, $0, $ffffff, $999999, $555555, $712068, $df449c, $dc110e, $662200, $ff5a00, $ff9c00, $ffee00, $8800, $dd00, $cccc, $66ff, $aa, $777777, $bbbbbb, $dddddd)));
      Text(212, 188, "!psanum", Face(On, Pen(1)), AntiAlias(On), Update(Normal), Font("Segoe Regular (Western [<Segoe>])", 50), Wrap(On, Width(418)));
      Duration(2000);
}
:"START OVER"
{
      Group:
      Display(Backdrop(Pen(1)), Margin(10, 10, 0, 0), Tabs(Explicit(80, 160, 240, 320, 400, 480, 560)), UserPalette(RGBPen(1, $0, $ffffff, $999999, $555555, $712068, $df449c, $dc110e, $662200, $ff5a00, $ff9c00, $ffee00, $8800, $dd00, $cccc, $66ff, $aa, $777777, $bbbbbb, $dddddd)));
      Goto("START HERE", Bookmark(Off));
}
:"PSA START"
{
      Group:
      psanum = psanum+1;
      Display(Backdrop(Pen(16)), Margin(10, 10, 0, 0), Tabs(Explicit(80, 160, 240, 320, 400, 480, 560)), UserPalette(RGBPen(1, $0, $ffffff, $999999, $555555, $712068, $df449c, $dc110e, $662200, $ff5a00, $ff9c00, $ffee00, $8800, $dd00, $cccc, $66ff, $aa, $777777, $bbbbbb, $dddddd)));
}
:"PSA's"
{
      Sequence:
      :"lions"
      {
          Group:
           Display(Backdrop(Pen(16)), Margin(10, 10, 0, 0), Tabs(Explicit(80, 160, 240, 320, 400, 480, 560)), UserPalette(RGBPen(1, $0, $ffffff, $999999, $555555, $712068, $df449c, $dc110e, $662200, $ff5a00, $ff9c00, $ffee00, $8800, $dd00, $cccc, $66ff, $aa, $777777, $bbbbbb, $dddddd)));
           Text(167, 129, "1", AntiAlias(On), Update(Normal), Font("Segoe Regular (Western [<Segoe>])", 50), Wrap(On, Width(463)), Append("1", Font("Segoe Regular (Western [<Segoe>])", 200)));
           Mixer.Volume(0, Master(255), LineIn(198), Wait(Off));
           If(psanum=1);
           Duration(2000);
           OPTIBASE.Play("E:\Video Programming\Tgc\Promos\TGC_Bubbles.mp2", Wait(On), Loops(1));
      }
      :"lucie"
      {
          Group:
           Display(Backdrop(Pen(16)), Margin(10, 10, 0, 0), Tabs(Explicit(80, 160, 240, 320, 400, 480, 560)), UserPalette(RGBPen(1, $0, $ffffff, $999999, $555555, $712068, $df449c, $dc110e, $662200, $ff5a00, $ff9c00, $ffee00, $8800, $dd00, $cccc, $66ff, $aa, $777777, $bbbbbb, $dddddd)));
           Text(20, 20, "2", AntiAlias(On), Update(Normal), Font("Segoe Regular (Western [<Segoe>])", 50), Wrap(On, Width(610)));
           Mixer.Volume(0, Master(255), LineIn(198), Wait(Off));
           If(psanum=2);
           Duration(2000);
      }
      :"monsters"
      {
          Group:
           Display(Backdrop(Pen(16)), Margin(10, 10, 0, 0), Tabs(Explicit(80, 160, 240, 320, 400, 480, 560)), UserPalette(RGBPen(1, $0, $ffffff, $999999, $555555, $712068, $df449c, $dc110e, $662200, $ff5a00, $ff9c00, $ffee00, $8800, $dd00, $cccc, $66ff, $aa, $777777, $bbbbbb, $dddddd)));
           Text(263, 148, "3", AntiAlias(On), Update(Normal), Font("Segoe Regular (Western [<Segoe>])", 50), Wrap(On, Width(367)));
           Mixer.Volume(0, Master(255), LineIn(198), Wait(Off));
           If(psanum=3);
           Duration(2000);
           OPTIBASE.Play("E:\Video Programming\Tgc\TGC Promos\TGC_Dragonfly.mp2", Wait(On), Loops(1));
      }
      :"Natalie"
      {
          Group:
           Display(Backdrop(Pen(16)), Margin(10, 10, 0, 0), Tabs(Explicit(80, 160, 240, 320, 400, 480, 560)), UserPalette(RGBPen(1, $0, $ffffff, $999999, $555555, $712068, $df449c, $dc110e, $662200, $ff5a00, $ff9c00, $ffee00, $8800, $dd00, $cccc, $66ff, $aa, $777777, $bbbbbb, $dddddd)));
           Text(295, 129, "4", AntiAlias(On), Update(Normal), Font("Segoe Regular (Western [<Segoe>])", 50), Wrap(On, Width(335)));
           Mixer.Volume(0, Master(255), LineIn(198), Wait(Off));
           If(psanum=4);
           Duration(2000);
      }
      :"PSA END"
      {
          Group:
           psanum = 0;
           Display(Backdrop(Pen(16)), Margin(10, 10, 0, 0), Tabs(Explicit(80, 160, 240, 320, 400, 480, 560)), UserPalette(RGBPen(1, $0, $ffffff, $999999, $555555, $712068, $df449c, $dc110e, $662200, $ff5a00, $ff9c00, $ffee00, $8800, $dd00, $cccc, $66ff, $aa, $777777, $bbbbbb, $dddddd)));
           If(psanum=maxpsa);
      }
}
:"RETURN from PSA"
{
      Group:
      Display(Backdrop(Pen(1)), Margin(10, 10, 0, 0), Tabs(Explicit(80, 160, 240, 320, 400, 480, 560)), UserPalette(RGBPen(1, $0, $ffffff, $999999, $555555, $712068, $df449c, $dc110e, $662200, $ff5a00, $ff9c00, $ffee00, $8800, $dd00, $cccc, $66ff, $aa, $777777, $bbbbbb, $dddddd)));
      Return();
}
}


Back: Where is winscript ex?

   Discussions Index   
(Page 38 of 1021)

Next: Connecting to external file

Additional Information
Request DVD - Concepts and demo
Contact Scala Sales
Search