#327 The installer doesn't start (Steam)

Closed
opened 1 year ago by alpha0mega · 18 comments

I tried installing it via steam on my machine, the steam info gets stuck at "Downloading content 0%" and the launcher never gets executed.

Also attached the screenshots of what settings I used to run the Genshin Installer via steam.

I tried installing it via steam on my machine, the steam info gets stuck at "Downloading content 0%" and the launcher never gets executed. Also attached the screenshots of what settings I used to run the Genshin Installer via steam.
Krock commented 1 year ago
Owner

The "Ready to launch" dialogue looks a bit broken. Does the same occur when you use/install another Proton version?

Debugging:

  1. Close Steam, start with PROTON_LOG=1 steam for log files just in case
  2. Set "Target" to explorer.exe
  3. Run the explorer.
  4. Open the installer from there. If you cannot find it, move the installer exe into your prefix
  5. Check your $HOME for the relevant log file, analyze it and/or post it here in case the installer fails to start up.
The "Ready to launch" dialogue looks a bit broken. Does the same occur when you use/install another Proton version? Debugging: 1. Close Steam, start with `PROTON_LOG=1 steam` for log files just in case 2. Set "Target" to `explorer.exe` 3. Run the explorer. 4. Open the installer from there. If you cannot find it, move the installer exe into your prefix 5. Check your $HOME for the relevant log file, analyze it and/or post it here in case the installer fails to start up.
tretrauit commented 1 year ago

Proton is downloading/updating, wait for it to download

Proton is downloading/updating, wait for it to download
cybik commented 1 year ago

This looks like a slightly broken steam library configuration. If you have different steam library locations, maybe look at that.

Also, I need to point out there's other Linux-based launchers that could help here.

This looks like a slightly broken steam library configuration. If you have different steam library locations, maybe look at that. Also, I need to point out there's other Linux-based launchers that could help here.
Krock commented 1 year ago
Owner

No activity within two months.

@alpha0mega Did you solve the issue - and if so - what was the problem? It would be interesting to know for future cases.

No activity within two months. @alpha0mega Did you solve the issue - and if so - what was the problem? It would be interesting to know for future cases.

Hi, I'm experiencing issues opening the launcher from steam as well. I'm using the latest steam version and GE-PROTON 7-37. I also tried with the latest steam proton (both stable and experimental) and nothing changes.

@Krock could you elaborate more on how to obtain debug information? I read the first reply to the issue but since I'm new to linux I don't really understand what I'm supposed to do

Hi, I'm experiencing issues opening the launcher from steam as well. I'm using the latest steam version and GE-PROTON 7-37. I also tried with the latest steam proton (both stable and experimental) and nothing changes. @Krock could you elaborate more on how to obtain debug information? I read the first reply to the issue but since I'm new to linux I don't really understand what I'm supposed to do
Krock commented 1 year ago
Owner

@DefensiveDuelist310

Unfortunately there are multiple ways how you can install Steam. Let's hope the first try works on your system.

  1. Re-add the launcher executable to your library (example video) to rule out configuration issues. For example, it could look like this.
  2. Retry. Did that fix it? If not:
  3. Close Steam
  4. Open a terminal window (command line prompt)
  5. Type command -v steam (attention: case sensitive!) and press Enter. Does it output a path, such as /usr/bin/steam? If so: continue with step 6. Else abort and figure out how you installed Steam: Flatpak, Snap, ?
  6. Enter PROTON_LOG=1 steam
  7. After Steam is started up, retry to start the launcher.
  8. Use your file explorer to navigate to your home directory and look out for a file named steam-?????????.log (numbers may vary) and upload that to a paste service.
@DefensiveDuelist310 Unfortunately there are multiple ways how you can install Steam. Let's hope the first try works on your system. 1. Re-add the launcher executable to your library ([example video](https://www.youtube.com/watch?v=ihR2-r49eCM)) to rule out configuration issues. For example, it could look [like this](https://i.postimg.cc/BvBP33MJ/configuration.png). 2. Retry. Did that fix it? If not: 3. Close Steam 4. Open a terminal window (command line prompt) 5. Type `command -v steam` (attention: case sensitive!) and press Enter. Does it output a path, such as `/usr/bin/steam`? If so: continue with step 6. Else abort and figure out how you installed Steam: Flatpak, Snap, ? 6. Enter `PROTON_LOG=1 steam` 7. After Steam is started up, retry to start the launcher. 6. Use your file explorer to navigate to your home directory and look out for a file named `steam-?????????.log` (numbers may vary) and upload that to a paste service.

