This is two seperate subjects, but I figured I'd post them as one. The first issue I have is with loading a lua plugin of mine. When MC attempts to load it on starting up, it fails, but then reloading it from the plugin dialog box works without fail. The plugin is set up in multiple files somthing like this, but Main.xml is the file actually first loaded by the plugin manager:
Main.xml:
subplugin1.xml:
etc... Now the error message I get when the plugin is loaded is as follows:
Looks to me like the main Lua environment path hasn't been set or something? In anycase, loading the plugin works perfectly as long as it isn't loaded on startup.
Main.xml:
...
<include name="subplugin1.xml"/>
...subplugin1.xml:
...
<script>
<![CDATA[
require('luascript.lua')
]]>
</script>
...etc... Now the error message I get when the plugin is loaded is as follows:
Quote:
[string "Plugin"]:1: could not load package `luascript.lua' from path `?;?.lua'
stack traceback:
[C]: in function `require'
[string "Plugin"]:1: in main chunk
[string "Plugin"]:1: could not load package `luascript.lua' from path `?;?.lua'
stack traceback:
[C]: in function `require'
[string "Plugin"]:1: in main chunk
Looks to me like the main Lua environment path hasn't been set or something? In anycase, loading the plugin works perfectly as long as it isn't loaded on startup.