Jump to content


PKG File Explorer tool.

Package explorer Package editor pkg file

  • Please log in to reply
19 replies to this topic

Coffee_ #1 Posted Oct 21 2018 - 20:36

    First lieutenant

  • Players
  • 43382 battles
  • 736
  • Member since:
    06-17-2011

Hello again...

 

Version 10
This fixes a bug with the XML text viewer not showing some XMLs correctly.

 

Version 9
Fixed a bug with not extracting wild card searches.

 

Version 8
Added wild card search to text searching.
Just add a * to the text either at the start or end of the line.

 

Version 7:
Add a text based search function.
Enter the text and press enter.
Clicking on a item in the expanded treeview will fill the textbox.
After, click on the text box and press enter.

 

Version 6:

Added code to search all PKG files and a button to extract all of them to the extract location.

Very useful for finding all parts of a tank, building or other items.

Failing to set the extraction folder to where you want all these files could lead to dumping them in your C:\ root!
Use at your own risk!

 

Version 5:
This fixes a bug with all files not showing in the in the view tree when a pkg is selected in the left list.

 

Version 4:
Now you can export a loaded model as a FBX.
UVs are exported as is UV2s if they exist.
NO TEXTURES are exported.
It will only export what items are not hidden.

Many maps are now stored as atlases. I have not tried to figure these out.

Note: This fails on some primitives.

 

Version 3:

Fixed some bugs with extracting from the pkg files.

 

Version 2:

This fixes a bug with loading large models and folders not extracting correctly.
I added a few more files that can be loaded and viewed as text.

 

I have been busy creating a new tool for the modding community.

Its a tool to explorer the games PKG files.
So far, it can display the models, visuals and most all XML style files and texture files. (PNG, DDS and JPG)
The tool can also extract a single file or entire folders of data. You set the location and where to save, select the item in the view tree and click Extract. Simple!
Select the folder file on the left and PKG Explore will create a tree view of the files contents.
To display an item, double click on it in the tree view or click View Item on the menu.
I want to add more tools for this like displaying the tree models, Python and other items as I figure out how to do it. I could use some help with the .SRT tree models :)

I made a video this AM showing how PE works..

You can get it on my GitHub

Spoiler

 


Edited by Coffee_, Aug 09 2019 - 03:22.


JLdragon #2 Posted Oct 21 2018 - 21:13

    First lieutenant

  • Players
  • 19006 battles
  • 640
  • Member since:
    02-14-2012

that is going to be one HELL of a great time SAVER on getting .pkg information now! Instead of having to Copy and Extract a whole .pkg file.. just pick and choose! Cant wait to give it a spin!

 

As always Coffee_ I Salute you <0

Killer work and Amazing Job!



ShuraBB #3 Posted Oct 21 2018 - 22:50

    First lieutenant

  • -Players-
  • 6 battles
  • 566
  • Member since:
    10-20-2015

>Its a tool to explorer the games PKG files.

PKG is the most common zip file ;-)



Coffee_ #4 Posted Oct 22 2018 - 14:25

    First lieutenant

  • Players
  • 43382 battles
  • 736
  • Member since:
    06-17-2011

View PostShuraBB, on Oct 21 2018 - 16:50, said:

>Its a tool to explorer the games PKG files.

PKG is the most common zip file ;-)

 

WinZip, 7zip and no other app is going to show you primitive files as a model or decode the packed xml format. Also, It displays DDS, PNG and JPG files.
All this is done with out extracting a single thing to your SSD or HDD. Extracting to a drive only happens if you tell PE to do it!

Coffee_ #5 Posted Oct 23 2018 - 04:28

    First lieutenant

  • Players
  • 43382 battles
  • 736
  • Member since:
    06-17-2011

View PostJLdragon, on Oct 21 2018 - 15:13, said:

that is going to be one HELL of a great time SAVER on getting .pkg information now! Instead of having to Copy and Extract a whole .pkg file.. just pick and choose! Cant wait to give it a spin!

 

As always Coffee_ I Salute you <0

Killer work and Amazing Job!

 

Thanks.. 
Ideas are welcome and any help anyone can give on decoding some of these file formats would be great.
A friendly reminder...
Every single item in the PKG files is Wargaming's property.

Don't be a smuck and use their work in other, unrelated stuff.



Coffee_ #6 Posted Jul 07 2019 - 21:20

    First lieutenant

  • Players
  • 43382 battles
  • 736
  • Member since:
    06-17-2011

Updated.. Now it can find and extract all times related to a items folder path :)



Coffee_ #7 Posted Jul 23 2019 - 19:09

    First lieutenant

  • Players
  • 43382 battles
  • 736
  • Member since:
    06-17-2011

 

Version 7:
Add a text based search function.
Enter the text and press enter.
Clicking on a item in the expanded treeview will fill the textbox.
After, click on the text box and press enter.



FrozenKemp #8 Posted Jul 27 2019 - 10:05

    Major

  • Players
  • 52901 battles
  • 9,708
  • Member since:
    04-24-2011

That is a super helpful tool!  I wanted to find a camo pattern DDS file and it sped up the search quite a bit.  Thank you very much!

 

