Hello Guest it is January 21, 2022, 10:26:53 PM

Author Topic: Third-Party Lua Module Support?  (Read 1701 times)

0 Members and 1 Guest are viewing this topic.

Third-Party Lua Module Support?
« on: July 19, 2014, 06:15:14 PM »
If I want to encapsulate my code for supporting a screen set or to provide general functionality, where is the best place to drop it in the installation?

Will a simple require work?  I tried doing this for the PLC code and got an error.  If we want our own module support in the PLC script where's the best place to do the import of our modules?

I'm not a complete idiot...
    there are some parts missing.

Offline poppabear

  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Third-Party Lua Module Support?
« Reply #1 on: July 20, 2014, 12:28:06 AM »
Freeman, look at the RC ciode, and DSC code I put in the tool box, they can both be integrated with screens or macros or what ever, in a module format. To "Hide" you code, have your require run your code as compiled. (see DSC 3.0) and you will get the idea, you can put the code where ever you like just make a path to it....  and have your installer to drop it there as well.

fun times