PGTools - hakasapl/PGPatcher GitHub Wiki

PGTools is a companion EXE CLI tool that makes use of the same backend as PGPatcher.exe.

To get set up, I recommend adding the PG install directory to your PATH.

  1. You can do this by search Environment variables in your start menu and choosing the edit the system environment variables app.
  2. From there click on Environment Variables.
  3. Next click on Path under user variables and press Edit
  4. Add the PG install location as a line item and press okay
  5. The next time you open a terminal pgtools will be an available command now

Running Patchers

PGTools can run any of the patchers on a local folder. For now it will only read loose files and all relevant files must be in the directory you are running from (including meshes you want to be patched and the relevant textures).

To run the patcher use the command:

pgtools patch <comma separated name of patcher>

Available patchers are:

  • parallax
  • complexmaterial
  • truepbr
  • parallaxtocm
  • particlelightstolp
  • disablemlp
  • converttohdr
  • optimize

Any number of patchers can be chained together. For example to run truepbr and optimize, you could run pgtools patch truepbr,optimize

--help should work for all subcommands as well.

Should you want a simple EXE you can click and it always runs the same thing and you can copy it anywhere, just make a shortcut to pgtools.exe in Windows and add any required arguments in its properties. You should also change the run from field to wherever you are putting the shortcut.