PDA

View Full Version : FREE : LuaZip Action Plugin



reteset
08-08-2009, 12:18 PM
LuaZip Action Plugin For AutoPlay Media Studio
This is A Lua module that Orginally written for Lua

This module is ported to an AMS Action plugin by www.amsplugins.com

Features :



Reads files from a zip file witout extract them


Plugin completely written in C language


Plugin provides fast and effective reading process


Does not compatible with password protected archives


Credits :
luazib library Orginally Written By
Danilo Tuler : www.keplerproject.org/luazip/


ScreenShot : Click Here (http://www.amsplugins.com/screenshots/LuaZip1.jpg)

Download : Click Here (http://www.amsplugins.com/details.asp?ID=84&CID=1)

Note : this plugin only tested on WindowsXP (SP2) , please report your tests on different versions

mystica
08-08-2009, 09:41 PM
Hey, great stuff!

I think this is what Centauri Soldier was talking about the other day, with his post at:

(http://www.indigorose.com/forums/showthread.php?t=27503&page=3),

... except for the fact that this one is not compatible with password-protected archives. Too bad ... if that functionality could somehow be added, it'd be wicked.

One question though ... how come Luazip is not showing up under the Action Wizard? I have it installed correctly and the Luazip checkbox is ticked under Action Plugins, but it's not showing up under the action-wizard ... am I'm missing something?

Centauri Soldier
08-09-2009, 02:23 AM
Yes it is what I was talking about...Reteset you are the man! :D.
Nice work once again my friend. :yes

I'm sure we can figure out something for the password...

Mystica, check out the manual in the help folder (inside the plugin folder). This plugin does not use the normal ActionTable.Action format that we are used to in AMS. This uses raw lua to work.

Check the example and search through the code and you'll see what I mean. This is really quite simple once you see the few functions that you'll need to know to make the plugin work. Well, here...this is from the example and it's pretty straight forward.


selected_item = ListBox.GetSelected("ListBox1");

if (selected_item ~= nil) then

selected_file = ListBox.GetItemData("ListBox1", selected_item[1]);

local f1, err = zfile:open(selected_file);

local s1 = f1:read("*a");


Input.SetText("Input1", tostring(s1));


f1:close();


end

reteset
08-09-2009, 05:07 AM
this was already in my archive , there was few simple things to finish it
then i saw your discussion , i finished and posted it to my site

this is a lua module
and you can not see actions in actions list
but this is not mean it is not possible

if someone wants to write a XML file for actions of this plugin and send me then
i can rebuild this plugin with that XML file , so you can see action names
in script editor

RizlaUK produced a really useful tool to do that job in minutes
http://www.amsplugins.com/details.asp?ID=62&CID=4
it also generates a well formed help file


this plugin uses two third party libraries ZZIP and ZLIB
maybe i can check possibility of opening password protected archives later
it does not compatible with password protected archives for now

Note : original prefix of this module was zip i renamed it to luazip
to prevent confusion with build-in Zip actions
you can see zip prefix in documentation you need to replace zip with luazip if you use a sample code from documentation

thanks

mystica
08-09-2009, 01:39 PM
T-riffic! Thanks a lot, guys.

AMSWaves
08-10-2009, 12:16 PM
Good work reteset:yes, but why you use luazip that not support password protected archive ?! why not use zlib instead.

Centauri Soldier
08-10-2009, 01:17 PM
Well, zlib is in his plugin. Does that support password protected archives by itself...that would be cool if it did.

reteset
08-10-2009, 01:46 PM
Good work reteset:yes, but why you use luazip that not support password protected archive ?! why not use zlib instead.

because it was ready to compile :)

actually i did not use zlib library before , and i have no idea about its features
i only included it to this lua module

and also i did not look to code deeply but this module uses zlib indrectly
this module uses ZZIP and ZZIP uses ZLIB

does it provide a file handle without extract , from a password protected archive

Ok i will look in to that soon :yes

AMSWaves
08-10-2009, 02:47 PM
because it was ready to compile :)

actually i did not use zlib library before , and i have no idea about its features
i only included it to this lua module

and also i did not look to code deeply but this module uses zlib indrectly
this module uses ZZIP and ZZIP uses ZLIB

does it provide a file handle without extract , from a password protected archive

Ok i will look in to that soon :yes

yea with zlib is easy to compress and decompress files in password protected archive on memory. if you have any info i know some info about zlib.

Centauri Soldier
12-09-2009, 11:40 PM
yea with zlib is easy to compress and decompress files in password protected archive on memory. if you have any info i know some info about zlib.

Well, that would certainly be cool. It would be nice to have this little gem as a full-blown plugin that can access password-protected archives. What do you think, Reteset? Can it be done?

MicroByte
12-10-2009, 03:10 AM
so, what would be the advantages of using this over the existing dyna zip actions, and does it support SFX archives?

reteset
12-12-2009, 07:45 AM
Well, that would certainly be cool. It would be nice to have this little gem as a full-blown plugin that can access password-protected archives. What do you think, Reteset? Can it be done?

sorry , i have no plan to update this plugin right now

Centauri Soldier
12-12-2009, 11:49 AM
Fair enough.

gtmix
12-13-2009, 09:41 PM
Thanx Man
:yes:yes:yes:yes

xAnupx
04-26-2011, 05:57 AM
Hey thx for youre awesome plugin, i asked also in an other thread is it possible to delete an file in an Zip file? i found nothing in the manuel.

Thx for help

reteset
05-15-2011, 09:00 AM
Hey thx for youre awesome plugin, i asked also in an other thread is it possible to delete an file in an Zip file? i found nothing in the manuel.

Thx for help

sorry , this plugin does not support removing files in a zip archive
this plugin only reads files from zip archives