Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 25
  1. #1
    Join Date
    Aug 2004
    Location
    Rio de Janeiro, Brasil
    Posts
    62

    Grin Lua Action plugin without hack _notification_messages.lua

    Hi, All!

    Is there a way to code an Action Plugin with Lua and XML without make a dirty palliative hack in the "_notification_messages.lua" file (or any other core file that can be overwrited by a update)?

  2. #2
    Join Date
    Apr 2009
    Posts
    277
    not possible, (yet) ..

    i can see a way to make a tool that can convert lua/xml type plugins into fully qualified .lmd Action Plugins .. and im supprized no-ones done this already!!

    its pretty simple really, some one makes a shell .lmd that reads the lua script and the xml file which can be embedded into the .lmd by a external tool (just read to the end of the file and add the data there, adding the file size at the last 4 bytes of the appended text so the lmd knows how much text to read and just use some internal string functions in the lmd to read and process the text, send the xml to the "irPlg_GetPluginActionXML" and run the script to register the functions in "irPlg_Action_RegisterActions" and you have a Action plugin conversion tool

    i may take up the task when i get home

  3. #3
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Quote Originally Posted by MicroByte View Post
    not possible, (yet) ..

    i can see a way to make a tool that can convert lua/xml type plugins into fully qualified .lmd Action Plugins .. and im supprized no-ones done this already!!

    its pretty simple really, some one makes a shell .lmd that reads the lua script and the xml file which can be embedded into the .lmd by a external tool (just read to the end of the file and add the data there, adding the file size at the last 4 bytes of the appended text so the lmd knows how much text to read and just use some internal string functions in the lmd to read and process the text, send the xml to the "irPlg_GetPluginActionXML" and run the script to register the functions in "irPlg_Action_RegisterActions" and you have a Action plugin conversion tool

    i may take up the task when i get home
    Please do XD woa that's a great idea mate.
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  4. #4
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324
    Quote Originally Posted by MicroByte View Post
    not possible, (yet) ..

    i can see a way to make a tool that can convert lua/xml type plugins into fully qualified .lmd Action Plugins .. and im supprized no-ones done this already!!

    its pretty simple really, some one makes a shell .lmd that reads the lua script and the xml file which can be embedded into the .lmd by a external tool (just read to the end of the file and add the data there, adding the file size at the last 4 bytes of the appended text so the lmd knows how much text to read and just use some internal string functions in the lmd to read and process the text, send the xml to the "irPlg_GetPluginActionXML" and run the script to register the functions in "irPlg_Action_RegisterActions" and you have a Action plugin conversion tool

    i may take up the task when i get home
    Oh wow, That would be incredible.


  5. #5
    Join Date
    May 2006
    Posts
    1,443
    i have a similar project that will compile pure Lua and XML into a LMD
    i thought , if i create a compiler for myself to compile lua and xml in to a LMD
    and include it to project when you need it
    this will be very helpful keep frequently used lua functions in a LMD action plugin
    actually if i thought it only myself i can build it with VS
    but i want to share it with you too

    so this project is not finished yet but very close to finish
    maybe i can finish it within this week ,

  6. #6
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    That would be so amazing! Then we would have some more protection on our source. Compiling Lua as using the same method string.dump uses? and then embed it in the lmd? nice. Encrypting it would be nice aswell though.
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  7. #7
    Join Date
    Apr 2009
    Posts
    277
    @reteset, thats good to hear, i would like to see your approach to the situation

    i have also been working on this app and im supprized how little work it took, just a few small things to tweek and its almost ready (plugins may require the Window.Close hack on windows vista!)

    heres the UI
    Attached Images

  8. #8
    Join Date
    May 2006
    Posts
    1,443
    My GUI looks much better

    just kidding


    will you compile all in one LMD ..?

  9. #9
    Join Date
    Apr 2009
    Posts
    277
    Code:
    My GUI looks much better
    i love codeing but i hate UI design and it shows, lol

    will you compile all in one LMD ..?
    yes, the app generates the LMD and then writes the formatted data at the end of the file (im working on encrypting that!), add 4 bytes for a long value to store the size of the text thats been added so the lmd knows where to seek to (reading itsself) and process the formatted text sending the right variable to the right function for AMS to display data and add the actions

    the only drawback is you can not change the name of the .lmd, this has no effect on the display of your plugin in AMS but the name (APM.lmd) has to rename intact or the plugin will fail, other than that it works like any other action plugin

  10. #10
    Join Date
    Apr 2009
    Posts
    277
    the only drawback is you can not change the name of the .lmd, this has no effect on the display of your plugin in AMS but the name (APM.lmd) has to rename intact or the plugin will fail,
    scrap that, i just fixed it now plugins will be completely custom and unique (apart from a small "generated with bla bla " notice)

  11. #11
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Woah it's amazing how you guys came up with this so fast, nice !
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  12. #12
    Join Date
    May 2006
    Posts
    1,443
    It is a good competetion

    Here is a output plugin from my application

    it is a standalone LMD
    it is well programmed and stable
    it does not extract anything to HDD ,all in the memory
    you can rename plugin it is no problem
    you do not need to make something for Vista
    it can work on all windows versions including Windows 7
    also compatible with 64 Bits OSs

    TestPlugin.rar contains the output plugin
    Source.rar contains *.lua and *.xml Files i used when compiling
    Attached Files
    Last edited by reteset; 06-23-2009 at 04:10 PM.

  13. #13
    Join Date
    Apr 2009
    Posts
    277
    well, i think yours beats mine, when can we have it, lol

  14. #14
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    *drewl* Woah nice work! I'm feeling like a little 8 year old on Christmas right now hehe
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  15. #15
    Join Date
    May 2006
    Posts
    1,443
    hi
    sorry , this will take a long time than i thought
    there was some other jobs that i have to do , and there will be
    this is what i did so far


    i am making a complete program that has lots of features

    like : encryption , UPX compression etc.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts