Solved

What is the compression format of various skin, themes, game data files?

Posted on 2003-12-08
8
404 Views
Last Modified: 2010-04-17
As a start, I need to know the compression format of the file extensions listed on http://www.zipzag.com/features.html under the "Game Levels and Data Files" and "Skins, Themes, and Collections".  

Secondly, how did you determine this information.  How can I find out the format of similar files?

0
Comment
Question by:katoa
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 9

Expert Comment

by:bhagyesht
ID: 9902040
in most cases there are no compressions programmers normally change the extention from png or bmp to dat
various files including zip or lha mention the compression like zip mentions as pk in the file, lha as lh, rar mentions rar
this is normally stored as text in the first few characters. open the file in any decent editor (if the file size is small notepad will do) and you can identify the compression.
0
 

Author Comment

by:katoa
ID: 9903421
Where can I find samples of these files to view them in a text/hex editor, as suggested?
0
 
LVL 9

Expert Comment

by:bhagyesht
ID: 9903475
now thats a difficult question to answer. try hitting download and the extention in google
0
 
LVL 2

Expert Comment

by:rod4nillos
ID: 9904438
well, i've had some experience in skins, and so far a lot of skins used in programs like those in Winamp is basically bitmap (bmp), usually you can find freeware that will help you create skins for certain applications. with themes, the same also applies. for games, usually they use their own native format for images, but are usually derived from image file format such as TIFF. game data files depend on the game, but some are actually naming it using "custom" file extensions like MIX, or something. and some can be opened in Notepad much like Windows' config.sys (e.g. some MIX files found on Red Alert games). for examples, look for files with the .mix extension in C & C: Red Alert, some can actually be viewed in a text editor. new games also use mp3 files for sound.

Rod
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 4

Expert Comment

by:void_main
ID: 9910307
I think the common used compression algorythm is "Lempel-Ziv". "Huffman" tree compression is out nowadays and RLE is useless for complex structures.
Zip uses Lempel Ziv
Rar too(I'm quite sure) but It does not format the compressed bitstream like zip

other games (quake I, II, III, IV?) have for example .pk? files (this is zip with changed extension). Thief I and II have .crf extension (its zip too).
Operationflashpoint has .pbo files which are packed and encrypted (here you need a special editor)
tga and bmp files are not packed.
jpg is jpeg compressed
and gif are vectors

wav files are not compressed.
mp3 and ogg are mpeg compressed.

did it help?
0
 

Author Comment

by:katoa
ID: 9913021
Great, void_main.  This is what I was looking for.  Let me summarize so far:

1. Quake I,2,3 - .pk?    (Renamed zip)
2. Thief 1,2    - .crf     (Renamed zip)
3. Operation Flashpoint - .pbo    (Propietary packed and encrypted)

I had a hunch that most of the files were renamed common compression formats.  Any ideas which others (including the skin and theme files) are also renamed zip files?   Others renamed .rar, .lzh, .arj, etc.?
0
 
LVL 9

Expert Comment

by:bhagyesht
ID: 9917964
katoa : Remember that knowing the format of compression is okay. but if you are looking into changing some data into it take care that you dont cross EULA.
0
 
LVL 4

Accepted Solution

by:
void_main earned 500 total points
ID: 9918669
@katoa:
I think I lied with quake I and quake II. There is a program called "unpack.exe" (One version for quake I and another for quake II). But Quake 3 IS compressed with zip! To get the program take a look at ftp://ftp.idsoftware.com .
Here is a important statement:
ALL games which are using any engines from ID (RTCW, SOF, JK][, Half-Life, CStrike, ...) are using the compression the engine they use depends on. So RTCW and JK ][ are using ZIP, where the others are using pak2 (possibly renamed)

Other games, UT and UT2003 are using some weired format which is encrypted. (I've never seen an unpacker)
Serious Sam 1 and 2 is/are compressed with zip too.

commonly sounds are ".wav" in games. Nowadays they are using ".mp3" and other games are using ".ogg" for sound/music.
Skins and textures are (In Thief) ".pcx". Quake 1 is using ".wad" files for textures (and resources). Quake II textures are unknown to me. Quake III and all games depending on the Quake III engine are using ".tga" and ".jpeg" for graphics. Where TGA is not compressed.

I think Doom3 will use zip too.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
bigHeights  challenge 13 56
countHi challenge 25 85
recursion example 16 70
I need an assist with a programming logic math question. 5 32
I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
A short article about problems I had with the new location API and permissions in Marshmallow
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now