Closed eebssk1 closed 1 year ago
It's the copyright sign in utf-8
Does the error exist if you enable utf8 support on windows? https://superuser.com/questions/1033088/is-it-possible-to-set-locale-of-a-windows-application-to-utf-8
Hello,
I have the exact same problem on a steam deck on SteamOS Beta.
Does the error exist if you enable utf8 support on windows? https://superuser.com/questions/1033088/is-it-possible-to-set-locale-of-a-windows-application-to-utf-8
Haven't try yet. However in my memory(when messing with virtual machine before, also chinese locale) turn on this will make half of the applications we normally use show garbaged text and even crash. I don't have vm currently and better not try this on host.
FYI:It looks like it's python's old school decision to use GBK on chinese locale and it's indepent of OS. While Windows' terminal defaults to so-called "gbk codepage",it does support output utf8 characters,the gbk is simply misleading but python does take this. Most solution from baidu is also force use utf8 or gb18030(around 2010,so looks like a long exist problem) as encoder,which is the solution in the commit.
Hello,
I have the exact same problem on a steam deck on SteamOS Beta.
If you sure that it's python's default encoders' issue,then just fork lengendary and pick my commit and then replace the bundles binary with your compiled one.
I'm sorry, i don't understand what you are telling me. (english is not my main language and its a bit technical for me) I can give you the log of what happend :
Legendary (Epic Games) Error: An error has occurred! Try to Logout and Login on your Epic account. Available games:
Forcing change chinese encoding in Legendary won't fix the problem, because it's not limited to chinese.
What we need to do is set PYTHONIOENCODING = "utf-8"
in options.env
here
https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/blob/fd5dcba27ab5d1ca31ff234558e62d02a3a7db3a/src/backend/storeManagers/legendary/library.ts#L626
But I don't have js skills to do it )))
@zclimber I implemented your fix and it seems to work, thanks for the hint. As I am not a TS developer by trade I expect a few rounds of review and changes on my PR, but in the end this should fix this https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/pull/2643
Turns out we can't just pass a variable and call it a day, we need Legendary to fix things. I created a PR there for this https://github.com/derrod/legendary/pull/554
Seems like the issue in Legendary has been closed with a commit from 4 days ago. Hoping to see this in the next release of Heroic. In the meantime, it looks like I could probably fix it by hand by inserting those few lines of code in cli.py
.
you can download the binary from the Legendary repository and set it in Advanced settings in heroic so you don't have to wait for a release with that
Ahh, it's distributed as a binary created with PyInstaller... so I'll have to build it myself until Legendary comes up with a new release. Didn't find instructions in the README.md
of the Legendary repo, so here you go:
$ git clone https://github.com/derrod/legendary.git
$ cd legendary/legendary
$ pip install --user pyinstaller
$ pyinstaller -F -n legendary cli.py
Binary can now be found in dist/legendary
.
Ahh, it's distributed as a binary created with PyInstaller... so I'll have to build it myself until Legendary comes up with a new release. Didn't find instructions in the
README.md
of the Legendary repo, so here you go:$ git clone https://github.com/derrod/legendary.git $ cd legendary/legendary $ pip install --user pyinstaller $ pyinstaller -F -n legendary cli.py
Binary can now be found in
dist/legendary
.
You can just fork the repo then enable the github actions,then push your change. It will automatically build it for you.
"Everyone should check the .github directory and see what it actually contains" In your case,you check the workflow file to see how developer build it actually.
you don't need to build it yourself, each commit builds the binary for all systems https://github.com/derrod/legendary/actions/runs/5101018370
Ahh, thanks. I must have missed that, sorry.
Closing this since it is a Legendary issue.
So is Heroic using Legendary snapshots? Or does there need to be a new Legendary release with the fix (which then presumably also needs to be picked up by Heroic)?
I'm having the same error on Steam Deck.
This will be fixed later in legendary upstream. Pls do NOT spam in this issue any more, thanks.
Sorry for spamming, but legendary has new release version which includes a fix for this bug.
Next release should have up to date legendary
Next release should have up to date legendary
Consider lock the issue if spamming keeps happening.
I have the same issue on Nobara linux
I have the same issue on Nobara linux
Download the latest legendary release file
Overwrite the downloaded legendary.exe
into the heroic game launcher installation directory(e.g. C:\Users\username\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\win32)
If nothing else, this should solve your problem!
any solution for ubuntu 23??
any solution for ubuntu 23??
what's the exact error you are getting?
An error has occurred! Try to Logout and Login on your Epic account. [cli] INFO: Logging in...[Core] INFO: Trying to re-use existing login session...[cli] INFO: Checking for updates...[Core] INFO: Getting authentication token...[cli] INFO: Launching f452ea20ae1b43698209998b56c2cc1c...Traceback (most recent call last): File "legendary/cli.py", line 3161, in <module>File "legendary/cli.py", line 3076, in main File "legendary/cli.py", line 716, in launch_gameFile "subprocess.py", line 951, in __init__File "subprocess.py", line 1837, in _execute_childFileNotFoundError: [Errno 2] No such file or directory: '/home/miguelpc/.config/heroic/tools/wine/Wine-GE-Proton8-26/bin/wine' [8636] Failed to execute script 'cli' due to unhandled exception!
I tried installing older legendary versions and nothing work :(
that's a different problem than the one from this thread
Do this:
if it still doesn't work, join our discord and start a thread in #-Support
with the game logs (github is for issues with heroic itself, not with issues running games)
Ok thank u so much, and sorry sorry for the confuse. I'm totally noob with Heroic 🙏🏼
Describe the bug
A dismissable error dialog was displayed with stop windows sound after logged in to epic account.
Add logs
Steps to reproduce
1.login to epic 2.switch to other page 3.switch to login page again and dialog shows up(if not,try login with gog or switch to other random page will also trigger this)
Expected behavior
No such error dialog should show up
Screenshots
Heroic Version
main branch from GitHub
System Information
Windows 10 22h2
Additional information
version commit id be6945dc4df3acbb8f666ef64f2e300b1ac14f72
Looks like a problem of legendary?Or is some changes are not compatible with chinese languange?