Hi,
I'm searching for a zip / archive plugin for dark basic.
I'm using the free version of dark basic, so I'm affraid the official addons aren't an option for me.
What I need:
- decompress files from archives to memory
- compress files to archives
- inspect files in read-only ( should be fast )
I found this one:
http://forum.thegamecreators.com/?m=forum_view&t=84374&b=5
Unfortunately the download there doesn't include a valid source file ( the .dba is empty ) for whatever reason ( I guess it was a mistake ).
Also there is no documentation provided.
I feel like this plugin could be exactly what I need ... but how can I find out the supported commands?
Is there a way to inspect the dll, to see the commands?
Does anyone maybe know how to use it?
Does anyone know a better plugin?
Actually the compression isn't really important, I just want to pack the files to an archive.
Note: The mentioned plugin seems to work with single files only, but I think I can cope with that, and use a mixture of rar and this.
EDIT:
Ok I could figure out the commands myself:
Integer = ZLib_CompressFileToFile(string FilePath, string ArchivePath, boolean Compression)
Integer = ZLib_DeCompressFileToFile(string ArchivePath, string FilePath)
Integer = ZLib_DeCompressFileToMemory(string ArchivePath)
Integer = ZLib_GetDecompressFileSize()
I was able to compress a file and decompress it again.
The interesting thing for me is: If I decompress a file to memory, how can I use the content? XD
EDIT2:
I created keyword and help files for this plugin really quick.
The help files are incomplete, because I'm not yet finished figuring out what the results are XD.
I attached my repack of the original plugin.
Included:
- Compiled test application + source code
- Keyword file
- Help files ( currently pretty useless, plugin has only 4 commands anyways )
NOTE: The plugin wasn't made by me, I just created the keyword file and help files.
Creater of the plugin is "OSX Using Happy Dude"
Original Post:
http://forum.thegamecreators.com/?m=forum_view&t=84374&b=5
Task:
Currently I'm trying to figure out what's going on with ZLib_DeCompressFileToMemory.
I don't even know if it's working XD.
PS: I wish I could change the topic title a bit, to signalise that I'm not only searching XD.
EDIT3:
The result of ZLib_DeCompressFileToMemory looks like a memory adress.
If that is true we can use the result of ZLib_GetDecompressFileSize to pin down the exact memory area.
Now ... the question is: What can we do with that in Dark Basic?
Any ideas? Anybody? XD