How to read .pak files? Created 18 years ago2005-11-01 05:17:22 UTC by Daubster Daubster

Created 18 years ago2005-11-01 05:17:22 UTC by Daubster Daubster

Posted 18 years ago2005-11-01 05:17:22 UTC Post #144663
I was workin on my Sentences.txt editor, and I thought that it would be really cool, if it could read sound files from .pak files and make sounds from them. Like a mini .pak explorer..

Now the big problem is:
How do I read .pak files thru notepad or any other text editor?
What are the specialities of the file?
If you know any site or other source of explanation, please let me know.

I tired googling, but found nothing on it.. :(
I tried examining the file myself, but it wasn't clear enough.

Any ideas? :)
Daubster DaubsterVault Dweller
Posted 18 years ago2005-11-01 05:37:17 UTC Post #144664
Wally can open .pak files, if that's what you mean.

Clicky!
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-11-01 05:39:51 UTC Post #144665
Well, judging by this PHP code for "creating dynamic PAK files for the Quake I and II engines", it's an incredibly simple format. I thought there was some compression involved :/. Don't have WON HL installed, though, so I can't look myself.

PS: madcow, I think he wants it integrated into his program.
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 18 years ago2005-11-01 05:42:44 UTC Post #144666
PS: madcow, I think he wants it integrated into his program.
Oh, so, you're making your own .pak opener Daubster? :S
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-11-01 06:48:26 UTC Post #144670
Not sure about pak files, but pk3 files (the Quake 3 equivalent of the Pak format) are zip format it seems.
m0p m0pIllogical.
Posted 18 years ago2005-11-01 08:46:30 UTC Post #144687
@Seventh: I know it's simple.
Heres an example:

PACK @ blahblahblah
blah.txt ų d~ūwxųw˙˙˙˙?ų  x � ?ī� ?Ų� 


This .pak file is made with pak explorer, opened with notepad. It has 1 .txt file named "blah", which has "blahblahblah" in it.
The things I don't understand is the array of those mixed up symbols in the end of the file.

Although I'll try make somethin out from that code, it's pretty much like C++.. :)

@m0p: Yea, I thought they were like .zip files too, I tried comparing a .zip and a .pak with the same file in them, but they weren't the same.

Later:
I found some source code for an app that opens .pak files. That's great, just that the example app doesn't openplay sound files
Daubster DaubsterVault Dweller
Posted 18 years ago2005-11-03 14:16:05 UTC Post #145093
could I get that source? I'm making a game at the moment, and it would be cool to be able to use the standart pak file format.
Posted 18 years ago2005-11-03 14:53:56 UTC Post #145102
Try pakexplorer! Found in the 67th valtitude.(links page) :)
Posted 18 years ago2005-11-03 15:01:24 UTC Post #145108
He's not looking for a tool to open pak files, he's looking for the source code.
ChickenFist ChickenFist<Witty Title>
Posted 18 years ago2005-11-03 15:04:34 UTC Post #145111
Ohh...why.....
Posted 18 years ago2005-11-03 15:04:49 UTC Post #145112
I think you mean "specification" not "specialities" for the pak file.

The following link (2nd hit when googling) explicitly describes creating a pak file with wav's in it.

http://www.planethalflife.com/studiosound/mike_and_pete/creation.html
Posted 18 years ago2005-11-03 15:11:00 UTC Post #145115
I'll probably just create my own format, anyway. And it'll probably be almost the same as the pak format.
Posted 18 years ago2005-11-04 04:11:50 UTC Post #145206
Well it's still not what i'm looking for.
To make this more understandable - I need to read .pak files in text format (notepad, for e.g).
I need to know, if the wav files stored in it aren't compressed or changed, I need to know, the process. How the .pak is made from the technical side
I tried emailing the creator of pak explorer, but I bet that the email is old and unused.. :
Any more ideas?
Daubster DaubsterVault Dweller
Posted 18 years ago2005-11-04 05:01:17 UTC Post #145209
Can't you figure out that PHP, then?
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 18 years ago2005-11-05 20:52:11 UTC Post #145618
Ohh...why.....
Well maybe if you read the previous posts... :)
Posted 18 years ago2005-11-06 12:34:01 UTC Post #145714
OK, I think I get it now.
Thanks for the help, guys.. :)
Daubster DaubsterVault Dweller
Posted 18 years ago2005-11-07 15:25:52 UTC Post #145960
I need to read .pak files in text format (notepad, for e.g).
.pak files are a binary format.
You must be logged in to post a response.