Lua Plugin Executing

  • 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
    1. function test()
    2. Echo("This is a test")
    3. end
    4. 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
    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <GMA3 DataVersion="1.3.1.3">
    3. <Plugin>
    4. <ComponentLua FileName="myscript.lua" ContentType="Usercontent" />
    5. </Plugin>
    6. </GMA3>
    Code: myscript.lua
    1. function test()
    2. Echo("This is a test")
    3. end
    4. return test