Hey guys,
today I want to release my Pk2Reader to you.
It's based on "bloodman"'s original class.
I Added alot of methods/functions to it and cleaned it up totaly.
[Features]
- Read .pk2 files with any Blowfish key
- Extract file(s) out of it
- Work around with .pk2 files
[Bugs]
- Nothing found (yet)
[Available Functions/Methods]
-
Compiled (.dll)
[Only registered and activated users can see links. Click Here To Register...]
Source (.zip)
[Only registered and activated users can see links. Click Here To Register...]
Example (.zip)
[Only registered and activated users can see links. Click Here To Register...]
Mini.pk2 (used in example)
[Only registered and activated users can see links. Click Here To Register...]
(Blowfishkey = "test")
Conclusion:
I hope it helps you to create your own .pk2 extractor. Feel free to add your own stuff and post it into this thread. Also feel free to add me to your skype contacts: MrLordschaft.
Thanks for reading.
PS: If you know how to code a writer, please tell me.
today I want to release my Pk2Reader to you.
It's based on "bloodman"'s original class.
I Added alot of methods/functions to it and cleaned it up totaly.
[Features]
- Read .pk2 files with any Blowfish key
- Extract file(s) out of it
- Work around with .pk2 files
[Bugs]
- Nothing found (yet)
[Available Functions/Methods]
-
Quote:
- ExtractFile(File File, string OutputPath) (+1 overflow)
Extract any file out of the .pk2 and save it to HDD
Quote:
- GetFileExtension(File File) --> string (+1 overflow)
Return the file extension of any file located inside the .pk2 (e.g ".txt")
Quote:
- GetRootFiles() --> List<File>
Returns a list of all files within the root folder
Quote:
- GetRootFolders() --> List<Folder>
Returns a list of all folders within the root folder
Quote:
- GetFiles(string ParentFolder) --> List<File>
Returns a list of all files within a specific folder
Quote:
- GetSubFolders(string ParentFolder) --> List<Folder>
Returns a list of all folders within a specific folder
Quote:
- FileExists(string Name) --> Boolean
Returns if the file you've been searching for exsist inside the .pk2
Quote:
- GetFileBytes(string Name) --> Byte[] (+1 overflow)
Returns the requested file as Byte[]
Quote:
- GetFileText(string Name) --> string (+1 overflow)
Returns the file text (e.g in itemdata_XY.txt)
Quote:
- GetFileStream(string Name) --> System.IO.Stream (+1 overflow)
Returns the stream of a file (e.g Image.FromStream(this_function))
Download:Quote:
- GetFileNames() --> List<string>
Returns a list with all filenames
Compiled (.dll)
[Only registered and activated users can see links. Click Here To Register...]
Source (.zip)
[Only registered and activated users can see links. Click Here To Register...]
Example (.zip)
[Only registered and activated users can see links. Click Here To Register...]
Mini.pk2 (used in example)
[Only registered and activated users can see links. Click Here To Register...]
(Blowfishkey = "test")
Conclusion:
I hope it helps you to create your own .pk2 extractor. Feel free to add your own stuff and post it into this thread. Also feel free to add me to your skype contacts: MrLordschaft.
Thanks for reading.
PS: If you know how to code a writer, please tell me.