scripted sequence i...
 
Notifications
Clear all

scripted sequence issue?

25 Posts
6 Users
0 Reactions
4,106 Views
Wayne J
Posts: 7789
Topic starter
(@wayne-j)
Illustrious Member
Joined: 20 years ago
[#1245]

OK, I'm not 100% sure this is a Vixen issue or me not doing this properly.

I wrote my script for an all off every 30 seconds. Imported channels, did plug in's, the script engine, ect.

F6 to compile, no errors. 🙂
Saved the project and sequence.

Went in moved the .cs file up one level

Choose the background sequence

I go check the box to enable the script and 10 seconds later, the scrolling bar at the bottom left shows up, but only for a second and goes away. 😕

Is this a bug or am I missing a step somewhere?


24 Replies
Posts: 705
 KC
(@kc)
Prominent Member
Joined: 20 years ago

I will definitely play with that, thank you.


Reply
Posts: 705
 KC
(@kc)
Prominent Member
Joined: 20 years ago

Wayne-
It's because the "Every" modifier wasn't implemented for the On and Off actions. I added that plus a new action you'll need, WaitOnTimers(). This is a blocking operation, so it won't return until all timers are done. In your case, it will never return as you would have it going indefinitely. But the next sequence to execute (manually or scheduled) would force it to stop. Just add a call to WaitOnTimers() at the end and your script execution will hang around so that your 30-second interval timer can keep firing.


Reply
Wayne J
Posts: 7789
Topic starter
(@wayne-j)
Illustrious Member
Joined: 20 years ago

So then it should look like this?? or is something supposed to be inside the ().....

void Start() {
Off(All, Every(30).Seconds);
WaitOnTimers();
}

with the lines 'tabbed' of of course, I can't make this post do it.


Reply
Wayne J
Posts: 7789
Topic starter
(@wayne-j)
Illustrious Member
Joined: 20 years ago

8) 8) 8) 8)

KC, you da man ❗
I done it as in my above post and it works. Now runs as it should! 😉


Reply
Posts: 705
 KC
(@kc)
Prominent Member
Joined: 20 years ago

Thanks for the feedback. I know it worked here, but we know how that goes...


Reply
teberle
Posts: 641
(@teberle)
Honorable Member
Joined: 19 years ago

I get an unterminated statement in Start(). Not sure why.


Reply
Posts: 705
 KC
(@kc)
Prominent Member
Joined: 20 years ago

There was an issue with the script modules that had a like symptom, but has since been resolved.


Reply
tconley
Posts: 410
(@tconley)
Honorable Member
Joined: 19 years ago

KC, did you base the scripting language on any language like perl or php or vbscript? CAn it have varibles and is the an on error event handler?


Reply
teberle
Posts: 641
(@teberle)
Honorable Member
Joined: 19 years ago

I have done the latest updates.


Reply
Page 1 / 3
Share: