About this mod
Batch file that automates the process of unpacking game files with Atvaark's tools.
- Permissions and credits
Programmed for MGSV:TPP
(full unpack requires 80 GB of space)
This batch file unpacks TPP's game files with GzsTool, Foxtool, FoxEngine.TranslationTool, and FtexTool. The whole unpacking process takes a couple of hours to do without the batch file and carries the issue of the tools being run improperly or unnecessarily due to end-user forgetfulness, leading to a lot of wasted time. Hence the reason for this file's creation. In short, it's designed to make a modder's life easier.
Features:
- Runs a few checks to see if a tool has already been successfully executed on a .dat/folder.
- Counts files to ensure folders are fully unpacked.
- Uses config file as a convenient way for users to enable, disable, or skip certain parts of the .cmd
- Runs GzsTool with its additional parameters to unpack .pftxs and .sbp files.
- Unpacks .subp files in appropriate format (ISO1, ISO5, or UTF-8) with SubpTool, preventing corrupt characters in XML files.
Upcoming (priority order):
- Expansion of config file for optional logging
- Optional update/uninstall .cmd file for removing everything quickly or just updating the 0 and 1 game folders
- Support for GZ and MGO3 files.
Use:
Just double click the .cmd file and leave it be. Unpacking every game file, starting from the .dat's, takes around two or three on a computer with other processes running.
r4:
- Bug Fix:
- (r2-r3) issue: Solved issue preventing people with spaces in filepath from running the file (apparently calling labels w/ filepaths that have spaces, splits them into seperate arguments)
- A couple of syntax errors caused .subp files in certain folders to not be decompiled (changed & to &&: "pushd %foo% || call :errorBadFoo && exit /b")
- Robocopy would copy 1 folder directory structure every time instead of only if it didn't exist (apparently wildcards aren't wildcards when used in an if exist conditional filepath)
- Improvements:
- Added config file that accepts booleans (0 or 1) as input. Modify this before running the .cmd if you want to skip certain tools/folders or enable/disable certain features.
- Redirected text output from certain tools to nul (performance improvement)
- Additional error checks
If you want to disable a feature or skip over running a tool or folder during certain steps then edit "config.txt" before running the .cmd file. These are booleans; only 1 (true) or 0 (false) are accepted input. Anything else will stop the script at the start and give you a long-winded version of this paragraph.
Credit:
- LangTool dictionary.txt
- Lang Dictionary Project
- QAR dictionary.txt
- QAR Dictionary Project
- secaproject (current dictionary)