(Does the text based search do a search on filenames? I didn't actually try that)



Coffee_ #9 Posted Jul 28 2019 - 21:24

    First lieutenant

  • Players
  • 43382 battles
  • 736
  • Member since:
    06-17-2011

View PostFrozenKemp, on Jul 27 2019 - 04:05, said:

That is a super helpful tool!  I wanted to find a camo pattern DDS file and it sped up the search quite a bit.  Thank you very much!

 

(Does the text based search do a search on filenames? I didn't actually try that)

Glad you are enjoying this tool :)

The text search matches exact names. Directories are ignored.

The Find button finds everything inside the selected directory.
Originally, when coding that, I was allowing it to find anything that contained the text in the search box.. This returned HUGE hits.. I plan on adding a check box to use wild card (contains the text) when searching. It will return a huge amount of hits if you put in something silly like "dds". Basically it would find every single image in the games data.. thousands! One would need to be careful and try to enter as much of a file they are trying to find as they can.



FrozenKemp #10 Posted Jul 28 2019 - 21:31

    Major

  • Players
  • 52901 battles
  • 9,708
  • Member since:
    04-24-2011

Wild card options would be fantastic :)

 

I didn't put the source code for the utility I wrote up on github but maybe I should.  It automates search/replace in binary files according to a list of search keys and replacement strings. 



Coffee_ #11 Posted Jul 29 2019 - 05:52

    First lieutenant

  • Players
  • 43382 battles
  • 736
  • Member since:
    06-17-2011

View PostFrozenKemp, on Jul 28 2019 - 15:31, said:

Wild card options would be fantastic :)

 

I didn't put the source code for the utility I wrote up on github but maybe I should.  It automates search/replace in binary files according to a list of search keys and replacement strings. 

I'll add the wild card option tomorrow :)
Yes.. Please post your work.. I'd like to have a look at it and.. others may find it useful.



Coffee_ #12 Posted Jul 29 2019 - 15:49

    First lieutenant

  • Players
  • 43382 battles
  • 736
  • Member since:
    06-17-2011

Version 8
Added wild card search to text searching.
Just add a * to the text either at the start or end of the line.

Spoiler

 



FrozenKemp #13 Posted Jul 29 2019 - 19:09

    Major

  • Players
  • 52901 battles
  • 9,708
  • Member since:
    04-24-2011

View PostCoffee_, on Jul 28 2019 - 23:52, said:

I'll add the wild card option tomorrow :)
Yes.. Please post your work.. I'd like to have a look at it and.. others may find it useful.

 

Bad news, I seem to have lost my source code. :(  It didn't take too long to write the first time, though. 

 

 



Coffee_ #14 Posted Jul 29 2019 - 23:58

    First lieutenant

  • Players
  • 43382 battles
  • 736
  • Member since:
    06-17-2011

View PostFrozenKemp, on Jul 29 2019 - 13:09, said:

 

Bad news, I seem to have lost my source code. :(  It didn't take too long to write the first time, though. 

 

 

I have done that! I had two computers crash on the same day. Figured I was safe to wipe the drive on the 2nd system and do a fresh OS install.
NOPE! Turned on my main system to start making backups and the hard drive was dead. I spent 2 days trying every trick in the book. No matter what computer it was hooked to.. NO ACTIVITY! No spinning up.. no IO. Lost a lotta source I had been working on for a couple years. I contacted a drive rescue company.. I think they quoted $3k to TRY and recover the data. Pay upfront and no guaranty of recovering a single byte.

Yes.. I cried :(



Coffee_ #15 Posted Aug 01 2019 - 16:22

    First lieutenant

  • Players
  • 43382 battles
  • 736
  • Member since:
    06-17-2011

Version 9
Fixed a bug with not extracting wild card searches.

 

 



Bluetinum #16 Posted Aug 08 2019 - 18:21

    Private

  • -Players-
  • 2352 battles
  • 5
  • Member since:
    12-03-2014

Hey there Coffee_ 

For some reason, when I open the customization.xml files from the various nations, I get an outdated version of the file
I'm referring to the files in scripts\item_defs\vehicles\nation_name\

 

The first image shows what PKG Explorer shows me 

 

The second one shows the script that I extracted from the packages. They are clearly not the same

 

I asked a friend to open the files, to make sure it wasn't just my PC being silly

He gets the same result

I hope you can find out what's wrong, because PKG Explorer is really a great tool for modding

Best regards, Bluetinum

#15



Coffee_ #17 Posted Aug 08 2019 - 19:45

    First lieutenant

  • Players
  • 43382 battles
  • 736
  • Member since:
    06-17-2011

Interesting...

It looks like the text viewer ignoring the inscriptions tag for some strange reason.
Let me have a look at the code.


 



Coffee_ #18 Posted Aug 08 2019 - 20:14

    First lieutenant

  • Players
  • 43382 battles
  • 736
  • Member since:
    06-17-2011

Ok.. All fixed.. It was code I left in that deleted those tags intentionally.. 

Grab version 10.

I gave you credit for finding the bug.. Nice catch Bluetinum!

I'm old and missing things like that ;)

 

PS... I'm glad you find the tool useful :)



Bluetinum #19 Posted Aug 08 2019 - 20:24

    Private

  • -Players-
  • 2352 battles
  • 5
  • Member since:
    12-03-2014
Thanks for a speedy fix :great:
The reason I spotted the bug, was that WoT kept crashing when I used the file in a mod.
So I grabbed the file using 7-zip and your XML editor and it worked.
My OCD compelled me to do some digging :D

Coffee_ #20 Posted Aug 09 2019 - 03:21

    First lieutenant

  • Players
  • 43382 battles
  • 736
  • Member since:
    06-17-2011
No big.. I try hard to stay on top of my apps.




1 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users