gurrgur / er-patcher

Elden Ring enhancement patches (ultrawide support, custom frame rate limits and more) seamlessly integrated with steam.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python window appears but game fails to launch

therealcharmics opened this issue · comments

Hello, I have Python 3.9.13 on windows 10, and it does have PATH.

When installing the mod and launching the game, the python window appears for a moment (blank) and then closes, and the game does not launch.

Startup commands tested:
python er-patcher --rate 165 --all -- %command%
python er-patcher --all -- %command%
python er-patcher -u -- %command%

Latest version of windows 10 and the game.

More information. I tried running it manually and got this error on line 137.

AttributeError: 'WindowsPath' object has no attribute 'hardlink_to'

I truncated the script and manually copied the modified exe back into the game directory, and can confirm that the rest of it seems to be working.

Thanks, that information is helpful! Apparently hardlink_to has been added only in python 3.10 so no wonder its not working with python 3.9. Hence this is a regression in the latest er-patcher release.

Can you please try replacing line 137 with the following:

            if sys.version_info.minor >= 10:
                (game_dir_patched / f).hardlink_to(f)
            else:
                f.link_to(game_dir_patched / f)

Hope that helps!

Or just use this:

er-patcher.zip

commented

Or just use this:

er-patcher.zip

thanks! that fixed the issue for me (on Arch Linux)