This script has been working for the past few nights without problems.
It plays the snow(1p).led file for the snowing effect but any valid .led file should work.
Feel free to change it up to fit your BGS needs. The main BGS script is the one I have been using for 3 years now.
Make sure you have your LTC program configured correctly before you run
"snow.txt" is written as you would for the Launcher.dll plugin
All my LTC files are in the C:\LTC directory along with the .txt and .led files
Enjoy!
It plays the snow(1p).led file for the snowing effect but any valid .led file should work.
Feel free to change it up to fit your BGS needs. The main BGS script is the one I have been using for 3 years now.
Make sure you have your LTC program configured correctly before you run
"snow.txt" is written as you would for the Launcher.dll plugin
All my LTC files are in the C:\LTC directory along with the .txt and .led files
Enjoy!
Code:
void Start()
{
//BGS with Triks by Aurbo99
//www.doityourselfchristmas.com
System.Threading.Thread TRIKS = new System.Threading.Thread(LEDTRIKS);
DateTime now = DateTime.Now; //get the current time
//We only want the background script to turn on while the current time is
//between 10:40pm and 5:25pm the next day
//The DateTime constructor goes (YYYY, MM, DD, HH, MM, SS)
DateTime start = new DateTime(now.Year, now.Month, now.Day, 22, 40, 00);
DateTime end = new DateTime(now.Year, now.Month, now.Day, 17, 25, 00);
while (now.CompareTo(start) >= 0 && now.CompareTo(end) <= 0)
Off(All);
// Declares variables
// **** Channel Specific ****
ChannelCollection Flake;
ChannelCollection RoofRed;
ChannelCollection RoofBlue;
ChannelCollection MiniTreeBlue;
ChannelCollection MiniTreeYellow;
ChannelCollection MiniTreeRed;
ChannelCollection MiniTreeGreen;
ChannelCollection MegaToppers;
ChannelCollection MegaRed;
ChannelCollection MegaBlue;
ChannelCollection MegaGreen;
ChannelCollection MegaYellow;
ChannelCollection RenMegaBlue;
ChannelCollection RenMegaYellow;
ChannelCollection RenMegaGreen;
ChannelCollection RenMegaRed;
ChannelCollection Canes;
// Channel specific - Selected what channels to be in this group
Flake = Channels(SnowFlake);
RoofRed = Channels(Eves_Red,TJ_Red,Bath_Red);
RoofBlue = Channels(Eves_Blue,TJ_Blue,Bath_Blue);
MiniTreeBlue = Channels(Mini1_Blue,Mini2_Blue,Mini3_Blue,Mini4_Blue,Mini5_Blue,Mini6_Blue,Mini7_Blue,Mini8_Blue,Mini9_Blue,Mini10_Blue);
MiniTreeYellow = Channels(Mini1_Yellow,Mini2_Yellow,Mini3_Yellow,Mini4_Yellow,Mini5_Yellow,Mini6_Yellow,Mini7_Yellow,Mini8_Yellow,Mini9_Yellow,Mini10_Yellow);
MiniTreeRed = Channels(Mini1_Red,Mini2_Red,Mini3_Red,Mini4_Red,Mini5_Red,Mini6_Red,Mini7_Red,Mini8_Red,Mini9_Red,Mini10_Red);
MiniTreeGreen = Channels(Mini1_Green,Mini2_Green,Mini3_Green,Mini4_Green,Mini5_Green,Mini6_Green,Mini7_Green,Mini8_Green,Mini9_Green,Mini10_Green);
MegaToppers = Channels(TreeTopper);
MegaRed= Channels(Mega1_Red,Mega2_Red,Mega3_Red,Mega4_Red,Mega5_Red,Mega6_Red,Mega7_Red,Mega8_Red);
MegaBlue = Channels(Mega1_Blue,Mega2_Blue,Mega3_Blue,Mega4_Blue,Mega5_Blue,Mega6_Blue,Mega7_Blue,Mega8_Blue);
MegaGreen = Channels(Mega1_Green,Mega2_Green,Mega3_Green,Mega4_Green,Mega5_Green,Mega6_Green,Mega7_Green,Mega8_Green);
MegaYellow = Channels(Mega1_Yellow,Mega2_Yellow,Mega3_Yellow,Mega4_Yellow,Mega5_Yellow,Mega6_Yellow,Mega7_Yellow,Mega8_Yellow);
RenMegaBlue = Channels(Ren16Mega1_Blue,Ren16Mega2_Blue,Ren16Mega3_Blue,Ren16Mega4_Blue,Ren16Mega5_Blue,Ren16Mega6_Blue,Ren16Mega7_Blue,Ren16Mega8_Blue);
RenMegaYellow = Channels(Ren16Mega1_Yellow,Ren16Mega2_Yellow,Ren16Mega3_Yellow,Ren16Mega4_Yellow,Ren16Mega5_Yellow,Ren16Mega6_Yellow,Ren16Mega7_Yellow,Ren16Mega8_Yellow);
RenMegaGreen = Channels(Ren16Mega1_Green,Ren16Mega2_Green,Ren16Mega3_Green,Ren16Mega4_Green,Ren16Mega5_Green,Ren16Mega6_Green,Ren16Mega7_Green,Ren16Mega8_Green);
RenMegaRed = Channels(Ren16Mega1_Red,Ren16Mega2_Red,Ren16Mega3_Red,Ren16Mega4_Red,Ren16Mega5_Red,Ren16Mega6_Red,Ren16Mega7_Red,Ren16Mega8_Red);
Canes = Channels(Cane1,Cane2,Cane3,Cane4,Cane5,Cane6);
while(true) {
TRIKS.Start();
On (MegaToppers, At(50));
On(RoofBlue, At(40));
// Ramp from 0-100% over the span of ten second and wait for it to complete.
Ramp(RenMegaBlue, 0, 30, Over(8).Seconds, Wait);
Ramp(RenMegaBlue, 30, 0, Over(8).Seconds, Wait);
Off(RenMegaBlue);
Ramp(MiniTreeRed, 0, 30, Over(8).Seconds, Wait);
Ramp(MiniTreeRed, 30, 0, Over(8).Seconds, Wait);
Off(MiniTreeRed);
Ramp(MiniTreeGreen, 0, 30, Over(8).Seconds, Wait);
Ramp(MiniTreeGreen, 30, 0, Over(8).Seconds, Wait);
Off(MiniTreeGreen);
Ramp(MiniTreeYellow, 0, 30, Over(8).Seconds, Wait);
Ramp(MiniTreeYellow, 30, 0, Over(8).Seconds, Wait);
Off(MiniTreeYellow);
Ramp(MiniTreeBlue, 0, 30, Over(8).Seconds, Wait);
Ramp(MiniTreeBlue, 30, 0, Over(8).Seconds, Wait);
Off(MiniTreeBlue);
Ramp(Canes, 50, 0, Over(8).Seconds, Wait);
Ramp(Canes, 0, 50, Over(8).Seconds, Wait);
}
}
void LEDTRIKS()
{
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = "C:\\LTC\\ltc.exe";
proc.StartInfo.Arguments = "C:\\LTC\\snow.txt";
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.RedirectStandardOutput = false;
proc.Start();
proc.WaitForExit();
}