SunQuest
           Game Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesGame Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 4th, 2007, 05:08 PM
imsangha imsangha is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Location: Concord, California
Posts: 20 imsangha User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 34 m 22 sec
Reputation Power: 0
Send a message via MSN to imsangha
How a game handles compressed files

I think nowadays, most of the games have their data files compressed in several packages(For ex, quake3 and doom3 engines have pk3 compression file format to store the game data.)

My question is, how do they handle the compressed files? I guess the method should be either..

1) Extract them in a temporary folder, and remove all the files and the folder when the loading is finished.
  Pro : You can simply extract all those files and use game
      library modules to load the files by specifying the
      file locations.
  Con : All the data files are revealed to the user. Needs extra
hard disk memory, since all the data is being extracted.

2) Read directly from the packages.
  Pro : The game can keep the files in the archive under
      its encryption. It doesn't need extra hard disk memory.
  Con : You have to write your own functions to load the
      data, such as bitmaps, from the package to the
      buffers, and many other things.

3) Some other methods probably.


What do you think?

Reply With Quote
  #2  
Old April 4th, 2007, 08:50 PM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Psycho Canadian
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jan 2001
Location: Canada
Posts: 4,784 Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 4 Weeks 18 h 11 m 57 sec
Reputation Power: 437
Well for Quake and doom and wolf etc... that use pk3's pk3 is just a zip file. If you rename it (or just open it) with a program that can handle zip files you can see everything inside it. I don't think they are normally trying to *hide* the files, they are compressing them to save on space.
__________________
Miscellaneous Software
Viper_SB
Developershed E-Support


Anyone else play chess?
Challenge me

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesGame Development > How a game handles compressed files


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway