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]
-
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))
Quote:
- GetFileNames() --> List<string>
Returns a list with all filenames
Download:
Compiled (.dll)
Source (.zip)
Example (.zip)
Mini.pk2 (used in example)
(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.
Result as your code:
And , where's the extract point? It only reads right?
I may work a lil bit on it but as a form * I hate consoles * and , I will post my final modified version.
Well, dll can be easily imported and used in applications. But one can use the source included, just bother to copy everything. Pros and cons at both side.
Well, dll can be easily imported and used in applications. But one can use the source included, just bother to copy everything. Pros and cons at both side.
.Net DLLs source code are easy to recover. Just use ILSpy or something like that. And about copying everything... Once you have a great solution for a problem, you are noob if u dont use that... Also you shouldnt use .Net or some classes in C#... You can write them from yourself
.Net DLLs source code are easy to recover. Just use ILSpy or something like that. And about copying everything... Once you have a great solution for a problem, you are noob if u dont use that... Also you shouldnt use .Net or some classes in C#... You can write them from yourself
.Net DLLs source code are easy to recover. Just use ILSpy or something like that. And about copying everything... Once you have a great solution for a problem, you are noob if u dont use that... Also you shouldnt use .Net or some classes in C#... You can write them from yourself
A noob , as you've said , at least he's helping people . Unless your worthless comment which creating a false point 100%. If he's a noob , we should teach him how to manage these ***** , To become a pro.
A noob , as you've said , at least he's helping people . Unless your worthless comment which creating a false point 100%. If he's a noob , we should teach him how to manage these ***** , To become a pro.
In my opinion, the main pont was this:
Quote:
Originally Posted by spartai333
And about copying everything... Once you have a great solution for a problem, you are noob if u dont use that...
[Release] Der Reader 12/22/2013 - Metin2 PServer Guides & Strategies - 130 Replies Guten Abend Volk.
Ich Präsentiere euch heute Der Reader.
Was zum Teufel ist Der Reader?!
Der Reader ist ein Tool was euch hilft Archiver für fremde Client´s zu erstellen.
Was ließt er aus?
Er ließt folgendes aus:
[Release]Base Reader 02/27/2013 - Last Chaos - 39 Replies Hey,
Ich hatte mir gestern die Engine.dll mal genaue angeschaut und einige interessante Funktionen gefunden! Gleich mal ein kleines Tool gebastelt das die besagten Funktionen ausliest.
Screenshot :
http://grabilla.com/02b03-725bc792-1eca-43e3-bc45 -68b3e31abc17.png
Download
[Release] Compose Log Reader - PHP 09/28/2012 - EO PServer Guides & Releases - 9 Replies Since alot of servers lately that I have seen are over ran with auto composing, I figured I would create something that allows
server owners and their staff to check the compose logs easier than using notepad.
What this does:
Owners put their compose logs in the folder, and go to the index.php page, enter the name of the file, example: sacrifice 2012-9-20.log
Then hit the "Run" buttonNote: if your compose log is huge, this may take some time to insert the data. The script
goes through...
[Release] IniFile Reader! 02/27/2012 - CO2 PServer Guides & Releases - 15 Replies Greetings Guys,
I was bored so I made a dll to read your Ini files.
all you need is to add the dll as a reference to your project and start using it.
an example:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;