[Tool] Pk2 Extractor .NET
Hey guys,
the last few hours ive been working on a new tool called
"Pk2 Extractor.NET". It's written in c# and reads out your .pk2 files.
http://i48.tinypic.com/wpkbp.png
It's designed like the Windows file explorer and user friendly.
Quote:
!!ATTENTION!!
It's still a bit buggy but I'm too lazy to fix this now.. just wait for the next version...
Control:
Quote:
Double click a file to open it in the assigned programm (.txt will be opened in notepad? wordpad?..)
F1 to open a pk2
F4 to close
Ctrl+F to find a file(s) within the pk2
Rightclick a file to see further functions
Got to stop coding for today, my girlfriend is not happy about that I waste my time in this :)
Have fun!
Download (1.1):
https://lh.rs/gKe6Fv8f4mGq
Virustotal:
https://www.virustotal.com/en/file/0...is/1363901547/
As allways, feel free to add me to your skype contact list:
MrLordschaft.
Re: [Tool] Pk2 Extractor .NET
Re: [Tool] Pk2 Extractor .NET
Re: [Tool] Pk2 Extractor .NET
nice release, i'd love a class for developers tho .. you know like a class everyone can use inside their programs written in c# (and maybe even VB.net) to extract/import files from/to pk2's .. im currently using drew bentons pk2 api written in c++ inside extern programs in my programs i write in c#
Re: [Tool] Pk2 Extractor .NET
@lemoniscool:
You can use my earlier released .dll. Just search for it or use the one included in that package. The dll is open source
Re: [Tool] Pk2 Extractor .NET
youre talking of the c# pk2 reader? thats nice already but i need importing too (most of it as im writing a patcher) building an extractor with that dll is quite simple as you can use GetFileBytes, GetFileText or GetFileStream for that but importing is kinda missing :/ youre doing a great job btw
Re: [Tool] Pk2 Extractor .NET
That's awesome, i'm trying for while to view DDJ with a program easier than exporting it, converting it to DDS with another tool, convert it to PNG with another tool, then i was mistaken and exported the wrong pic -_-
Converting to DDS is easy then
i found DevIL.NET library to convert it to png couldn't use it due to ur DLL requires .NETframework 4 and for a reason DevIL doesn't work with it
Re: [Tool] Pk2 Extractor .NET
@3DProgramme simply use Sro DDJ Viewer .. http://forum.ragezone.com/f772/relea...er-0-a-782763/
it includes everything you need converter, viewer etc all you have to do is extract the ddj files, open one in the viewer and view them all like in windows image viewer
Re: [Tool] Pk2 Extractor .NET
Yesterday Ive added aninbound ddj->dds converter.
Re: [Tool] Pk2 Extractor .NET
@Lemoniscool
Yea it's good, but still it would be much easier to explore the Pk2 & be able to just view the images (still would be easier than extracting the files > opening them with this program ) just sayin
@torstmn
DDJ -> DDS is easy the problem is in DDS > (PNG - JPEG)
Code:
byte[] DDJ = Pk2Reader.GetFileBytes(FName);
byte[] DDS = new byte[DDJ.Length - 20];
Array.ConstrainedCopy(DDJ, 20, DDS, 0, DDJ.Length - 20);
prettyje managed to do it in his Map viewer
Re: [Tool] Pk2 Extractor .NET
ah you want to see the image before extracting .. the Pk2ExtractorSE has this feature: Pk2ExtractorSE.rar
Re: [Tool] Pk2 Extractor .NET
It's possible to load the .dds format via. XNA framework. That's what the map viewer is written in.. It's stupid to do that in a non Game/3D application.
Re: [Tool] Pk2 Extractor .NET
Re: [Tool] Pk2 Extractor .NET
If you want to view ddj images, just download http://forum.ragezone.com/f772/relea...er-0-a-782763/ and set it as default ddj viewer. In my extractor, double click a ddj file to open it up.
New update 1.1:
+ Added more shortcuts
+ Removed "Path" from fileinfo (too buggy)
+ Added folder info when selecting folder
+ Added new status strip with further information
+ Added DDJ to DDS converter (Dunno why^^)
Re: [Tool] Pk2 Extractor .NET
hey got an idea to your pk2extractor
i was looking around in my data.pk2 and often got told that the folder contains more than 500 files and it may take longer to open it. why dont you simply read the files in a second thread and enter it in the list? you could save yourself the msgbox and the program isnt stopped while the files are loaded. Maybe you could even use a background worker which seems to be much easier than starting a new thread (altho its basicly doing the same afaik) but i never used the background worker so idk
greetz
Re: [Tool] Pk2 Extractor .NET
#Close request
Released whole new project