It would be awesome to get this stuff documented centrally somewhere. If I had the knowledge I would surely do it.
Did you have to add that dummy sequence with no PlugIns set to get the overall script to run as you desired? Could you possibly post your final working script again? Did you have background music running as well?
Can background sequences have different light configurations when it kicks in each time or when there are no sequences playing, does it always fire from the beginning of the script? I would guess you chould keep checking the time and possibly change the configurations based on that. If time is earlier than 8:00 these lights on with these blinky flashy or if later than 8, but earlier than 9 different lights with different blinky flashy. ???
I haven't used Background Sequences to date, but plan to for next year. I'm going to wrestle with this as soon as possible. I was hoping to whip something up in the next day or two so I can test it before I tear down the lights, but after reading up on this stuff, it does seem like a battle for a newb.
I wonder if there is no real, ordered documentation on BGSs because most don't use them or just no time for those in the know to get it done. I would definitely understand the later, but would think many use these scripted sequences and many need help getting started.
I've coded before, but I'm no expert and have virtually no experience with C#. 🙁
I'll try to document every step I take so hopefully it will help someone get started from the ground up.
I hope this will help you. Here is the script I am running. Remember I am using Vixen 2.5.0.8. I could not get it to run properly on any other version, although others did.
void Start() {
Off(All);
while(true)
{
DateTime now = DateTime.Now; //get the current time
ChannelCollection normalLights;
normalLights = Channels(TreeGroup1, TreeGroup2, Tree1, Tree2, Tree3, Tree4, Tree5, Tree6, Bushes1, Bushes2, Bushes3, Bushes4, PorchPost1, PorchPost2, PorchPost3, PorchPost4, PorchPost5, PorchPost6, Icecycle1, Icecycle2, Icecyles3, Icecyles4, Channel_64, Door_Trees);
//The DateTime constructor goes (YYYY, MM, DD, HH, MM, SS)
DateTime start = new DateTime(now.Year, now.Month, now.Day, 12, 40, 00);
DateTime end = new DateTime(now.Year, now.Month, now.Day, 23, 00, 00);
//We only want the channels to turn on while the current time is
//between 5:30 and 11 pm
int X = 1;
while (now.CompareTo(start) >= 0 && now.CompareTo(end) <= 0)
{
if (X == 1) {
Ramp (normalLights, 0, 100, Over (5).Seconds,Wait);
X = 0;
}
On(normalLights, At(100),For(30).Seconds,Wait);
now = DateTime.Now; //update the current time
}
Off(All,For(1).Second,Wait);
}
Off(All,For(30).Seconds,Wait);
}
I had to use a blank sequence. I named it BLANK! Duh. It has nothing in it, but it does use the 'Adjustable Preview' plugin. I could not get Vixen to run without some sort of plugin and the one above does not use the comport.
I did not use any music, but I think I probably could have without any problem.
Thanks to Rokkett and others who helped with my problem. They were a great help. Out of the season I got 3 nights where everything ran flawlessly.
If I can help more, don't hesitate to let me know.
Thanks much! I just upgraded to 2.1.4 after the lights went dark on the 2009 season. I was using 2.0.5 and had a sporadic problem that I could not pin down so... the upgrade. I didn't experience any problems the prior year using 2.0.5 so who knows.
I only went to 2.1.4 because I received a reply in one of my other posts that there were a lot of problems with 2.5 and its basically being scrapped for an upcoming version.
If anyone out there knows if the posted script will not work in 2.1.4 let me know. Otherwise, I guess I will find out!!
Thanks again and be prepared for questions! 😀
Several people got it to run in 2.4, but I never could. It always bombed out at the beginning of the show. That's why I went to 2.5 and it has run perfectly for me on 2 different computers.
Does anyone have any background scripts that ran on 2.1.4?
Any would be greatly appreciated! I'll tweak and learn of course to meet my needs.

