PDA

View Full Version : Lua Action plugin without hack _notification_messages.lua


Mikhail
06-21-2009, 03:38 PM
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)? :D

MicroByte
06-22-2009, 04:32 AM
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

Imagine Programming
06-22-2009, 12:58 PM
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

:wow:wow:wow:wow Please do XD woa that's a great idea mate.

ShadowUK
06-22-2009, 01:09 PM
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.

http://www.gallery.shadiku.com/Yotsuba/LOLYotsuba/a-11939286-1211676400787.jpg

reteset
06-23-2009, 12:12 PM
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 ,

Imagine Programming
06-23-2009, 03:23 PM
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.

MicroByte
06-23-2009, 04:04 PM
@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

reteset
06-23-2009, 04:23 PM
My GUI looks much better :D:D

just kidding


will you compile all in one LMD ..?

MicroByte
06-23-2009, 04:39 PM
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

MicroByte
06-23-2009, 04:49 PM
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 :yes now plugins will be completely custom and unique (apart from a small "generated with bla bla " notice)

Imagine Programming
06-23-2009, 04:58 PM
Woah it's amazing how you guys came up with this so fast, nice ! :yes

reteset
06-23-2009, 05:07 PM
It is a good competetion :D

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

MicroByte
06-23-2009, 05:20 PM
well, i think yours beats mine, when can we have it, lol

Imagine Programming
06-23-2009, 05:38 PM
*drewl* Woah nice work! I'm feeling like a little 8 year old on Christmas right now hehe

reteset
06-25-2009, 02:09 PM
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
http://www.amsplugins.com/examples/apc.jpg

i am making a complete program that has lots of features

like : encryption , UPX compression etc.

ShadowUK
06-25-2009, 02:10 PM
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
http://www.amsplugins.com/examples/apc.jpg

i am making a complete program that has lots of features

like : encryption , UPX compression etc.

I'll be waiting for yours, or an update for MicroBytes one that allows encrypted plugin code and no more crashing on Windows Vista based OS.

Imagine Programming
06-25-2009, 05:29 PM
Amazing, looking good.

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.

Centauri Soldier
06-25-2009, 05:53 PM
WOW! Nice work guys. This is so absolutely amazingly and ultimately cool...uh yeah...so I like the idea is basically what I'm saying. Yup. Seriously, Nice job! :yes:yes:yes

I have been working on a program for a while now that updates all of ones projects with custom code and then runs it by adding a simple line to each project's globals...this is so much easier and more functional and we can share plugins with each other...good thing we have a plugin forum already. When you release this, the virtual plugin library will explode with user-made plugins.

I am on the edge of my seat for this one...I requested a program like this more than a year ago...I'm thrilled to say the least. How much do you plan to charge for this little gem?

Imagine Programming
06-25-2009, 06:09 PM
WOW! Nice work guys. This is so absolutely amazingly and ultimately cool...uh yeah...so I like the idea is basically what I'm saying. Yup. Seriously, Nice job! :yes:yes:yes

I have been working on a program for a while now that updates all of ones projects with custom code and then runs it by adding a simple line to each project's globals...this is so much easier and more functional and we can share plugins with each other...good thing we have a plugin forum already. When you release this, the virtual plugin library will explode with user-made plugins.

I am on the edge of my seat for this one...I requested a program like this more than a year ago...I'm thrilled to say the least. How much do you plan to charge for this little gem?

3 bars of gold and a shiny diamond! :D

ShadowUK
06-26-2009, 12:03 AM
I hope at least MicroBytes is free.

Centauri Soldier
06-26-2009, 08:40 PM
I have an idea....maybe not a good one but an idea non-the-less:D.

I think you should offer two versions of this program.

One is free:eek: and one is not.

Free Version;
You may make any type and number of plugins with this version of the program. The only catch is that you cannot make plugins to sell. (Have it post a message in the info of the created plugins that says they were created by the free version of PluginMaker so people will know if the plugin should be free or not).

Cost Version:
If you want make plugins to sell, you'll need to buy this version.

I think this would promote the free distribution of plugins among the members of the community while still offering you a compensation via income from those who do not wish to give their plugins away but rather sell them.

What do you think?

Imagine Programming
06-26-2009, 10:10 PM
Users will be going to use the free version. There must be an actuall functional limit in a free version of commercial software before people actually become wanting to buy the product.

Like, in the free version no encryption will be applied.

I have an idea....maybe not a good one but an idea non-the-less:D.

I think you should offer two versions of this program.

One is free:eek: and one is not.

Free Version;
You may make any type and number of plugins with this version of the program. The only catch is that you cannot make plugins to sell. (Have it post a message in the info of the created plugins that says they were created by the free version of PluginMaker so people will know if the plugin should be free or not).

Cost Version:
If you want make plugins to sell, you'll need to buy this version.

I think this would promote the free distribution of plugins among the members of the community while still offering you a compensation via income from those who do not wish to give their plugins away but rather sell them.

What do you think?

ShadowUK
06-27-2009, 01:06 AM
Users will be going to use the free version. There must be an actuall functional limit in a free version of commercial software before people actually become wanting to buy the product.

Like, in the free version no encryption will be applied.

No way, Encryption is essential whether it's free or not. I agree with Centauri Soldier where you have to buy a license to sell your plugins.

reteset
06-27-2009, 08:54 AM
what type of encryption would be good for the encrypt plugin data
what did you advise..?

Imagine Programming
06-27-2009, 10:09 AM
what type of encryption would be good for the encrypt plugin data
what did you advise..?

xTea?
[10 char limit]

ShadowUK
06-27-2009, 10:18 AM
xTea?
[10 char limit]

1. WHAT IS XTEA?

xtea is a distributed multimedia tool to help users negotiate the
exchange of vital resources like tea, coffee, and beer. To do
this, every participating user starts xtea, indicating for which
resources he wants to act as a producer and/or consumer.

Mmmmmmmmmm.

Imagine Programming
06-27-2009, 11:01 AM
Mmmmmmmmmm.

Google harder
http://www.google.com/search?hl=en&q=xTea+encryption
:p

ShadowUK
06-27-2009, 11:18 AM
Google harder
http://www.google.com/search?hl=en&q=xTea+encryption
:p

FYI: I did it for comedic purposes.

Imagine Programming
06-27-2009, 11:58 AM
FYI: I did it for comedic purposes.

aaaahhh, ow. Must be a piece missing in my brain that tells me it's for comedic purposes. :p

MicroByte
06-28-2009, 05:54 AM
why xTea, any particular reason

im not picking holes, nor do i disagree, just wondered why xTea


and, lmao ... vital resource
xtea is a distributed multimedia tool to help users negotiate the
exchange of vital resources like tea, coffee, and >> beer <<. To do
this, every participating user starts xtea, indicating for which
resources he wants to act as a producer and/or consumer.

Imagine Programming
06-28-2009, 12:56 PM
why xTea, any particular reason

im not picking holes, nor do i disagree, just wondered why xTea


and, lmao ... vital resource

Hahaha beer ^_^

Well, I think xTea is a solid algorithm for encrypting data. I only suggested one, I bet there are hundreds more that are better lol