Not logged in, Join Here! or Log In Below:  
 
News Articles Search    
 

 Home / General Programming / Extracting compressed data in game Account Manager
 
Archive Notice: This thread is old and no longer active. It is here for reference purposes. This thread was created on an older version of the flipcode forums, before the site closed in 2005. Please keep that in mind as you view this thread, as many of the topics and opinions may be outdated.
 
Tristan

February 25, 2005, 06:04 PM

Hi,

Most games us a lot of data like textures and sounds. To save disk space they compress them into a zip or rar file. Usually the extension is changed (like .pak in Far Cry). You could just rename the file to .zip and unpack it (to borrow textures:-). When the game is loaded this file will be decompressed. My question is how to do this using C++. Does it decompress it into a temp directory or something? I don't really need it but it would be cool.

Thanx,
Tristan

 
IvanM

February 25, 2005, 06:12 PM

I'm pretty sure you just use some zip library to read compressed data directly out of a zip file.

 
juhnu

February 25, 2005, 10:01 PM

zlib

 
thatsalok

February 26, 2005, 04:52 AM

Hello Tristan,
there are hundreds of zip Library available in market.
one Wrapper of zipping or unzipping the file at runtime you can use this wrapper

  1.  
  2.  http://www.codeproject.com/cpp/xzipunzip.asp
  3.  


-------------------
Cheers
Alok Gupta
visit me at http://alok.bizhat.com
"i think this will help"

 
Tristan

February 26, 2005, 11:07 AM

Thanks,

Looks like it's just what I'm looking for. I'll try it as soon as possible.

Tristan

 
This thread contains 5 messages.
 
 
Hosting by Solid Eight Studios, maker of PhotoTangler Collage Maker.