Compare commits

...

2 Commits

Author SHA1 Message Date
NintenHero 4f0acb8065
Update README.md 4 months ago
Michael Hinrichs 4140f7d8e2 Take any pkdwin or pkiwin file 4 months ago
  1. 11
      Program.cs
  2. 3
      README.md

11
Program.cs

@ -8,9 +8,9 @@ namespace PixelJunk_Extractor
{
static void Main(string[] args)
{
using FileStream pkiwin = File.OpenRead(args[0] + "//shooter.pkiwin");
BinaryReader br = new(pkiwin);
Directory.CreateDirectory(args[0] + "//shooter");
BinaryReader br = new(File.OpenRead(Path.GetDirectoryName(args[0]) + "//" + Path.GetFileNameWithoutExtension(args[0]) + ".pkiwin"));
string path = Path.GetDirectoryName(args[0]);
Directory.CreateDirectory(path + "//" + Path.GetFileNameWithoutExtension(args[0]));
br.BaseStream.Position = 8;
SUBFILE[] subfiles = new SUBFILE[br.ReadInt32()];
for (int i = 0; i < subfiles.Length; i++)
@ -21,12 +21,12 @@ namespace PixelJunk_Extractor
br.ReadInt32();//unknown
}
int n = 0;
using FileStream pkdwin = File.OpenRead(args[0] + "//shooter.pkdwin");
using FileStream pkdwin = File.OpenRead(path + "//" + Path.GetFileNameWithoutExtension(args[0]) + ".pkdwin");
foreach (SUBFILE sub in subfiles)
{
br = new(pkdwin);
br.BaseStream.Position = sub.offset;
using FileStream FS = File.Create(args[0] + "//shooter//" + n);
using FileStream FS = File.Create(path + "//" + Path.GetFileNameWithoutExtension(args[0]) + "//" + n);
BinaryWriter bw = new(FS);
MemoryStream ms = new();
@ -42,6 +42,7 @@ namespace PixelJunk_Extractor
br.Close();
}
}
struct SUBFILE
{
public int sizeUncompressed;

3
README.md

@ -1,5 +1,4 @@
# PixelJunk-Extractor
A tool to extract the assets from [PixelJunk Shooter](https://store.steampowered.com/app/255870).
To use: "PixelJunk-Extractor.exe" C:\SteamLibrary\steamapps\common\Shooter<br>
The program will find shooter.pkdwin and shooter.pkiwin in the game directory, and extract the files from them.
To use it, drag and drop a .pkdwin or .pkiwin file on PixelJunk-Extractor.exe.

Loading…
Cancel
Save