Announcement

Collapse
No announcement yet.

TOOL : Action Plugin Compiler

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • reteset
    replied
    Hi again

    i wrote that announcement message because of some reasons that i can not write here

    but there is no bug nor security issue
    also there is nothing that may cause any problem in plugins that generated by Action Plugin Compiler

    so it was not a technical problem
    you can use your existing plugins that are generated by this program

    next updates will be provided by Centauri Soldier
    plugin generator and plugin core will be developed by me again


    for new builds please wait for new update , there will be various changes on program and plugin core
    and next release may provide more freedom on building plugins with this program , but you can use current version too :yes

    also i did not know that there was lots of users of this program

    thank you

    Leave a comment:


  • rexzooly
    replied
    Originally posted by reteset View Post
    Important Announcement

    Development of this program is temporary canceled

    Use of plugins that are generated by this program is not recommended

    until this program is updated

    program removed from site index and it is no longer available , until i decide to update it

    i am sorry for any confusion
    Ya i would like to know why its not recommended?

    Leave a comment:


  • Mikhail
    replied
    Why? Please, details.

    Leave a comment:


  • reteset
    replied
    Important Announcement

    Development of this program is temporary canceled

    Use of plugins that are generated by this program is not recommended

    until this program is updated

    program removed from site index and it is no longer available , until i decide to update it

    i am sorry for any confusion

    Leave a comment:


  • pabloko
    replied
    Yeah! it's sounds good! LuaCom is very useful, but actual version have some problems to call certain objects propiets and methods... 1.4 now relased and if possible this rocks

    I like ribbon interfaces there are very much scripts to start with it, i'm using jquery ribbon for web developing, but i'ts very simply to clone in ams
    http://dev.mikaelsoderstrom.se/scripts/jquery/ribbon/

    Thanks for your work

    Best regards

    Originally posted by reteset View Post
    i am very busy right now but i am going to release a new version soon
    i converted program GUI to a compact style for new properties and fields

    but i need Office 2007 look , tab pane and tab button images which matches with current application theme
    if anyone has such images , please could you send me

    also i have some ideas for output plugins
    maybe i can merge LuaCom and maybe some other plugins with output plugins

    so you will be able to use luacom without include it to application
    simply: luacom and maybe others will be build-in

    Leave a comment:


  • reteset
    replied
    Originally posted by Centauri Soldier View Post
    So Reteset, any ideas when the next release will be coming out? I'm really looking forward to the update.
    i am very busy right now but i am going to release a new version soon
    i converted program GUI to a compact style for new properties and fields

    but i need Office 2007 look , tab pane and tab button images which matches with current application theme
    if anyone has such images , please could you send me

    also i have some ideas for output plugins
    maybe i can merge LuaCom and maybe some other plugins with output plugins

    so you will be able to use luacom without include it to application
    simply: luacom and maybe others will be build-in

    Leave a comment:


  • S0mbre
    replied
    OMG, what a great plugin was added while I was on vacation! Thank you ever so much, reteset it really rocks!

    Leave a comment:


  • reteset
    replied
    Originally posted by Centauri Soldier View Post
    Here is the updated version of the code you gave me Reteset. It was not returning true when the file was there so I fixed it and thought I would also share the other two functions I built to assist in extracting and referring the dll as well as cleaning up (if desired). Thanks again Reteset.

    Change everything that is marked red to adapt it to your project.
    Code:
    [COLOR="Red"]MyFunction[/COLOR] = {};
    
    function [COLOR="Red"]MyFunction[/COLOR].Activate(...)
    IRLUA_PLUGIN_CheckNumArgs(arg,1)
     local sFolderName = IRLUA_PLUGIN_CheckString(arg,1)
    [COLOR="Red"]MYFUNCTION[/COLOR]_DLL_PATH = sFolderName.."\\[COLOR="Red"]MYDLL[/COLOR].dll";
    end
    
    function [COLOR="Red"]MyFunction[/COLOR].Cleanup()
    if File.DoesExist([COLOR="Red"]MYFUNCTION[/COLOR]_DLL_PATH) then
    File.Delete([COLOR="Red"]MYFUNCTION[/COLOR]_DLL_PATH, false, false, true, nil);
    end
    end
    
    --HIDDEN FUNCTION
    function [COLOR="Red"]MyFunction[/COLOR].CheckMyDll()
    if not File.DoesExist([COLOR="Red"]MYFUNCTION[/COLOR]_DLL_PATH) then
    bRet = PSDK.ExportArchive(3000 , [COLOR="Red"]MYFUNCTION[/COLOR]_DLL_PATH);
       if not bRet then
       Dialog.Message("Notice", "An Error Occurred While Exporting the [COLOR="Red"]MYDLL[/COLOR].dll Dll file", MB_OK, MB_ICONNONE, MB_DEFBUTTON1);
       end
    return bRet
    else
    return true
    end
    end
    thank you ,
    yes you are right
    i did not test my function , because i wrote it on Notepad++

    thanks for new functions :yes

    Leave a comment:


  • Centauri Soldier
    replied
    Here is the updated version of the code you gave me Reteset. It was not returning true when the file was there so I fixed it and thought I would also share the other two functions I built to assist in extracting and referring the dll as well as cleaning up (if desired). Thanks again Reteset.

    Change everything that is marked red to adapt it to your project.
    Code:
    [COLOR="Red"]MyFunction[/COLOR] = {};
    
    function [COLOR="Red"]MyFunction[/COLOR].Activate(...)
    IRLUA_PLUGIN_CheckNumArgs(arg,1)
     local sFolderName = IRLUA_PLUGIN_CheckString(arg,1)
    [COLOR="Red"]MYFUNCTION[/COLOR]_DLL_PATH = sFolderName.."\\[COLOR="Red"]MYDLL[/COLOR].dll";
    end
    
    function [COLOR="Red"]MyFunction[/COLOR].Cleanup()
    if File.DoesExist([COLOR="Red"]MYFUNCTION[/COLOR]_DLL_PATH) then
    File.Delete([COLOR="Red"]MYFUNCTION[/COLOR]_DLL_PATH, false, false, true, nil);
    end
    end
    
    --HIDDEN FUNCTION
    function [COLOR="Red"]MyFunction[/COLOR].CheckMyDll()
    if not File.DoesExist([COLOR="Red"]MYFUNCTION[/COLOR]_DLL_PATH) then
    bRet = PSDK.ExportArchive(3000 , [COLOR="Red"]MYFUNCTION[/COLOR]_DLL_PATH);
       if not bRet then
       Dialog.Message("Notice", "An Error Occurred While Exporting the [COLOR="Red"]MYDLL[/COLOR].dll Dll file", MB_OK, MB_ICONNONE, MB_DEFBUTTON1);
       end
    return bRet
    else
    return true
    end
    end
    Last edited by Centauri Soldier; 07-25-2009, 09:54 PM.

    Leave a comment:


  • Centauri Soldier
    replied
    Fantastic! Thank you very much Reteset.

    Leave a comment:


  • reteset
    replied
    Originally posted by Centauri Soldier View Post
    Hey Reteset,

    I PMed you regarding contributing to the project. I would love to share my ideas with you.

    Also, I have a question. How do I include a dll in my project? That is how do I reference the dll location in my code? Where is the dll placed when the plugin is compiled and installed?
    i assume you have a dll and you want to call functions from that dll in your plugin

    How To Import Your Dll :


    Resource : press browse button and select your dll

    ID : select 3000

    Press Add Resource button then you complete previous steps
    you will see dll path and resource ID in Resources (grid)

    you can apply previous steps with different IDs ,if you have more dll files

    if you want to remove a dll from the resources , select that dll in Resources and press Delete Resource button

    press build button then you filled all required fields
    So what did happen to my dlls , Where are they gone:
    program icluded your files in to resource section of plugin
    like you made a ZIP file

    How To Export your Dll :



    Code:
    sz_dllpath = _SourceFolder.."\\YourDllName.dll"; -- dll path in a global variable
    -- this is up to you , you can export anywhere you can access 
    
    function CheckMyDll() -- a function to make job easy
    
    if not( File.DoesExist(sz_dllpath)) then -- export only when dll does not exist
    
       bRet = PSDK.ExportArchive(3000 , sz_dllpath); -- export dll to "sz_dllpath"
       
       if not ( bRet ) then -- if failed  pop-up a error message
       
         Dialog.Message("Notice", "An Error Occured While Exporting Dll", MB_OK);
         
       end
       
    return bRet; -- return the result
    
    end
    And Using this function in your Lua Classes:

    Code:
    if ( CheckMyDll() )
    
     DLL.CallFunction(sz_dllpath, "MyFunctionName", "", DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL);
    
    end
    hope this helps

    Leave a comment:


  • MicroByte
    replied
    you would first need to unpack the dll, you cant access it from the lmd to call functions directly.

    How To Export A File :

    Quote:
    Call this build-in action in your Lua script any time you want

    boolean PSDK.ExportArchive(ResourceId , FilePath);

    ResourceId : The resource ID you used during import file
    FilePath : The file path you want to save this file as

    this action returns true on succeed and returns false on failed
    if specified file already exist , it just overrides

    Leave a comment:


  • Centauri Soldier
    replied
    Hey Reteset,

    I PMed you regarding contributing to the project. I would love to share my ideas with you.

    Also, I have a question. How do I include a dll in my project? That is how do I reference the dll location in my code? Where is the dll placed when the plugin is compiled and installed?

    Leave a comment:


  • reteset
    replied
    Originally posted by Centauri Soldier View Post
    @ MicroByte

    I think I'll wait for Reteset to release the next version and see if he added the suggestions to the program first, but if not then I would definitely be interested in trying to create my own system. Thanks for the offer.

    That function for turning xml into a lua table alone would be quite useful though, I would love to have that.
    if anyone willing to contribute to this program i can happily accept
    if you have improvement ideas ,or you can make new additions to program
    you can prepare a separate sample project , then i can add your additions
    to this program , and i can add your name,email,website etc. to about program dialog

    help file generation script made by MicroByte , he sent me scripts as a sample project and i added his scripts to program

    i can even share the APZ of this program if you need to view source for your new additions then you accept the following

    i wont create a different program and release it with parts of this program
    i wont share the APZ with other people
    please PM me if you willing to contribute to this program and need to APZ doc.

    Leave a comment:


  • reteset
    replied
    Ok it is the time to explain what we talked about

    what he asked about:

    i can view lua source of plugin in memory with a memory monitor program as can view my AMS applications , so what the encryption does..?
    My answer :
    there is no memory encryption ,
    this program encryptes source only

    also there is no real encryption in memory in any programming language

    this program encryptes your lua source and imports in to plugin
    and output plugin decryptes that lua source at runtime and passes to AMS runtime

    actually there is no difference between autorun.cdd
    autorun.cdd keeps your source as a plain text
    this plugin keeps your source encrypted
    the only difference is this

    but in both cases they are plain text in memory
    because all plugins are using same ( (shared) typically LuaState ) memory address at runtime

    finally , Lua is not a programming language
    Lua is a embedable scripting language , like ASP, PHP . JS
    and you have to provide a human readable text to parser
    if you encrypte it you must decrypte in memory and send to parser again ,but all source is plain text in memory

    Leave a comment:

Working...
X