Page 1 of 1

Problem making a new script

Posted: Sunday 23 July 2017 18:12
by randytsuch
I was trying to add a new script, and keep getting an error.
I even copied exactly an existing working script, get this error in the log

2017-07-23 09:05:00.434 Error: EventSystem: Lua script SprinklerTmr_Front did not return a commandArray

I only get the error for the new script, all my old scripts, which are formatted the same, don't give this error.

If I change to this format

Code: Select all

commandArray = {}

print ("All based event fired");

return commandArray
Then it works fine.
But I don't know how I am supposed to script within this format?

EDIT: Version 2.1.0

Randy

Re: Problem making a new script

Posted: Sunday 23 July 2017 18:21
by randytsuch
NVM, I was stupid
It was defined as a lua script instead of a dzvents script
(hanging head low lol)

Randy

Re: Problem making a new script

Posted: Monday 24 July 2017 8:45
by dannybloe
:)