Accessing bitmap in zip files

Started by LiTTleDRAgo, October 15, 2013, 08:23:35 am

Previous topic - Next topic

LiTTleDRAgo

Because too many images I'm compiling all images in Graphics/Pictures folder to a zip file

Spoiler: ShowHide


but when I accessing it from my game, for some reason it's didn't do as I intended (error, etc)

I already looked at this and tried to implement it but failed
_http://rubyzip.sourceforge.net/classes/Zip/ZipFile.html
_https://github.com/rubyzip/rubyzip

can anyone help? (if not, probably I'll do a script request because my knowledge seems insufficient in this matter)

Blizzard

If you want to be able to access them without problems, you have to compress the folder using Ruby's Zlib::deflate instead of using WinZip or something like that. I'm not sure how well Ruby can work with actual Zip files rather than just compressed streams.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

LiTTleDRAgo

I see, there's still are that way

thanks :D