forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

lua 5 libraries in lua player?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
the underminer



Joined: 03 Oct 2005
Posts: 124
Location: Netherlands

PostPosted: Mon Oct 03, 2005 5:13 am    Post subject: lua 5 libraries in lua player? Reply with quote

On the official Lua homepage I found some libraries that make zip-file handling easier (http://www.keplerproject.org/luazip/).(http://mega.ist.utl.pt/~tngd/lua/) These libraries where made for Lua 5.0. I was wondering if I could use them with lua player.

I'm trying to make an unzip app for the psp but I haven't got a clue on how to decompress the files, so if I could use these libraries...

Does anyone know if I can use the libs or an other method on unzipping files?
Back to top
View user's profile Send private message
Koba



Joined: 29 Sep 2005
Posts: 59

PostPosted: Wed Oct 05, 2005 8:40 am    Post subject: Reply with quote

if your taking the time to transfer to zip file to the psp, why not add 2 seconds to unzip the file with your computer...?
Back to top
View user's profile Send private message AIM Address
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Wed Oct 05, 2005 8:47 am    Post subject: Reply with quote

If the library is written in ANSI C, it should be possible to build it for PSP and then to build a new Lua Player, which linked the library and added it to the Lua Player, but I don't see a reason to include a general unzipper, but the source is BSD, you are free to create your own Lua Player :-)

But Laurens is working on PhysicsFS, which will allow to pack all Lua scripts, images and sounds of a game in one file for easier distribution and faster loading (a PhysicsFS file is just a zip file, with some logic on the Lua Player side, to make it work like an directory).
Back to top
View user's profile Send private message
the underminer



Joined: 03 Oct 2005
Posts: 124
Location: Netherlands

PostPosted: Sat Oct 08, 2005 10:47 pm    Post subject: why I want to decompress zip Reply with quote

I want to decompress zip because of the webbrowser feature of the psp. If you download a zip file with your psp, it's quite handy to play the contents (images, music) without being dependant of a computer. It would also enable websites like pspdrive.com (works great) to distribute magazines (a series of images with text in a zip file) directly to a psp.

However, compiling my own luaplayer looks quite complicated to me. I will read the tutorial on the WIKI tough. I doubt if luaplayer has enough file read/write capabilities to make a unzip lua script. E.G. if I would like to search a given file for the position of text "{i}" ({i} might be a flag that indicates where data should be duplicated for decompression) for example, how would I do that?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group