Zip file loading with TEA

Started by
6 comments, last by EddHead 20 years, 1 month ago
Is there any way in which i can read out of stored Mesh files along with their textures in an encrypted zip file (ex: TEA implementation) Would like to know if any tutorials are available ( except the one on gamedev / still need to check out that one ) on a succesful implementation of such. Jayanth.K Raptor Entertainment Pvt. Ltd. http://www.raptorentertainment.com
Jayanth.KRaptor Entertainment Pvt. Ltd.http://www.raptorentertainment.com---------------------------------------------------------Why Mr. Anderson? Why? ...Why keep fighting? Do you think you're fighting for something - for more than your survival? Can you tell me what it is? Do you even know? Is it freedom, or truth, perhaps peace, could it be for love? Illusions Mr. Anderson, vagaries of perception. Temporary constructs of a feeble human intellect trying desperately to justify an existence without meaning or purpose.
Advertisement
I don''t know of any tutorials that explain all of this to you. You''ll have to put together your own system. I suggest you start by loading the x file from a normal zip file (without compression).

Check out Wotsit formats for information on loading zip files.

Then add compression if you want.

Check out zLib

Finally add encryption. TEA is an excellent algorithm for which I have the source code right here:

TEA demo with source code

I have seen a tutorial on loading zip files, but I can''t find the link right now.

www.AngelCode.com - game development and more...
AngelScript - free scripting library

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

You might want to check out zziplib: http://zziplib.sourceforge.net/ It can load zip files and has support for custom loading hooks. There is a sample on the site for using XOR "encryption", it shouldn''t be too hard to replace by TEA.
Thanks for that link. The library seems to be very good and a complete solution to what most developers need from an archive reader.

I''ll definetly take a closer look at this one when I have the need for something like it.

__________________________________________________________
www.AngelCode.com - game development and more...
AngelScript - free scripting library

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Hey Thanks a lot for that Link. I was wondering about virtual file systems ( like using zipfiles as encrypted folders )or just a quick and dirty file packaging method. Is anyone aware of any other kinda game file packaging , kinda like the ones the big guys use.

Jayanth.K
Raptor Entertainment Pvt. Ltd.
http://www.raptorentertainment.com
Jayanth.KRaptor Entertainment Pvt. Ltd.http://www.raptorentertainment.com---------------------------------------------------------Why Mr. Anderson? Why? ...Why keep fighting? Do you think you're fighting for something - for more than your survival? Can you tell me what it is? Do you even know? Is it freedom, or truth, perhaps peace, could it be for love? Illusions Mr. Anderson, vagaries of perception. Temporary constructs of a feeble human intellect trying desperately to justify an existence without meaning or purpose.
Take a look at the following links:

Programming a Virtual File System
Resource files explained
Inside MoPaQ - the archive files used by Blizzard

__________________________________________________________
www.AngelCode.com - game development and more...
AngelScript - free scripting library

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Hey Thanks a lot for those. I have decided to look into the VFS system in flipcode to make a file package for our game. besides thanks a lot for your comments on our work, we still have a round of development left to go before beta and we are sure we will improve the game a lot. i will be changing our website completely since its almost 2 yrs old. ( photshop 5 days )

Thanks Again

Jayanth.K
Raptor Entertainment Pvt. Ltd.
http://www.raptorentertainment.com
Jayanth.KRaptor Entertainment Pvt. Ltd.http://www.raptorentertainment.com---------------------------------------------------------Why Mr. Anderson? Why? ...Why keep fighting? Do you think you're fighting for something - for more than your survival? Can you tell me what it is? Do you even know? Is it freedom, or truth, perhaps peace, could it be for love? Illusions Mr. Anderson, vagaries of perception. Temporary constructs of a feeble human intellect trying desperately to justify an existence without meaning or purpose.
I saw something called MoleBOX. great tool, it takes the exe file and packs the rest of the data files into a single large compressed/encrypted file and modifies the exe file to call thru its hack of the WINAPI calls so that the files are routed through its file chunk.

Sad part is i needed it urgently and i cant seem to be even able to buy the software. ( priced $99 ) but i havent been able to get it. he''s not around and the phone numbers on his website are not associated with the company. Are there any similar packages aruond? i have heard of TeraPak and ICS-Packer but i dont seem to be able to find them around. did a lot of searching.

Later

Jayanth.K
Raptor Entertainment Pvt. Ltd.
http://www.raptorentertainment.com
Jayanth.KRaptor Entertainment Pvt. Ltd.http://www.raptorentertainment.com---------------------------------------------------------Why Mr. Anderson? Why? ...Why keep fighting? Do you think you're fighting for something - for more than your survival? Can you tell me what it is? Do you even know? Is it freedom, or truth, perhaps peace, could it be for love? Illusions Mr. Anderson, vagaries of perception. Temporary constructs of a feeble human intellect trying desperately to justify an existence without meaning or purpose.

This topic is closed to new replies.

Advertisement