scripted sequence i...
 
Notifications
Clear all

scripted sequence issue?

25 Posts
6 Users
0 Reactions
4,107 Views
Wayne J
Posts: 7789
Topic starter
(@wayne-j)
Illustrious Member
Joined: 20 years ago
teberle wrote:I get an unterminated statement in Start(). Not sure why.

What are you trying to do? I will try to help. Still learning myself.


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

The scripting is totally C#. It gets wrapped in a class and is compiled and executed by the .Net compiler.


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

All I am trying to do is run a simple sequence that runs a few lights between songs. I import my channels so I know the names, and I do a simple On({channel name}); and it won't compile.


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

I have attached my vsp project and the source. I can't get it to compile it keeps complaining about an unterminated line.


Reply
Wayne J
Posts: 7789
Topic starter
(@wayne-j)
Illustrious Member
Joined: 20 years ago
teberle wrote:I have attached my vsp project and the source. I can't get it to compile it keeps complaining about an unterminated line.

I have had that and have no idea why it does that. I just walk away, then come back and try again, and again. Then it works. 😕 I see nothing wrong with the way it is typed out.
One thing I did notice was the channel name. Once imported it had had channel numbers and worked fine, no error. Then when it had channel names is when errors came about.
Maybe try..
On(Channel_1);

just have to keep poking at it.


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

Figured it out. It's the fact that you have a number of channels that have the same name. In the code, they become variables with the same name, which causes some compile errors in the wrapper outside of your code, which is why it's not showing any line numbers for the errors.

I think it's fair to expect it to warn you about such a situation and offer to fix it for you, since it can, so I'll change the code to do such when you import the channels.


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

So is that my problem or Waynes?


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

My problem. I have renamed the channels with the same names. Now I just need to make sure that the correct one gets turned on. Thanks KC.


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

So I am able to compile now that I have made each channel name unique, but the channels aren't correct on the preview.


Reply
Wayne J
Posts: 7789
Topic starter
(@wayne-j)
Illustrious Member
Joined: 20 years ago
teberle wrote:So I am able to compile now that I have made each channel name unique, but the channels aren't correct on the preview.

What I done was to take a regular sequence, copy it, renamed it. I went in and edited it just for use of the background script to import channels from. It may work for you.


Reply
Page 2 / 3
Share: