Background scripts ...
 
Notifications
Clear all

Background scripts MAKE HULK MAD!!!

11 Posts
3 Users
0 Reactions
3,695 Views
Andy.wpg
Posts: 523
Topic starter
(@andy-wpg)
Honorable Member
Joined: 17 years ago
[#12950]

Just like wmrcomputers, I have darn near given up on this background script thing and I'm ready to build a relay box that I can turn on to shut off the background lights with a channel in my sequences.

I'm using V2.1.4 of Vixen

My needs are so simple - when no sequence is running, I want to have 4 channels on at 100%. When a sequence is running, the channels will be under control of the sequence - which means that HOUSE_1 will be off.

I can do assembler, but this C stuff is driving me around the bend!

Here is what I started with:


void Start() {

     Off(All)

     ChannelCollection normallights;

     normallights = Channels(BIG_GREEN, TREE_1, TREE_2, HOUSE_1);

     while(true) {
           On(normallights, At(100));
                       }
}

The 'On' statement has been, at various times:

On(normallights);
normallights, At(100);
On(Lights(normallights, At(100)));

......and about 20 other combinations. All result in the compiler coming up with all sorts of complaints about that line.

I have followed Aurbo99's guide to this and have imported the channels, told it about the Renard(modified) plugin and Standard.dll - so I think I did that stuff right.

Now, I want to have the background run from 5:15 to 10:15, and have seen various scripts with the time checks in them, but I haven't even gotten that far yet.

CAN ANYONE HELP! Hulk getting angry, and you wouldn't like me when I'm angry.:mad:

Anyway, any help here would be appreciated


10 Replies
Andy.wpg
Posts: 523
Topic starter
(@andy-wpg)
Honorable Member
Joined: 17 years ago

Skyking, Skyking, Do not answer!

I'll explain the subject if necessary.

Ok, while I was typing the rant, Rokket posted a pretty complete reply to wmrcomputers - going to try it now.

Please stand by.....


Reply
rokkett
Posts: 441
(@rokkett)
Reputable Member
Joined: 17 years ago

What we really want is everyone else green with envy over your working background script. 🙂

Post the error for the On() statement and I can try to see what we do to fix it.

Once we get that working, I can give you code for the on/off for certain times of the day....


Reply
Andy.wpg
Posts: 523
Topic starter
(@andy-wpg)
Honorable Member
Joined: 17 years ago

Ok, now I'm REALLY depressed

rokkett wrote:What we really want is everyone else green with envy over your working background script. 🙂

Post the error for the On() statement and I can try to see what we do to fix it.

Once we get that working, I can give you code for the on/off for certain times of the day....

I tried the script you posted for wmrcomputers:


Void Start() {

        While(true) {
                ChannelCollection normal;
                normal = Channels(BIG_GREEN, TREE_1, TREE_8, HOUSE_1);
                ON(normal, For(1).Minutes,Wait);
                           }
}

I also tried getting rid of the Channelcollection lines and just did ON(BIG_GREEN, For(1).Minutes,Wait);

In both cases I got line 6 ;expected

I also tried with and without Off(All); right after Void Start() { it didn't seem to mind that.

I think the relay is starting to look good.


Reply
rokkett
Posts: 441
(@rokkett)
Reputable Member
Joined: 17 years ago

The scripting language is case sensitive. Try this:

void Start() {

        while(true) {
                ChannelCollection normal;
                normal = Channels(BIG_GREEN, TREE_1, TREE_8, HOUSE_1);
                On(normal, For(1).Minutes,Wait);
        }
}

Check the channel names for the same issue....


Reply
Page 1 / 3
Share: