HGL
flat-fuchsia
Amazon Games corrupted installed.json
I logged in to Amazon Games, but the games don't even load, and I can't log in again. Log's say it's corrupted installed.json. The content of the file is just "null%". I deleted it so that the program can recreate it, but it's the same again.
49 Replies
flat-fuchsiaOP•2y ago
afraid-scarlet•2y ago
looks like you successfully logged in
in terms of installed.json that shouldn't be a problem, however try changing it's contents to
[]
but the games don't even loadare you sure you are not in Epic or GOG tab?
flat-fuchsiaOP•2y ago
I don't even have an Amazon Tab
flat-fuchsiaOP•2y ago

afraid-scarlet•2y ago
what does the Manage accounts say
flat-fuchsiaOP•2y ago
That it's not logged in. I can click on "Amazon Login", but when i Do, it's stuck on "Preparing Login"
afraid-scarlet•2y ago
makes sense because it says you are logged in already
flat-fuchsiaOP•2y ago
flat-fuchsiaOP•2y ago
after i changed the contents to []
flat-fuchsiaOP•2y ago
and it appended the percentage sign after I restarted the app

flat-fuchsiaOP•2y ago
but it's not really a percentage sign, some kind of invisible character
because it's not appearing in text editors
afraid-scarlet•2y ago
did you use nile previously?
I guess you can workaround it by running
XDG_CONFIG_HOME=/home/tomek/.config/heroic/nile_config /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/nile auth --logout
and logging in Heroic againflat-fuchsiaOP•2y ago
I didn't
but I used amazon on lutris
afraid-scarlet•2y ago
lutris doesn't use nile directly so this shouldn't be an issue
flat-fuchsiaOP•2y ago
Managed to log out, logged back in, but same problem
afraid-scarlet•2y ago
send the log of that
last login
flat-fuchsiaOP•2y ago
But it might contain sensitive information?
Cookies or something, looks like it.
afraid-scarlet•2y ago
cut out that parts then
the long url and hashes
although it shouldn't allow anyone to use them since you are logged in already
flat-fuchsiaOP•2y ago
flat-fuchsiaOP•2y ago
I'll reboot my PC, i forgot I updated the kernel and didn't reboot.
afraid-scarlet•2y ago
(12:32:15) INFO: [Nile]: Game list updated, got 90 gameshmm, seems it can read that part
flat-fuchsiaOP•2y ago
rebooted, reinstalled heroic
re-logged in, but still same issue
afraid-scarlet•2y ago
try appimage from this build https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/pull/2897
GitHub
[FIX]: show install size for amazon games by imLinguin · Pull Reque...
Updated nile to store install size in installed.json
Additionally I reproduced how nile creates folder names to avoid miss matches
Use the following Checklist if you have changed something on the B...
afraid-scarlet•2y ago
also check
user.json
file in ~/.config/heroic/nile_config/nile/
see if it has given_name fieldflat-fuchsiaOP•2y ago
it's empty
the given_name field
afraid-scarlet•2y ago
and
name
isn't?flat-fuchsiaOP•2y ago
also empty
afraid-scarlet•2y ago
hmm
flat-fuchsiaOP•2y ago
everything else has a value
"home_region": "NA" I'm from EU, but I don't think it matters.
Tested the appimage, also doesn't work
flat-fuchsiaOP•2y ago
That's the installed.json it created.
flat-fuchsiaOP•2y ago
There's this percentage sign at the end when I use cat to view it.
That's why it throws "Error: Error invoking remote method 'checkGameUpdates': SyntaxError: Unexpected end of JSON input", I guess.
afraid-scarlet•2y ago
it's unrelated, because nile prints message like
[ERROR]: No games installed
so it's not valid JSONflat-fuchsiaOP•2y ago
I mean whatever is creating the installed.json file is adding the unexpected chracter to the end and Heroic can't read the file
I deleted the installed.json file and created a new one with [] inside
and now it's working with the AppImage version
afraid-scarlet•2y ago
can you see your games?
flat-fuchsiaOP•2y ago
It didn't work If i just edited the installed.json that was created.
Yes
afraid-scarlet•2y ago
what is your username in Account manager
flat-fuchsiaOP•2y ago
"B" because i edited the user.json, I forgot
afraid-scarlet•2y ago
remove that B
it will not know you are logged in
flat-fuchsiaOP•2y ago
I logged out, logged back in, and it's not working again, even if I create the installed.json file myself...
afraid-scarlet•2y ago
exactly
working on a fix right now
thanks for the report
flat-fuchsiaOP•2y ago
Sure thing, let me know when you want me to test it.
afraid-scarlet•2y ago
try latest AppImage @Shake
flat-fuchsiaOP•2y ago
It works! Didn't even need to re-login
Installing a game right now.
afraid-scarlet•2y ago
try to break it and report back 🙂
appreciate the help
flat-fuchsiaOP•2y ago
I'm not logged in in the browser on Stores page, but I think it's expected.
afraid-scarlet•2y ago
yes, session is separate
flat-fuchsiaOP•2y ago
I installed the games, but can't run them
0024:err:esync:esync_init Server is running with WINEESYNC but this process is not, please enable WINEESYNC or restart wineserver.
Is the error
I tried with ESYNC enabled and disabled in the settings
with wine-ge-latest
afraid-scarlet•2y ago
kill all wine processes
flat-fuchsiaOP•2y ago
I reinstalled wine, it's working now.