Register for your free account! | Forgot your password?

You last visited: Today at 18:31

  • Please register to post and access all features, it's quick, easy and FREE!

 

PK2Tools 5-in-1 Bundle

Closed Thread
 
Old   #1
 
elite*gold: 260
Join Date: Aug 2008
Posts: 526
Received Thanks: 3,298
PK2Tools 5-in-1 Bundle

About:

This release is a package of updated tools I have been working on regarding PK2 files. At this point, I fully understand the PK2 structures so I can easily read and write them. However, as with any complex process, it takes a lot of time and progress to come up with final polished solutions that give people everything they want. This release is a step in that direction. Included are 5 updated tools: Builder.exe, Defragmenter.exe, Editor.exe, Extractor.exe, and Lister.exe. Please refer to the Instructions section for a brief overview and then the Screenshots section to see more specific information.

The highlights of this new code is as follows:
* Updated PK2 reading code to work one directory at a time. This reduces overall memory usage and increases processing speed for quick tasks.

* Fully implemented the PK2 structure. All known fields and logic have been worked out. (* There is one potential thing left for testing, but it's not a huge concern for now)

* Updated the PK2Extractor to be really simple now. It does include more features than the older VB6 version though, such as being able to extract folders w/ children, see the file size, support multiple blowfish keys, and would show/extract all PK2 entries (there are some bugs in the VB6 version in this regards).

* Added a PK2Builder class for building new Pk2s. Through this logic, the Defragmenter is easily coded as well.

* Updated Defragmenter logic using PK2Builder and PK2Reader. It's a lot simpler now and easy to follow and use.

* Updated the old PK2Writer code that is dependent on GFXFileManager.dll. While I am working on code to replace this, it is still the primary means for editing Pk2 files without using a DownloadServer.

* Using updated core code for Blowfish and some other shared files in the Common folder.

While I have done quite a bit of testing with this code, I always find various bugs here and there in all my work, so please make backup copies of all your stuff before you use anything in case something goes wrong. While I try to make sure I get serious bugs out of the way, it is possible I might have missed some, but only extensive use of the tools will show that. I don't have an active dev machine for Windows 7 up yet, so I've only been able to test on XP myself so far.

Instructions:
Quote:
PK2Tools
pushedx

Builder.exe
Builds new PK2s from existing folders.

Usage:
Builder <input folder> <output name> <key index>

"input folder" - The path to the folder to create a PK2 of.
"output name" - The title of the PK2, do not add an extension.
"key index" - 0 for standard PK2 key, 1 for non-standard PK2 key (ZSZC, SWSRO)

Example:
Builder "C:\MyData" "mydata" 0

Defragmenter.exe
Defragments existing PK2s into optimized versions.

Usage:
Defragmenter <pk2>

"pk2" - The full path to the PK2 file to defragment. The output is saved
into this directory, so make sure you have Admin access to it.

*** Your PK2s are NOT modified in any way. ***

Example:
Defragmenter "C:\Program Files\Silkroad\media.pk2"

Lister.exe
Generates a log file of all PK2 entries.

Usage:
Lister <pk2>

"pk2" - The full path to the PK2 file to defragment. The output is saved
into this directory, so make sure you have Admin access to it.

*** Your PK2s are NOT modified in any way. ***

Example:
Lister "C:\Program Files\Silkroad\media.pk2"

Editor.exe
Allows adding new files and folders to a PK2.

*** GFXFileManager.dll must be in the same folder as the PK2 you are editing!

Extractor.exe
Allows extracting files from a PK2.
Screens:

Builder.exe


Defragmenter.exe


Editor.exe


Extractor.exe



Lister.exe


Virus Scan:

Download: Attached (binary + source)

FAQ:

Q. Can I delete files?
A. Not yet! You can extract all files in a PK2 first, then run the builder on that folder after removing the files you no longer wish. That is not optimal for deleting a file or two, but if you really want the file gone...

Q. Is there a faster way to delete a file?
A. You can import in a new file with the same name and a 0 length to clear the content. But that's it. The PK2 structure was not really meant to have files deleted "easily" due to how the DownloadServer was setup.

Q. Can I use these tools with the older tools?
A. No. The older tools, most notably the PK2Reader, contain serious bugs that can cause problems or crashes. Use the new versions and report any bugs that you come across since they are now the current versions.

Q. What is the Lister for?
A. Since the PK2Extractor no longer has search capabilities, this tool has been added so users can at least use a document editor and find files as needed.

Q. Can I use the Builder for non-Silkroad stuff?
A. Yes! I have included the source code in a PK2 file to show this. However, the PK2 format is rather a lousy archive format, so it's not really recommended to use the PK2 format in place of something else outside of Silkroad. You can if you want though.

Q. After using the Defragmenter, Editor, or Builder, the PK2 files no longer work with Silkroad?
A. They should, please report the bug and be as detailed as you can as to what you were doing, which versions of Silkroad you were using, and any other useful information that could help me find the error and fix it.

End

Enjoy! Please report any bugs or leave feedback. Community involvement helps make for better tools and knowledge for everyone! I'll work on getting any reported bugs fixed over the weekend.
Attached Files
File Type: zip PK2Tools_0_1.zip (911.5 KB, 11800 views)



pushedx is offline  
Thanks
85 Users
Old   #2
 
elite*gold: 0
Join Date: Apr 2007
Posts: 49
Received Thanks: 4
Thumbs up

Wonderful Job, thx pushedx.


S.T.A.R.S? is offline  
Old   #3
 
elite*gold: 0
Join Date: Oct 2008
Posts: 52
Received Thanks: 26
Another legend tools from a legend programmer. Thanked so hard ^^
zideg is offline  
Thanks
2 Users
Old   #4
 
elite*gold: 0
Join Date: Dec 2007
Posts: 3,208
Received Thanks: 6,184
First of all, thanks for you awesome job =3
Now my firsts impressions:
1. The extractor works faster than the previous ones (both the 2007 version and the C# version).
2. Both editor and extractor looks uglier than before ^^'
3. The Lister should create the log file on the same folder as the lister is, not on the pk2 folder (well is just a suggestion =P)
4. The lister, the build and the decompiler are not very user-friendly. Make at least an small interface, or just a window for choose the pk2 file. C'mon it looks like a klevre's program XD
5. Still missing the drag&drop feature on the editor/extractor.

Until now I didn't got any error from any of them, seems pretty stable.


Kape7 is offline  
Old   #5
 
elite*gold: 0
Join Date: Dec 2008
Posts: 692
Received Thanks: 120
Thanks dude
bula13 is offline  
Old   #6
 
elite*gold: 0
Join Date: Dec 2007
Posts: 3,208
Received Thanks: 6,184
Ok found the first small bug. If you keep pressing the close icon on the editor or the extractor appear the confirmation window for close the program without any limitation.

Also I miss the automatic file import on the editor, manual is cool but annoying for import a large amount of files which are on different folders. I think I will extract all the pk2, edit the files and then build it back, =3
Kape7 is offline  
Old   #7
 
elite*gold: LOCKED
Join Date: Jun 2010
Posts: 242
Received Thanks: 169
nice Job thx
.Fresh is offline  
Old   #8
 
elite*gold: 0
Join Date: Dec 2007
Posts: 2,400
Received Thanks: 1,513
Love it! Thanks!
lesderid is offline  
Old   #9
 
elite*gold: 0
Join Date: Apr 2009
Posts: 120
Received Thanks: 17
when u r extracting/editing lots of files, the application go blank until it finishes the progress...
what about multithreading or a backgroundworker ?
great tools tho
Edit: when i use the builder/defragmenter/lister it will just display "Press any key to continue...", so i cant really get into using it.
im on winxp 32bits if it matter
supermando is offline  
Old   #10
 
elite*gold: 0
Join Date: Dec 2007
Posts: 3,208
Received Thanks: 6,184
Quote:
Originally Posted by supermando View Post
when u r extracting/editing lots of files, the application go blank until it finishes the progress...
what about multithreading or a backgroundworker ?
great tools tho
Edit: when i use the builder/defragmenter/lister it will just display "Press any key to continue...", so i cant really get into using it.
im on winxp 32bits if it matter
You have to use them through the command prompt. Make a .bat with the commands if you are going to use them very often.
The instructions for the cmd are on the readme.
Kape7 is offline  
Old   #11
 
elite*gold: 0
Join Date: Apr 2009
Posts: 120
Received Thanks: 17
Quote:
Originally Posted by Synx7 View Post
You have to use them through the command prompt.
im not sure what u mean with that...
anyway, here's my prob:
supermando is offline  
Old   #12
 
elite*gold: 0
Join Date: Dec 2007
Posts: 3,208
Received Thanks: 6,184
Quote:
Originally Posted by supermando View Post
im not sure what u mean with that...
anyway, here's my prob:
Start < Run < Type "cmd"
Copy the path of the folder where the pk2 tools are, for example "C:/Silkroad/Pk2Tools" and type on the cmd "cd <paste the path here>". Once there type the commands like it's said on the readme.
In the case of builder for me its:

Builder "D:\Silkroad\MediaNew" "Media" 0

Where "Builder" is the program we want to run (Builder.exe), "D:\Silkroad\MediaNew" is the path of the folder I want to build into a pk2, "Media" is the name of the pk2 which is going to be built, and 0 is the encryption (0 for iSRO, 1 for SWSRO/ZSZC).
Kape7 is offline  
Thanks
1 User
Old   #13
 
elite*gold: 0
Join Date: Apr 2009
Posts: 120
Received Thanks: 17
thnx alot!
supermando is offline  
Old   #14
 
elite*gold: 0
Join Date: Oct 2010
Posts: 2
Received Thanks: 0
hi can you me give pls the liink ?
Pinero is offline  
Old   #15
 
elite*gold: 0
Join Date: Dec 2007
Posts: 3,208
Received Thanks: 6,184
Quote:
Originally Posted by Pinero View Post
hi can you me give pls the liink ?


Kape7 is offline  
Closed Thread



« Previous Thread | Next Thread »

Similar Threads
[PK2Tools]ZSZC
According to Ra we are unable to open the PK2 files. Wrong. PK2Tools.rar Includes new IP as well NOTE: I have only tested this with the...
14 Replies - SRO PServer Ask the Experts
Pk2Tools Sources Request
Well i downloaded the Pk2Tools from a site that i found that i can't remember and it works to edit the .pk2 of CSRO and might work for others. ...
6 Replies - SRO Foreign - Discussions / Questions
[Sell] Uthgard-Bundle
done
6 Replies - General Gaming Discussion
Motherboard bundle
Also ich will zukünftig mein motherboard mit meiner alten hardware verkaufen und wollte euch mal fragen was es so wärt währ 1x amd semtron 2500+...
4 Replies - Main



All times are GMT +1. The time now is 18:31.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.