protonscr

The Planet Crafter

protonopen appid 1284190Game compatibility - UnofficialRegression
ValveSoftware/Proton#7453 · opened 2024-01-28 by damnkrat · updated 2024-12-08 · 12 comments · github · game page · search this game
1 matching comments, n / p to jump
Ddamnkrat 2024-01-28 github

Compatibility Report

  • Name of the game with compatibility issues: The Planet Crafter
  • Steam AppID of the game: 1284190

System Information

  • GPU: RTX 3060
  • Video driver version: 535.154.05 (same with 550 beta)
  • Kernel version: 6.6.10-zen3-xanmod1-1
  • Link to full system information, report as Gist:
  • Proton version: 8.0-5

I confirm:

  • [x] that I haven't found an existing compatibility report for this game.
  • [x] that I have checked whether there are updates for my system available.

Symptoms

Regression. 8.0-4 did not have this problem.
Screenshot_20240128_201935
изображение
The window is "minimized" to wine and is completely frozen because of this. Sometimes into a black screen

Reproduction

  1. Open game
  2. Alt + tab
  3. Alt + tab back to the game
  4. Game broken

Proton log: steam-1284190.log

Aalasky17 2024-02-15 github

@damnkrat We've tried to reproduce the failure that you are seeing with Proton 8.0-5 and we are stumped. Unfortunately this type of bug is basically impossible to fix unless we can reproduce locally :(
I have a few more questions:

  1. Just to confirm that this is a regression, could you test this Proton 8.0-4 build that I've uploaded? (Just to make sure this isn't a change in behavior due to a system update etc.) Build is uploaded to https://www.codeweavers.com/xfer/alasky/proton-8.0-stable/ with lock code "stable". To test: Drop proton-8.0-4c-redist.tar.zst into ~/.steam/steam/compatibilitytools.d/. and untar the bundle. Then restart Steam and it will show up in the Proton dropdown menu. To remove, delete the folder in compatibilitytools and restart Steam again.
  2. It looks like you are using KDE + Xorg as your window manager. Is that correct? Do you have multiple monitors plugged in, any special monitor configuration, etc?
  3. If you are using KDE, could you try different settings in Workspace -> Window Management -> Window Behavior -> Focus -> Focus stealing prevention and see if any changes this behavior? The options go from none to extreme, and right now mine is set to low.
    KDE has a ton of features that can be customized by the user in addition to that one. That is just one that I know has caused a difference in behavior with Wine in the past :) If you can think of any others that you have changed, please try changing them back to default (or give me a list).
Ddamnkrat 2024-02-18 github

Hey @alasky17

  1. No. Appears it is not regression
  2. No. I am using KDE + Wayland. Yes. My configuration is very specific… Red is refresh rate
    изображение
  3. The one you provided is not one who causing the problem.

I figured out that issue appears only when I change full screen mode to Full Screen (Exclusive).

And for some reason the window appears to have a title, but in game settings it is full-screen and title is disabled in KDE settings.
Screenshot_20240218_225344

Let me know if you know how to copy list of all changed settings, if my new info didn't help a lot

Ddamnkrat 2024-03-07 github

Gentle ping. I checked all settings I changed related to window managing. It seems to be unrelated to plasma settings, but I'll check again when plasma 6.0 hits Manjaro testing

Also Proton experimental still has same issue at the moment

Aalasky17 2024-03-07 github

@damnkrat I don't want to give you false hope - unfortunately, since this is not a regression, this specific bug is not something we are actively working on. We do work on improving focus loss in general, but it is a slow process. It is an extremely challenging aspect of Wine, without even taking into account the large number of WMs and variation in monitors like you described above. For what it is worth, we were not able to reproduce this issue locally, so it is almost certainly due to something specific about your setup. It is possible that unplugging a monitor when you play Planet Crafter or something of that nature could fix this issue for you in the meantime :)

Ddamnkrat 2024-03-07 github

@alasky17 Sorry to say this only now, but I just now checked that physically and software disabling other monitors doesn't help in any way. Alt tabbing breaks the window, even when there is only 1 monitor. Tested on a 1080 and 2k monitor

Ddamnkrat 2024-08-04 github

The solution is done on KDE side!

When Alt+Tabbing through windows, tab keystrokes no longer leak into XWayland-using apps when using default XWayland app keyboard snooping setting (David Edmundson, Plasma 6.2.0. Link)

CCheaterman 2024-11-17 github

Hello! The game refuses to load on recent versions of Proton, and on 6.x the mouse is very glitchy, tends to force my view to go all the way up or down. I suspect it might be a regression since DLC release, given my player.log says:

UnloadTime: 1.279100 ms
NullReferenceException: Object reference not set to an instance of an object
  at SpaceCraft.PlanetList.GetIsPlanetPurchased (SpaceCraft.PlanetData planet) [0x00028] in <bb15078570824cc99da35ddd2657a824>:0 
  at SpaceCraft.HideIfOwnPlanet.OnEnable () [0x00000] in <bb15078570824cc99da35ddd2657a824>:0 

