I have my background sequence set up this year, everything seems to work, but there is a strange thing going on. When the script runs the first chase argument, it ends the script. Can someone take a look here and tell me if you can see a problem?
void Start() {
// Initialize Channel Collection variables
ChannelCollection MiniR;
ChannelCollection MiniB;
ChannelCollection MiniG;
ChannelCollection MiniW;
ChannelCollection MegaR;
ChannelCollection MegaB;
ChannelCollection MegaG;
ChannelCollection MegaW;
ChannelCollection IcicleB;
ChannelCollection IcicleW;
ChannelCollection Flakes;
ChannelCollection Ropes;
ChannelCollection Bushes;
ChannelCollection Bells;
ChannelCollection Arches;
// Populate ChannelCollection variables
Arches = Channels(Arch_1_Ch_1, Arch_1_Ch_2, Arch_1_Ch_3, Arch_1_Ch_4, Arch_1_Ch_5, Arch_1_Ch_6, Arch_1_Ch_7, Arch_1_Ch_8,
Arch_2_Ch_1, Arch_2_Ch_2, Arch_2_Ch_3, Arch_2_Ch_4, Arch_2_Ch_5, Arch_2_Ch_6, Arch_2_Ch_7, Arch_2_Ch_8,
Arch_3_Ch_1, Arch_3_Ch_2, Arch_3_Ch_3, Arch_3_Ch_4, Arch_3_Ch_5, Arch_3_Ch_6, Arch_3_Ch_7, Arch_3_Ch_8,
Arch_4_Ch_1, Arch_4_Ch_2, Arch_4_Ch_3, Arch_4_Ch_4, Arch_4_Ch_5, Arch_4_Ch_6, Arch_4_Ch_7, Arch_4_Ch_8);
Bells = Channels(Right_Bell, Middle_Bell, Left_Bell);
Bushes = Channels(Left_Bush_Bottom_Red, Left_Bush_Top_Red, Right_Bush_Bottom_Red, Right_Bush_Top_Red,
Right_Bush_Right, Right_Bush_Left, Left_Bush_Right, Left_Bush_Left);
Ropes = Channels(Blue_rope, Red_on_Blue_Rope, Red_Rope_House, White_Rope_House, White_Rope_Road, Red_Rope_Road);
Flakes = Channels(Snowflake_Road, Snowflake_House);
IcicleW = Channels(White_Icicle_1,White_Icicle_2,White_Icicle_3,White_Icicle_4,White_Icicle_5,White_Icicle_6,White_Icicle_7,White_Icicle_8);
IcicleB = Channels(Blue_Icicle_1, Blue_Icicle_2, Blue_Icicle_3, Blue_Icicle_4, Blue_Icicle_5, Blue_Icicle_6, Blue_Icicle_7, Blue_Icicle_8);
MiniR = Channels(Right_Outside_Red, Right_Middle_Red, Right_Inside_Red, Left_Inside_Red, Left_Middle_Red, Left_Outside_Red);
MiniB = Channels(Right_Outside_Blue, Right_Middle_Blue, Right_Inside_Blue, Left_Inside_Blue, Left_Middle_Blue, Left_Outside_Blue);
MiniG = Channels(Right_Outside_Green, Right_Middle_Green, Right_Inside_Green, Left_Inside_Green, Left_Middle_Green, Left_Outside_Green);
MiniW = Channels(Right_Outside_White, Right_Middle_White, Right_Inside_White, Left_Inside_White, Left_Middle_White, Left_Outside_White);
MegaR = Channels(M1_Red, Mega_2_Red,M3_Red, M4_Red, M5_Red, M6_Red, M7_Red, M8_Red, M9_Red, M10_Red, M11_Red, M12_Red);
MegaB = Channels(M1_Blue, Mega_2_Blue, M3_Blue, M4_Blue, Mega_5_Blue, mega_6_Blue, Mega_7_Blue, M8_Blue, M9_Blue, M10_BLue, M11_Blue, M12_Blue);
MegaG = Channels(M1_Green, Mega_2_Green, M3_Green, M4_Green, Mega_5_Green, M6_Green, M7_Green, M8_Green, M9_Green, M10_Green, M11_Green, M12_Green);
MegaW = Channels(M1_White, M2_White, M3_White, M4_White, M5_White, M6_White, M7_White, M8_White, M9_White, M10_White, M11_White, Mega_12_White);
//get the current time
DateTime now = DateTime.Now;
//The DateTime constructor goes (YYYY, MM, DD, HH, MM, SS)
DateTime start = new DateTime(now.Year, now.Month, now.Day, 10, 14, 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
while (now.CompareTo(start) >= 0 && now.CompareTo(end) <= 0)
{
On(Flakes, At (75));
Ramp(Channels(MegaR, MiniR), 0, 75, Over(8).Seconds, Wait);
Ramp(Channels(MegaR, MiniR), 75, 0, Over(8).Seconds, Wait);
Ramp(Channels(MegaB, MiniB), 0, 75, Over(8).Seconds, Wait);
Ramp(Channels(MegaB, MiniB), 75, 0, Over(8).Seconds, Wait);
Ramp(Channels(MegaG, MiniG), 0, 75, Over(8).Seconds, Wait);
Ramp(Channels(MegaG, MiniG), 75, 0, Over(8).Seconds, Wait);
Ramp(Channels(MegaW, MiniW), 0, 75, Over(8).Seconds, Wait);
Ramp(Channels(MegaW, MiniW), 75, 0, Over(8).Seconds, Wait);
Off(Flakes);
On(Ropes, At(75));
Chase(MegaR, Over(6).Seconds, Wait);
Chase(MiniR, Over(6).Seconds, Wait);
Chase(MegaB, Over(6).Seconds, Wait);
Chase(MiniB, Over(6).Seconds, Wait);
Chase(MegaG, Over(6).Seconds, Wait);
Chase(MiniG, Over(6).Seconds, Wait);
Chase(MegaW, Over(6).Seconds, Wait);
Chase(MiniW, Over(6).Seconds, Wait);
Chase(IcicleW, Over(4).Seconds, Wait);
Chase(IcicleB, Over(4).Seconds, Wait);
Off(Ropes);
On(Bushes, At(75));
Random(All, 20, For(30).Seconds, Wait);
Off(All);
now = DateTime.Now; //update the current time
}
Off(All); }
UPDATE:
After a bunch of testing, I have determined the problem is in the mini chase parts. I have the Mega chases working fine, but any time I try a mini chase, the script ends. It has me flustered.
UPDATE 2:
More Testing Results: I input the channels for one of the minitree chases manually into a chase argument. When I have 5 channels, it works, when I put in a 6th channel, it ends the script. It doesnt matter what channel I omit, I have tried all 6, the result is the same, 5 channels works, 6th channel ends script.
At this point, I just gave up for now, and did the background without the mini tree chases, I do want to figure this out though
No help on this one? I still cannot figure it out. Shirley there is someone that MIGHT know.
