From ef7ffd2dd2f82d37b7d5039d3c49464b5a3f7eb0 Mon Sep 17 00:00:00 2001 From: bright-side-99 Date: Sun, 20 Mar 2022 21:43:17 +0100 Subject: [PATCH 1/3] support Python 3.8.10: replace argparse.BooleanOptionalAction as it requires python 3.9, ubuntu 20.04 lts based distros are still stuck on Python 3.8.xx --- er-patcher | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/er-patcher b/er-patcher index 94a577d..34362c6 100755 --- a/er-patcher +++ b/er-patcher @@ -15,11 +15,11 @@ if __name__ == "__main__": parser = argparse.ArgumentParser(description="Patch Elden Ring executable and launch it without EAC.") parser.add_argument("-r", "--rate", type=int, default=60, help="Modify the frame rate limit (e.g. 30, 120, 165 or whatever).") - parser.add_argument("-u", "--ultrawide", action=argparse.BooleanOptionalAction, help="Removes black bars when using a resolution with an aspect ratio other than 16:9.") - parser.add_argument("-v", "--disable-vigniette", action=argparse.BooleanOptionalAction, help="Disables the vigniette overlay.") - parser.add_argument("-c", "--disable-ca", action=argparse.BooleanOptionalAction, help="Disables chromatic abberation.") - parser.add_argument("-a", "--increase-animation-distance", action=argparse.BooleanOptionalAction, help="Increase animation distance.") - parser.add_argument("-f", "--remove-60hz-fullscreen", action=argparse.BooleanOptionalAction, help="Remove 60hz lock in fullscreen.") + parser.add_argument("-u", "--ultrawide", action='store_true', help="Removes black bars when using a resolution with an aspect ratio other than 16:9.") + parser.add_argument("-v", "--disable-vigniette", action='store_true', help="Disables the vigniette overlay.") + parser.add_argument("-c", "--disable-ca", action='store_true', help="Disables chromatic abberation.") + parser.add_argument("-a", "--increase-animation-distance", action='store_true', help="Increase animation distance.") + parser.add_argument("-f", "--remove-60hz-fullscreen", action='store_true', help="Remove 60hz lock in fullscreen.") patch = parser.parse_args(patcher_args) exe_name = Path("eldenring.exe") @@ -81,3 +81,4 @@ if __name__ == "__main__": os.remove(patched_exe_dir / exe_name) os.rmdir(patched_exe_dir) + \ No newline at end of file From 6b163799c6c6f4bdc47162b32fc4a3fb2945dede Mon Sep 17 00:00:00 2001 From: andy Date: Sun, 20 Mar 2022 21:51:46 +0100 Subject: [PATCH 2/3] remove unnecessary newline --- er-patcher | 1 - 1 file changed, 1 deletion(-) diff --git a/er-patcher b/er-patcher index 34362c6..b32bec5 100755 --- a/er-patcher +++ b/er-patcher @@ -81,4 +81,3 @@ if __name__ == "__main__": os.remove(patched_exe_dir / exe_name) os.rmdir(patched_exe_dir) - \ No newline at end of file From 92f1a6e6ee722e475b66b6fd610188e9ed879aed Mon Sep 17 00:00:00 2001 From: bright-side-99 Date: Sun, 20 Mar 2022 21:55:15 +0100 Subject: [PATCH 3/3] change dependency to Python >= 3.8.xx --- README.md | 2 +- er-patcher | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3516bd6..bbaab5f 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ A tool aimed at enhancing the experience when playing the game on linux through ## Dependencies -- Python >= 3.9 +- Python >= 3.8.xx (lowest tested) ## Usage diff --git a/er-patcher b/er-patcher index b32bec5..f76a640 100755 --- a/er-patcher +++ b/er-patcher @@ -80,4 +80,4 @@ if __name__ == "__main__": subprocess.run(steam_cmd) os.remove(patched_exe_dir / exe_name) - os.rmdir(patched_exe_dir) + os.rmdir(patched_exe_dir) \ No newline at end of file