I had this behavior trying to run on steam and I also don't know how to generate any extra logs since nothing is generated using all the extra commands above. Everything is setup as mentioned, I've deleted the entire thing inside steam and started from ground, paid attention to every detail, tried to run with and without the launcher.bat and nothing happens, it fails just before anything could be launched. I'm not sure what more I could try.

I had this behavior trying to run on steam and I also don't know how to generate any extra logs since nothing is generated using all the extra commands above. Everything is setup as mentioned, I've deleted the entire thing inside steam and started from ground, paid attention to every detail, tried to run with and without the launcher.bat and nothing happens, it fails just before anything could be launched. I'm not sure what more I could try.
mucan commented 1 year ago

I got it working perfectly on steam. Here is how i did it.

  1. Go to an already installed game and use the browse local files to get to your steam installation folder quickly.
  2. In the game folder go up twice to get to common and then to the steamapps folder, then go into the compatdata folder.
  3. Now you can add a custom game in steam. For that just use any exe you have doesn't matter which. Don't forget to enable proton for the new game.
  4. Launch the "game" and keep an eye on the compatdata folder since steam will now create a new folder prefix folder for the game. I like to create a little text file with the name of the game to keep better track of my custom steam games. You don't need to install the exe just let steam create the prefix and close the installer.
  5. Inside the new folder i go to pfx/drive_c/program_files/ and there i create a genshin impact folder.
  6. From that folder i run the Krock/Dawn updater with the install, aka "bash /path_to_dawn_folder/updater/update_gi.sh install" to install genshin impact without the launcher to that folder.
  7. After the update script has installed the game change you custom game to the launcher.bat file inside the genshin impact folder inside the new prefix. Add a genshin impact icon if you like to. Also steam sometime ago fixed desktop icons for custom games so now you can even add a desktop icon for you genshin impact inside steam.
  8. PLAY THE GAME.

I tested Proton Experimental and Proton-GE but i mainly just use GE. I did all that because with lutris and other ways of managing wine the game just always stuttered and crashed on me. With steam only the random crash suspected to be connected with the switching to the newer version of the anticheat remains but that's only 1 crash every 15-20 hours for me.

I noticed many games work a little better when they are placed inside their prefix which is the biggest difference beside not using the mihoyo launcher with this approach.

I hope this works for you. This way should work no matter if it is a native or flatpak steam unless there are some major under the hood difference in starting the game. Honestly i actually never saw a dialogue like that starting a custom game in steam. If step 1 and 2 do not work then you need to manually search for these folders.

I got it working perfectly on steam. Here is how i did it. 1. Go to an already installed game and use the browse local files to get to your steam installation folder quickly. 2. In the game folder go up twice to get to common and then to the steamapps folder, then go into the compatdata folder. 3. Now you can add a custom game in steam. For that just use any exe you have doesn't matter which. Don't forget to enable proton for the new game. 4. Launch the "game" and keep an eye on the compatdata folder since steam will now create a new folder prefix folder for the game. I like to create a little text file with the name of the game to keep better track of my custom steam games. You don't need to install the exe just let steam create the prefix and close the installer. 5. Inside the new folder i go to pfx/drive_c/program_files/ and there i create a genshin impact folder. 6. From that folder i run the Krock/Dawn updater with the install, aka "bash /path_to_dawn_folder/updater/update_gi.sh install" to install genshin impact without the launcher to that folder. 7. After the update script has installed the game change you custom game to the launcher.bat file inside the genshin impact folder inside the new prefix. Add a genshin impact icon if you like to. Also steam sometime ago fixed desktop icons for custom games so now you can even add a desktop icon for you genshin impact inside steam. 8. PLAY THE GAME. I tested Proton Experimental and Proton-GE but i mainly just use GE. I did all that because with lutris and other ways of managing wine the game just always stuttered and crashed on me. With steam only the random crash suspected to be connected with the switching to the newer version of the anticheat remains but that's only 1 crash every 15-20 hours for me. I noticed many games work a little better when they are placed inside their prefix which is the biggest difference beside not using the mihoyo launcher with this approach. I hope this works for you. This way should work no matter if it is a native or flatpak steam unless there are some major under the hood difference in starting the game. Honestly i actually never saw a dialogue like that starting a custom game in steam. If step 1 and 2 do not work then you need to manually search for these folders.
cybik commented 1 year ago

For what it's worth, I use AAGL through Steam and choose GE-Proton to run the game, sparing me this process.

For what it's worth, I use AAGL *through* Steam and choose GE-Proton to run the game, sparing me this process.

@cybik using AAGL through Steam will pretty much use Steam just as a launcher. My idea is using steam's proton facilities to run the game.

@cybik using AAGL through Steam will pretty much use Steam just as a launcher. My idea is using steam's proton facilities to run the game.
mucan commented 1 year ago

@Daniel Menelkir exactly that's what the way I described does, run the game directly from steam with whatever version of proton you choose inside of the games properties within steam.

@Daniel Menelkir exactly that's what the way I described does, run the game directly from steam with whatever version of proton you choose inside of the games properties within steam.

@mucan any suggestion of components that should be installed in this prefix?

@mucan any suggestion of components that should be installed in this prefix?

@Krock Sorry it took me a while. here's what it says when I click launch:

GameAction [AppID 3105573046, ActionID 4] : LaunchApp changed task to SiteLicenseSeatCheckout with ""
GameAction [AppID 3105573046, ActionID 4] : LaunchApp changed task to CreatingProcess with ""
GameAction [AppID 3105573046, ActionID 4] : LaunchApp waiting for user response to CreatingProcess ""
GameAction [AppID 3105573046, ActionID 4] : LaunchApp continues with user response "CreatingProcess"
GameAction [AppID 3105573046, ActionID 4] : LaunchApp failed with AppError_51 with ""
GameAction [AppID 3105573046, ActionID 4] : LaunchApp changed task to Failed with ""

(steam:10584): Gtk-WARNING **: 23:07:31.237: gtk_disable_setlocale() must be called before gtk_init()

(steam:10584): Gtk-WARNING **: 23:07:31.286: gtk_disable_setlocale() must be called before gtk_init()

(steam:10584): GLib-CRITICAL **: 23:07:31.498: g_main_context_push_thread_default: assertion 'acquired_context' failed

(steam:10584): GLib-CRITICAL **: 23:07:31.499: g_main_context_pop_thread_default: assertion 'g_queue_peek_head (stack) == context' failed

(steam:10584): GLib-CRITICAL **: 23:07:41.512: g_main_context_push_thread_default: assertion 'acquired_context' failed
@Krock Sorry it took me a while. here's what it says when I click launch: ``` GameAction [AppID 3105573046, ActionID 4] : LaunchApp changed task to SiteLicenseSeatCheckout with "" GameAction [AppID 3105573046, ActionID 4] : LaunchApp changed task to CreatingProcess with "" GameAction [AppID 3105573046, ActionID 4] : LaunchApp waiting for user response to CreatingProcess "" GameAction [AppID 3105573046, ActionID 4] : LaunchApp continues with user response "CreatingProcess" GameAction [AppID 3105573046, ActionID 4] : LaunchApp failed with AppError_51 with "" GameAction [AppID 3105573046, ActionID 4] : LaunchApp changed task to Failed with "" (steam:10584): Gtk-WARNING **: 23:07:31.237: gtk_disable_setlocale() must be called before gtk_init() (steam:10584): Gtk-WARNING **: 23:07:31.286: gtk_disable_setlocale() must be called before gtk_init() (steam:10584): GLib-CRITICAL **: 23:07:31.498: g_main_context_push_thread_default: assertion 'acquired_context' failed (steam:10584): GLib-CRITICAL **: 23:07:31.499: g_main_context_pop_thread_default: assertion 'g_queue_peek_head (stack) == context' failed (steam:10584): GLib-CRITICAL **: 23:07:41.512: g_main_context_push_thread_default: assertion 'acquired_context' failed ```
Krock commented 1 year ago
Owner

@DefensiveDuelist310 On a successful run, CreatingProcess is followed by a line containing reaper SteamLaunch AppId=???????.

AppError_51 is a somewhat generic error but due to lack of that start command line, I assume that files (hence packages) are missing.

  1. Filter your Library based on locally installed games (button to the right of the search bar).
  2. Check whether these are installed:

    • Steam Linux Runtime - Soldier
    • Steam Linux Runtime
    • Proton (any version)

Usually they get installed when you first make use of them or maybe even during the Steam installation itself. You might as well try to use "explorer.exe" as target for debugging purposes.


@menelkir To run the game directly, you do not need any additional prefix component because Proton already ships DXVK. You might however want to install the MS fonts system-wide to get the in-game browser working properly.

@DefensiveDuelist310 On a successful run, `CreatingProcess` is followed by a line containing `reaper SteamLaunch AppId=???????`. `AppError_51` is a somewhat generic error but due to lack of that start command line, I assume that files (hence packages) are missing. 1. Filter your Library based on locally installed games (button to the right of the search bar). 2. Check whether these are installed: * Steam Linux Runtime - Soldier * Steam Linux Runtime * Proton (any version) Usually they get installed when you first make use of them or maybe even during the Steam installation itself. You might as well try to [use "explorer.exe"](https://notabug.org/Krock/dawn/issues/327#issuecomment-32649) as target for debugging purposes. --- @menelkir To run the game directly, you do not need any additional prefix component because Proton already ships DXVK. You might however want to install the MS fonts system-wide to get the in-game browser working properly.

@Krock Following those steps, I don't see any of those three. I'm sure Proton and wine are installed. I'm not sure about the other two and I don't know how to install them.

@Krock Following those steps, I don't see any of those three. I'm sure Proton and wine are installed. I'm not sure about the other two and I don't know how to install them.
Krock commented 1 year ago
Owner

@DefensiveDuelist310 This means of communication is unsuited for tedious troubleshooting, hence I would recommend you the following approach:

Please check whether other games start successfully using Proton. There are many free/lightweight games to test this. If there is a general launching issue with them, I would recommend you to reach out to a Steam/Linux support community for faster troubleshooting.

Once regular games work, please check online guides on how to add external games (Windows games in particular) to the Steam library. If you can get one of them to run (e.g. Space Cadet Pinball, the original), the same principle will work for Genshin. The game configuration fields are documented in INSTALLATION.md.

I hope this can help you to achieve some progress.

@DefensiveDuelist310 This means of communication is unsuited for tedious troubleshooting, hence I would recommend you the following approach: Please check whether other games start successfully using Proton. There are many free/lightweight games to test this. If there is a general launching issue with them, I would recommend you to reach out to a Steam/Linux support community for faster troubleshooting. Once regular games work, please check online guides on how to add external games (Windows games in particular) to the Steam library. If you can get one of them to run (e.g. Space Cadet Pinball, the original), the same principle will work for Genshin. The game configuration fields are documented in [INSTALLATION.md](/INSTALLATION.md#steam). I hope this can help you to achieve some progress.
mucan commented 1 year ago

@menelkir sorry for the late reply. In my case it works just fine without installing anything extra. Thought proton does provide many things like arial fonts so if you use some wine version you might need some fonts or other small things.

@menelkir sorry for the late reply. In my case it works just fine without installing anything extra. Thought proton does provide many things like arial fonts so if you use some wine version you might need some fonts or other small things.
Krock commented 1 year ago
Owner

No activity in over a month. I assume this issue is somehow resolved by now. If there are still issues installing or launching the game, feel free to open a separate issue.

No activity in over a month. I assume this issue is somehow resolved by now. If there are still issues installing or launching the game, feel free to open a separate issue.
Sign in to join this conversation.
Loading...
Cancel
Save
There is no content yet.