redromnon / HeroicBashLauncher

Directly launch any Epic Games Store and GOG game from anywhere without Heroic on Linux.
GNU General Public License v3.0
354 stars 17 forks source link

[Bug] Cannot log in on HeroicBashLauncher #130

Closed redirectto closed 1 year ago

redirectto commented 1 year ago

Describe the bug Generated game scripts do not launch their respective games and thus they don't work on either steam or lutris.

To Reproduce

  1. Go to "/home/deck/Games/Heroic/HeroicBashLauncher/GameFiles/"
  2. Double click a game script for example "NEOTheWorldEndswithYou_Heroic.sh"

Expected behavior The game should launch.

Game script

#!/bin/bash

    #Generate log
    exec > logs/NEOTheWorldEndswithYou_Heroic.log 2>&1

    #Enable UTF-8 Encoding
    export LC_ALL=en_US.UTF-8

    #Game Name = NEO: The World Ends with You (epic) 

    #App Name = 5ab31c70e0b14ce5bddfd9f9c28f944d

    #Override launch parameters
    /home/deck/Games/Heroic/HeroicBashLauncher/HeroicBashLauncher --update "NEO: The World Ends with You" "5ab31c70e0b14ce5bddfd9f9c28f944d" "/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/GamesConfig/5ab31c70e0b14ce5bddfd9f9c28f944d.json" "epic"

    flatpak run --command=./launchflatpakgame.sh com.heroicgameslauncher.hgl

    #Launch Command
    #/app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary launch 5ab31c70e0b14ce5bddfd9f9c28f944d --language es --wine-prefix "/home/deck/Games/Heroic/Prefixes/default/NEO The World Ends with You" --wine /home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-12/bin/wine

Log

Using Bash Launcher v3.2.4
NOTE - This is an independent project and not affiliated with Heroic Games Launcher.

[cli] INFO: Logging in...
Traceback (most recent call last):
  File "legendary/cli.py", line 3061, in <module>
  File "legendary/cli.py", line 2976, in main
  File "legendary/cli.py", line 592, in launch_game
  File "legendary/core.py", line 187, in login
ValueError: No saved credentials
[4] Failed to execute script 'cli' due to unhandled exception!
wineserver stopped
NEO: The World Ends with You stopped

Details

redromnon commented 1 year ago

Traceback (most recent call last): File "legendary/cli.py", line 3061, in File "legendary/cli.py", line 2976, in main File "legendary/cli.py", line 592, in launch_game File "legendary/core.py", line 187, in login ValueError: No saved credentials [4] Failed to execute script 'cli' due to unhandled exception!

Please check if you've logged in properly in Heroic. This error shows up if haven't logged in. Also make sure the game launches through Heroic first.

redirectto commented 1 year ago

Logged in again in various attempts, still the same outcome. I've tried to close steam, to open steam, to close heroic to open heroic, to recreate the shortcuts and still doesn't work. My password contains a weird character, maybe that's the reason.

redromnon commented 1 year ago

I can confirm this is happening to me too. Trying to find a solution for the issue. The game launches fine in Heroic but not outside Heroic. legendary cannot authenticate if run outside Heroic like /opt/Heroic/resources/app.asar.unpacked/build/bin/lilegendary list.

redromnon commented 1 year ago

Let me know if this build works

It's not final though, need to make some more fixes. But it should launch games just fine.

redirectto commented 1 year ago

I have tried 3 games and now they launch properly. I'll wait for the final build. Thank you for your time.

redromnon commented 1 year ago

Feel free to close this issue when I publish the next release.

redromnon commented 1 year ago

@redirectto Was MangoHUD working for you and displaying the default metrics while playing a game?

redirectto commented 1 year ago

@redromnon Is MangoHUD the GPU usage, FPS counter etc... inside gaming mode using the 3 dot button?, If so I can test it out tonight.

redromnon commented 1 year ago

Yep. There's a checkbox under Settings. Although, I'm not sure if the Steam Deck has a global MangoHud shortcut button.

redirectto commented 1 year ago

I think it works alright https://i.imgur.com/p3pUsHl.jpg