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.

Multiple Lua Files in a Plugin

Post Jan 5th '20, 23:02

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

heliomass
Montréal, QC

Post Jan 6th '20, 16:28

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

treellama
Pittsburgh

Post Jan 7th '20, 16:41

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

heliomass
Montréal, QC


Return to Aleph One Discussion



Who is online

Users browsing this forum: No registered users