Skip to content

reiserFSs/pgrfpsunlock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

PGR 240 FPS Patch Script

Standalone script for applying a local 240 FPS or unlocked Lua hook to Punishing: Gray Raven.

What It Does

  • Patches only assets/temp/lua/matrix.ab::XUiMain.lua.
  • Adds PgrNativeFpsTimer, which sets CS.UnityEngine.Application.targetFrameRate.
  • Creates a backup before writing.
  • Refuses to patch while PGR.exe is running unless --force is used.

Requirements

  • Python 3
  • openssl
  • liblz4
  • Local PGR install with downloaded document matrix files

Usage

python3 apply_pgr_240fps.py --game-dir "/path/to/Punishing Gray Raven" --status
python3 apply_pgr_240fps.py --game-dir "/path/to/Punishing Gray Raven" --apply
python3 apply_pgr_240fps.py --game-dir "/path/to/Punishing Gray Raven" --disable

Default target is 240 FPS. To choose another value:

python3 apply_pgr_240fps.py --game-dir "/path/to/Punishing Gray Raven" --fps 120 --apply

Backup

Backups are written to pgr_240fps_backups/ by default.

To choose a backup folder:

python3 apply_pgr_240fps.py --game-dir "/path/to/Punishing Gray Raven" --backup-dir ./backups --apply

Demo

https://www.youtube.com/watch?v=LvfdUIL_M8s

About

Patches assets/temp/lua/matrix.ab::XUiMain.lua to unlock the 120 FPS cap within Punishing Gray Raven

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages