Is this possible?
If no, can I download a library for it? (If yes, where would I put the .dll?)
Reading and creating .zip files
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- Taehl
- Dreaming in associative arrays
- Posts: 1025
- Joined: Mon Jan 11, 2010 5:07 am
- Location: CA, USA
- Contact:
Re: Reading and creating .zip files
Not possible in vanilla Love, no. If you do get a library for it (all standard Lua libraries work in Love), it would need to go in the Love2D folder (and not inside your game). Just remember: If you distribute your game with a library, it gets a lot harder to make sure it works cross-platform.
An alternative is to use a zipping library written in pure Lua. I've made a humble attempt at that.
An alternative is to use a zipping library written in pure Lua. I've made a humble attempt at that.
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
Re: Reading and creating .zip files
Ive tried to use LuaZip.
Ive put the zip.dll in Program Files/Love/ but when I require it from Lua, I get an error telling me it cant find lua5.1.dll.
For the pure Lua lib, I guess that doesnt read .zip files, but compressed zip strings, right?
What I want is to get a .zip file, open it and extract its contents to a folder for later use.
Ive put the zip.dll in Program Files/Love/ but when I require it from Lua, I get an error telling me it cant find lua5.1.dll.
For the pure Lua lib, I guess that doesnt read .zip files, but compressed zip strings, right?
What I want is to get a .zip file, open it and extract its contents to a folder for later use.
Re: Reading and creating .zip files
Can we possibly get this in the next version of Love?
Re: Reading and creating .zip files
Love doesn't have a built-in api for handling zip files. However, Love provides all of the file-system functionality to allow writing and reading of disk data.Darkwater wrote:Is this possible?
If no, can I download a library for it? (If yes, where would I put the .dll?)
If you're up for the challenge, you could write a pure lua-based zip compressor and deflator.
Who is online
Users browsing this forum: Google [Bot] and 1 guest