Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python window appears but game fails to launch #58

Open
therealcharmics opened this issue Jan 7, 2024 · 4 comments
Open

Python window appears but game fails to launch #58

therealcharmics opened this issue Jan 7, 2024 · 4 comments

Comments

@therealcharmics
Copy link

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.

@therealcharmics
Copy link
Author

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.

@gurrgur
Copy link
Owner

gurrgur commented Jan 8, 2024

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!

@gurrgur
Copy link
Owner

gurrgur commented Jan 8, 2024

Or just use this:

er-patcher.zip

@mizufare
Copy link

Or just use this:

er-patcher.zip

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants