Multiple Lua Files in a Plugin

Have a question, suggestion, or comment about Aleph One's features and functionality (Lua, MML, the engine itself, etc)? Post such topics here.
Post Reply
User avatar
heliomass
Born on Board
Posts: 42
Joined: Nov 3rd '13, 19:25
Location: Montréal, QC
Contact:

Hi All,

I wanted to sanity check a couple of things with the experts ^_^

1. From what I can see, a plugin can only have one solo Lua file associated with it, and including multiple lua files is not possible.

2. From what I can see, things are sandboxed in such a way that it's not possible to include other Lua files, eg via use of the "include" or "import" Lua commands.

Can someone confirm if I've understood things correctly? Ideally it would be great to be able to keep my code modular, but not a deal breaker if this is a limitation.

Thanks!
User avatar
treellama
Vidmaster
Posts: 6105
Joined: Jun 2nd '06, 02:05
Location: Pittsburgh
Contact:

That's correct, you can only one run solo Lua at a time. For now, you'll need to use a script to build a single file from your modules before adding it to the plugin.
User avatar
heliomass
Born on Board
Posts: 42
Joined: Nov 3rd '13, 19:25
Location: Montréal, QC
Contact:

Thanks! That's exactly the approach I was taking, but I wanted to check I wasn't missing something obvious.
Post Reply