Unloading 6 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 21.973000 ms
Unloading 292 unused Assets to reduce memory usage. Loaded Objects now: 138455.
Total: 56.800700 ms (FindLiveObjects: 7.989300 ms CreateObjectMapping: 10.333200 ms MarkObjects: 38.080800 ms  DeleteObjects: 0.396700 ms)

NullReferenceException: Object reference not set to an instance of an object
  at SpaceCraft.PlanetList.GetIsPlanetPurchased (SpaceCraft.PlanetData planet) [0x00028] in <bb15078570824cc99da35ddd2657a824>:0 
  at SpaceCraft.PlanetList.InitPlanetList () [0x00073] in <bb15078570824cc99da35ddd2657a824>:0 
  at SpaceCraft.PlanetList.GetPlanetList (System.Boolean allPlanets) [0x00000] in <bb15078570824cc99da35ddd2657a824>:0 
  at SpaceCraft.PlanetNetworkLoader.Start () [0x0001c] in <bb15078570824cc99da35ddd2657a824>:0 
Kkisak-valve maintainer 2024-11-17 github

Hello @Cheaterman, please add PROTON_LOG=1 %command% to the game's launch options, reproduce the regression, and attach the generated $HOME/steam-$APPID.log to this issue report as a file. (Proton logs compress well if needed.) Also, please copy the contents of Steam Runtime Diagnostics from Steam (Steam -> Help -> Steam Runtime Diagnostics) and put it in a gist, then include a link to the gist in this issue report.

CCheaterman 2024-11-17 github

Hi kisak, thanks for your very quick answer (and your fantastic work as usual)!

Here is the proton log: steam-1284190.log
Here is the Steam runtime system info: https://gist.github.com/Cheaterman/b3b69ae943a189ad8b1709912725d4cf

In addition, here is the game-specific Player.log I mentioned above: Player.log (probably less useful to Valve, but probably useful to the game dev instead)

Thanks again, I hope we can find a good solution to this :-)

Kkisak-valve maintainer 2024-11-17 github

This might be a red herring, but VK_DRIVER_FILES=/usr/share/vulkan/icd.d/intel_icd.x86_64.json in your environment (https://gist.github.com/Cheaterman/b3b69ae943a189ad8b1709912725d4cf#file-steam-runtime-system-info-txt-L75) is forcing a 32 bit Vulkan render path to not be available. If you can find where that's being set, then removing it might have an effect.

CCheaterman 2024-11-17 github

This might be a red herring, but VK_DRIVER_FILES=/usr/share/vulkan/icd.d/intel_icd.x86_64.json in your environment (https://gist.github.com/Cheaterman/b3b69ae943a189ad8b1709912725d4cf#file-steam-runtime-system-info-txt-L75) is forcing a 32 bit Vulkan render path to not be available. If you can find where that's being set, then removing it might have an effect.

That's something I add on purpose on my openbox environment script, I have a primusrun script for 64 bits apps and a primusrun32 that does the opposite and forces the 32 bits Vulkan renderer for Intel:

.config/openbox/environment:

PATH=$HOME/.local/bin:$PATH
export VK_DRIVER_FILES=/usr/share/vulkan/icd.d/intel_icd.x86_64.json

cat $(which primusrun):

#!/bin/sh
export \
    __GLX_VENDOR_LIBRARY_NAME=nvidia \
    VK_DRIVER_FILES=/usr/share/vulkan/icd.d/nvidia_icd.json:$VK_DRIVER_FILES \
;
exec "$@

cat $(which primusrun32):

#!/bin/sh
export \
    __GLX_VENDOR_LIBRARY_NAME=nvidia \
    VK_DRIVER_FILES=/usr/share/vulkan/icd.d/nvidia_icd.i686.json:/usr/share/vulkan/icd.d/intel_icd.i686.json \
;
exec "$@"

I can try to drop it, or I can try launching Planet Crafter with the primusrun32 script, but this setup otherwise works pretty well for me so far.

EDIT: As expected, Planet Crafter doesn't launch with primusrun32 ; I'll be trying to launch the game without VK_DRIVER_FILES set in my env later on, mostly to rule it out as a cause, but as you noted it's likely not the issue.

EDIT2: That indeed does not help, sadly.

CCheaterman 2024-12-08 github

OTOH at this point the biggest issue I have is the mouse pitch thing - mouse gets stuck in full up or full down position, this seems to be framerate-dependent and particularly noticeable with vsync and/or frame limiter enabled. I'd love for the game to work on latest Proton versions because I assume it could fix some of that, but if the game fixes the mouse situation playing on Proton 6 is perfectly fine (if not totally stable).

Proton versions

Launch options