[Request] Pk2 Extractor Src

01/13/2018 20:53 Mr.Awesome1337#1
Is there are somebody have a source code of Pk2 Extractor/Editor or have an idea how to make program like it what the basics should i learn?
04/29/2019 21:55 homelesshobo#2
To understand the formats in pk2 files, this wiki should help:
[Only registered and activated users can see links. Click Here To Register...]

For c++, there's Drew Benton pk2 tools source:
[Only registered and activated users can see links. Click Here To Register...]

For working examples in C#, check zBot
[Only registered and activated users can see links. Click Here To Register...]

or this simple tool by Devsome:
[Only registered and activated users can see links. Click Here To Register...]
04/29/2019 23:12 florian0#3
You can also use my GFXFileManager release to actually use the original GFXFileManager.dll for extraction.
[Only registered and activated users can see links. Click Here To Register...]

This makes your application independent of any changes made to the PK2 files by any server owner. You don't have to deal with obfuscation, encryption, blowfish keys, pk2 base key, etc. If the GFXFileManager.dll can extract the files, your application can, too.

Example for listing files:
[Only registered and activated users can see links. Click Here To Register...]

You can use the export functions to simply extract single files or directores:
[Only registered and activated users can see links. Click Here To Register...]

Or you can go "the regular way" by opening, reading the bytes and saving them to a file.

Possible major downside: You have to use C++. At least for writing a C# wrapper for it ;)