Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sins of a Solar Empire: Rebellion (204880) does not work with this flatpak #253

Closed
MayeulC opened this issue Oct 15, 2018 · 13 comments
Closed

Comments

@MayeulC
Copy link

MayeulC commented Oct 15, 2018

Game information
Sins of a Solar Empire: Rebellion (204880)
https://store.steampowered.com/app/204880/
ValveSoftware/Proton#265

It is a windows game running on Proton, SPCR gives it a pretty good rating. It works perfectly on my computer, but not with this flatpak.

I tried this on another computer as well, with the same issue when using the flatpak.

Distribution name and version where applicable
Arch Linux (tested on two different installations: Intel laptop (with iGPU) and AMD desktop (7200X, R9 Fury)?

Flatpak info

$ flatpak --version
Flatpak 1.0.4
$ flatpak --gl-drivers
default
host

Problem description
screenshot_20181015_215721

The launcher doesn't work, and complains about being unable to open gamedata.dat (that's here). The game works when bypassing the launcher (by renaming executables, for instance). There's nothing of value in stdout, I didn't find anything related to gamedata.dat when stracing it.

As far as I know, the launcher leverages .net.

Does this issue reproduce with native Steam
No

@nanonyme
Copy link
Collaborator

Zero clue. That error definitely comes from Windows side through Wine. There might be some Wine-specific debugging that could be used

@nanonyme
Copy link
Collaborator

I suppose this still reproduces?

@MayeulC
Copy link
Author

MayeulC commented Dec 19, 2018

Unfortunately, it still does, I just checked, and updated both steam, the flatpak runtime and the game.

@nanonyme
Copy link
Collaborator

What does this launcher actually look like?

@MayeulC
Copy link
Author

MayeulC commented Dec 20, 2018

I do not have access to a non-flatpaked version right now, so I can't comment, but that launcher is using .net as far as I can tell. I will try and edit this post to provide some screenshots and more info later today.

There were two giveaways for this game in recent weeks (the last one ended ~2days ago), I should have mentioned it here, I'm sorry about that.

@nanonyme
Copy link
Collaborator

Note your Flatpak data is accessible as regular files in your home directory under .var/app/com.valvesoftware.Steam
Flatpak mounts that as user home sandbox

@MayeulC
Copy link
Author

MayeulC commented Dec 22, 2018

Here is a screenshot:
rebellion_launcher

