Lua Plugin Executing

BECOME PART OF THE COMMUNITY - Sign up here
  • Hi all,


    I'm clearly missing a step in getting a plugin to execute. What am I missing in the MA3 process here (I'm on onPC on Mac)?


    -Right click a blank Plugin pool.

    -Right click on New ComponentLua.

    -Edit ComponentLua 1

    -Paste in some text:

    Code
    function test()
        Echo("This is a test")
    end
    
    return test

    -Click Save


    -Clicking on the plugin pool seems to do nothing.

    -Typing in Go and then pressing the plugin does nothing.


    So, a little help - what am I missing? This was essentially my workflow in MA2.


    -j

  • Unfortunately the newly released v1.3.1.3 doesn't like Plugins which doesn't use a separate lua-file for the code.

    To my understanding you have the following options:

    - wait for a bugfix

    - use an earlier software version

    ,- create the .xml and .lua file with an external editor, then import into v1.3.1.3


    e.g.

    XML: myplugin.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <GMA3 DataVersion="1.3.1.3">
    <Plugin>
    <ComponentLua FileName="myscript.lua" ContentType="Usercontent" />
    </Plugin>
    </GMA3>
    Code: myscript.lua
    function test()
     Echo("This is a test")
    end
    
    return test

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!