How to use pakcomposer.exe

To use pakcomposer.exe and compto.exe in their current state (as of February 2021), they need to be in the same directory as the pak files that you wish to extract.

Then in the file directory, type in cmd to access the command prompt.

You can also open command prompt and then use the cd command to change the directory.

How to Change Directory in a Command Prompt

In command prompt, type in pakcomposer.exe and click enter. This will bring up the actions that the program uses, along with some examples of how they are used.

The action flags are:

  • -d

    • This command splits a .pak0, .pak1, .pak3 files into its constituent files.

  • -c

    • This command will recompile a folder into a .pak0, .pak1, or .pak3 file.

  • -t

    • This command tests the files

Then there are the Mode flags, which are used to tell the program what type of pak file it is working with.

  • -0 is used for .pak0 files

  • -1 is used for .pak1 files

  • -3 is used for .pak3 files

The additional flags used by this program are as follows:

  • -x

    • This command will try to set file extensions to unpacked files. If not used, you will have a bunch of files with no way to open them unless you are able to determine the type of file and set the extension yourself!

  • -v

    • This tag tells the program to tell you what it is doing as it decompiles/compiles the pak files.

  • -u

    • This tells pakcomposer.exe to use compto.exe to help decompile/compile files.

Decomposing pak files

  1. First, type in the name of the program (pakcomposer.exe).

  2. Second, type the action flag that you are using (To decompose, use -d)

  3. Third, type in the name of the pak file that you are decomposing

  4. Fourth, type in the additional flags (generally you want to use all of them, or so I was taught)

For example, if we were to try to decompose 00021.pak1, the command would be typed something like this:

pakcomposer.exe -d 00021.pak1 -1 -v -u -x

After that, where your pak files are located there should be a folder with the decomposed file in it. The folder will have the same name as the pak file that it was created from.

Composing pak files

To compose a folder back into a pak file, you use the -c command.

Note that this will fail if a pak file with the same name as the folder exists in the same directory. Rename the original pak file incase something goes wrong so you don't lose it.

For example, if we wanted to recompose the folder (00021) that resulted after decomposing 00021.pak1 back into a pak file, you would use the command:

pakcomposer.exe -c 00021 -1 -v -u -x

And then hit enter.

Optimizing Decomposition (Warning: For Hardcore Programmers Only!!)

In order to do this, you need to be able to program.

First, open up Notepad.

And now, here's the hard coding part:

You must do the very difficult task of highlighting the following and pressing ctrl+c:

for %%i in (*.pak1) do pakcomposer.exe -d "%%i" -1 -x -u -v

Then (this is also very difficult coding stuff) you must go into Notepad and press ctrl+v. If you have done everything correctly, it should look like this:

Then, you want to save the file where pakcomposer.exe, compto.exe, and all your little pak files are located. You can name the file whatever you like, but make sure that the file ends with the extension .bat

Then you just click on the .bat file and it should do the work for you!