Here is the log, but I doubt there is anything useful in there
GameAction [AppID 204880, ActionID 2] : LaunchApp changed task to ProcessingInstallScript with ""
Proton: Missing or invalid openvrpaths.vrpath file! [Errno 2] No such file or directory: '/home/mayeul/.var/app/com.valvesoftware.Steam/.config/openvr/openvrpaths.vrpath'
Proton: Missing or invalid openvrpaths.vrpath file! [Errno 2] No such file or directory: '/home/mayeul/.var/app/com.valvesoftware.Steam/.config/openvr/openvrpaths.vrpath'
GameAction [AppID 204880, ActionID 2] : LaunchApp changed task to SynchronizingCloud with ""
GameAction [AppID 204880, ActionID 2] : LaunchApp changed task to SiteLicenseSeatCheckout with ""
GameAction [AppID 204880, ActionID 2] : LaunchApp changed task to CreatingProcess with ""
GameAction [AppID 204880, ActionID 2] : LaunchApp waiting for user response to CreatingProcess ""
GameAction [AppID 204880, ActionID 2] : LaunchApp continues with user response "CreatingProcess"
Game update: AppID 204880 "", ProcID 607, IP 0.0.0.0:0
>>> Adding process 607 for game ID 204880
GameAction [AppID 204880, ActionID 2] : LaunchApp changed task to WaitingGameWindow with ""
ERROR: ld.so: object '/home/mayeul/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
GameAction [AppID 204880, ActionID 2] : LaunchApp changed task to Completed with ""
ERROR: ld.so: object '/home/mayeul/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/mayeul/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 608 for game ID 204880
Proton: Missing or invalid openvrpaths.vrpath file! [Errno 2] No such file or directory: '/home/mayeul/.var/app/com.valvesoftware.Steam/.config/openvr/openvrpaths.vrpath'
ERROR: ld.so: object '/home/mayeul/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/mayeul/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/mayeul/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/mayeul/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 609 for game ID 204880
>>> Adding process 610 for game ID 204880
ERROR: ld.so: object '/home/mayeul/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 612 for game ID 204880
ERROR: ld.so: object '/home/mayeul/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/mayeul/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 615 for game ID 204880
>>> Adding process 617 for game ID 204880
>>> Adding process 620 for game ID 204880
ERROR: ld.so: object '/home/mayeul/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/mayeul/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 629 for game ID 204880
>>> Adding process 634 for game ID 204880
ERROR: ld.so: object '/home/mayeul/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 641 for game ID 204880
ERROR: ld.so: object '/home/mayeul/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
>>> Adding process 646 for game ID 204880
Contrast with a working, non-sandboxed steam installation
GameAction [AppID 204880, ActionID 3] : LaunchApp changed task to ProcessingInstallScript with ""
Proton: Missing or invalid openvrpaths.vrpath file! [Errno 2] No such file or directory: '/home/mayeul/.local/share/steam/.config/openvr/openvrpaths.vrpath'
Proton: Missing or invalid openvrpaths.vrpath file! [Errno 2] No such file or directory: '/home/mayeul/.local/share/steam/.config/openvr/openvrpaths.vrpath'
GameAction [AppID 204880, ActionID 3] : LaunchApp changed task to SynchronizingCloud with ""
GameAction [AppID 204880, ActionID 3] : LaunchApp changed task to SiteLicenseSeatCheckout with ""
GameAction [AppID 204880, ActionID 3] : LaunchApp changed task to CreatingProcess with ""
GameAction [AppID 204880, ActionID 3] : LaunchApp waiting for user response to CreatingProcess ""
GameAction [AppID 204880, ActionID 3] : LaunchApp continues with user response "CreatingProcess"
Game update: AppID 204880 "", ProcID 26385, IP 0.0.0.0:0
>>> Adding process 26385 for game ID 204880
ERROR: ld.so: object '/home/mayeul/.local/share/steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
GameAction [AppID 204880, ActionID 3] : LaunchApp changed task to WaitingGameWindow with ""
ERROR: ld.so: object '/home/mayeul/.local/share/steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/mayeul/.local/share/steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
GameAction [AppID 204880, ActionID 3] : LaunchApp changed task to Completed with ""
Proton: Missing or invalid openvrpaths.vrpath file! [Errno 2] No such file or directory: '/home/mayeul/.local/share/steam/.config/openvr/openvrpaths.vrpath'
ERROR: ld.so: object '/home/mayeul/.local/share/steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/mayeul/.local/share/steam/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
>>> Adding process 26386 for game ID 204880
>>> Adding process 26387 for game ID 204880
ERROR: ld.so: object '/home/mayeul/.local/share/steam/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/mayeul/.local/share/steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 26388 for game ID 204880
ERROR: ld.so: object '/home/mayeul/.local/share/steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/mayeul/.local/share/steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 26390 for game ID 204880
>>> Adding process 26393 for game ID 204880
ERROR: ld.so: object '/home/mayeul/.local/share/steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/mayeul/.local/share/steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 26395 for game ID 204880
>>> Adding process 26398 for game ID 204880
ERROR: ld.so: object '/home/mayeul/.local/share/steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 26407 for game ID 204880
>>> Adding process 26412 for game ID 204880
ERROR: ld.so: object '/home/mayeul/.local/share/steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 26419 for game ID 204880
ERROR: ld.so: object '/home/mayeul/.local/share/steam/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
Game update: AppID 204880 "", ProcID 26388, IP 0.0.0.0:0
>>> Adding process 26422 for game ID 204880

@MayeulC
Copy link
Author

MayeulC commented Dec 22, 2018

Scratch this, I think I found the issue.

The launcher was working with wine StardockLauncher.exe in my regular path /data/SteamLibrary/steamapps/common/Sins of a Solar Empire Rebellion/, but not in my flatpak install path, even after copying files over (/home/mayeul/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Sins of a Solar Empire Rebellion/), even when copying files over.

After a bit of trial-and-error, I found out it is likely due to a long path leading up to gamedata.dat, given that:

  • /home/mayeul/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/comm/Sins of a Solar Empire Rebellion/ works
  • /home/mayeul/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/commo/Sins of a Solar Empire Rebellion/ doesn't

This might actually be a game bug, but I can't help wondering if other games or applications are affected as well. I imagine this could be worked around by mounting the Steam folder somewhere else, but this would break the sandbox integration a bit (no "browse game files", for instance (I think -- or no trivial way to allow it)).

Do you think I should report this to the developer?

@nanonyme
Copy link
Collaborator

Inside the Flatpak that should look like
/var/home/mayeul/.local/share/Steam/steamapps/common/Sins of a Solar Empire Rebellion/ or
/home/mayeul/.local/share/Steam/steamapps/common/Sins of a Solar Empire Rebellion/ depending on Things (tm). There's a symlink /home -> /var/home

You might be able to make better guesses from the environment through

flatpak run --command=bash com.valvesoftware.Steam

@nanonyme
Copy link
Collaborator

nanonyme commented Jan 3, 2019

See #296

@nanonyme
Copy link
Collaborator

nanonyme commented Jan 3, 2019

Could you please test if that in general helps? I need to do some testing to make sure that Steam Cloud still works with that variant of the workaround so probably can't merge it right now.

@nanonyme
Copy link
Collaborator

nanonyme commented Jan 3, 2019

Ok. Deleting .var/app/com.valvesoftware.Steam/.steam along with symlinks withing should fix this now

@MayeulC
Copy link
Author

MayeulC commented Jan 6, 2019

Yes, that did the trick. Thanks a lot @nanonyme !

@MayeulC MayeulC closed this as completed Jan 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants