truckersmp-cli / truckersmp-cli

A simple launcher for truckersMP to be used with wine
MIT License
201 stars 17 forks source link

Support for the Snap version of Steam #362

Open dowmeister opened 3 months ago

dowmeister commented 3 months ago

Describe the bug

[S_API] SteamAPI_Init(): SteamAPI_IsSteamRunning() did not locate a running instance of Steam. [S_API FAIL] SteamAPI_Init() failed

Expected behavior

Should launch the game

Command

`truckersmp-cli --gamedir "/home/dow/snap/steam/common/.local/share/Steam/steamapps/common/American Truck Simulator" --prefixdir "/home/dow/snap/steam/common/.local/share/Steam/steamapps/compatdata/270880" --steamruntimedir "/home/dow/snap/steam/common/.local/share/Steam/steamapps/common/SteamLinuxRuntime_sniper" -c /home/dow/truckersmp-cli.conf --proton --native-steam-dir "/home/dow/snap/steam/common/.steam/steam" -vv start atsmp &`

Config

# Common settings
[DEFAULT]
rendering-backend = dx11
proton-directory = /home/dow/snap/steam/common/.local/share/Steam/steamapps/common/Proton - Experimental
steam-runtime-directory = /home/dow/snap/steam/common/.local/share/Steam/steamapps/common/SteamLinuxRuntime_sniper

# ETS2 Multiplayer specific
[ets2mp]
without-rich-presence = no
game-options = -mm_max_resource_size 90 -mm_max_tmp_buffers_size 1000 -mm_pool_size 16384

# ETS2 Singleplayer
[ets2]
without-rich-presence = no
game-options = -mm_max_resource_size 90 -mm_max_tmp_buffers_size 1000 -mm_pool_size 16384 

# ATS Multiplayer specific
[atsmp]
without-rich-presence = no
game-options = -mm_max_resource_size 90 -mm_max_tmp_buffers_size 1000 -mm_pool_size 16384

# ATS Singleplayer
[ats]
without-rich-presence = no
game-options = -mm_max_resource_size 90 -mm_max_tmp_buffers_size 1000 -mm_pool_size 16384 

Terminal output

ow@dow-ubuntu:~$ ./atsmp.sh 
dow@dow-ubuntu:~$ ** INFO **  Log file: <empty> (Default)
** INFO **  Game directory: /home/dow/snap/steam/common/.local/share/Steam/steamapps/common/American Truck Simulator (Command line option)
** INFO **  Prefix directory: /home/dow/snap/steam/common/.local/share/Steam/steamapps/compatdata/270880 (Command line option)
** INFO **  Game options: -mm_max_resource_size 90 -mm_max_tmp_buffers_size 1000 -mm_pool_size 16384 (Configuration file)
** INFO **  TruckersMP MOD directory: /home/dow/.local/share/truckersmp-cli/TruckersMP (Default)
** INFO **  Whether to disable Steam Runtime (deprecated): False (Default)
** INFO **  Whether to disable Steam Runtime: False (Default)
** INFO **  Whether to use Flatpak version of Steam: False (Default)
** INFO **  Whether to disable Steam Overlay: False (Default)
** INFO **  Proton directory: /home/dow/snap/steam/common/.local/share/Steam/steamapps/common/Proton - Experimental (Configuration file)
** INFO **  Steam Runtime directory: /home/dow/snap/steam/common/.local/share/Steam/steamapps/common/SteamLinuxRuntime_sniper (Command line option)
** INFO **  Rendering backend: dx11 (Configuration file)
** INFO **  AppID/GameID: 270880 (ats)
** INFO **  Proton version is (major=9, minor=0)
** INFO **  Using Steam Runtime container
** INFO **  Steam installation directory: /home/dow/snap/steam/common/.steam/steam
** INFO **  System-wide installation detected: /usr/local/lib/python3.10/dist-packages/truckersmp_cli
** INFO **  Starting game
** INFO **  Running Steam Runtime helper:
  SteamAppId=270880
  SteamGameId=270880
  LD_PRELOAD=/home/dow/snap/steam/common/.steam/steam/ubuntu12_64/gameoverlayrenderer.so
  PROTON_USE_WINED3D=0
  STEAM_COMPAT_CLIENT_INSTALL_PATH=/home/dow/snap/steam/common/.steam/steam
  STEAM_COMPAT_DATA_PATH=/home/dow/snap/steam/common/.local/share/Steam/steamapps/compatdata/270880
  python3
    /home/dow/snap/steam/common/.local/share/Steam/steamapps/common/Proton - Experimental/proton
    run
    /tmp/truckersmp-cli-container-sharing-workaround-as0183u7/truckersmp-cli.exe
    /home/dow/snap/steam/common/.local/share/Steam/steamapps/common/American Truck Simulator
    /home/dow/.local/share/truckersmp-cli/TruckersMP
      -rdevice dx11 -mm_max_resource_size 90 -mm_max_tmp_buffers_size 1000 -mm_pool_size 16384
wine: using kernel write watches, use_kernel_writewatch 1.
fsync: up and running.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
[S_API] SteamAPI_Init(): SteamAPI_IsSteamRunning() did not locate a running instance of Steam.
[S_API FAIL] SteamAPI_Init() failed
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
Proton output:
wine: using kernel write watches, use_kernel_writewatch 1.
fsync: up and running.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
[S_API] SteamAPI_Init(): SteamAPI_IsSteamRunning() did not locate a running instance of Steam.
[S_API FAIL] SteamAPI_Init() failed
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
```
** INFO **  Game directory: /home/dow/snap/steam/common/.local/share/Steam/steamapps/common/American Truck Simulator (Command line option)
** INFO **  Prefix directory: /home/dow/snap/steam/common/.local/share/Steam/steamapps/compatdata/270880 (Command line option)
** INFO **  Game options: -mm_max_resource_size 90 -mm_max_tmp_buffers_size 1000 -mm_pool_size 16384 (Configuration file)
** INFO **  TruckersMP MOD directory: /home/dow/.local/share/truckersmp-cli/TruckersMP (Default)
** INFO **  Whether to disable Steam Runtime (deprecated): False (Default)
** INFO **  Whether to disable Steam Runtime: False (Default)
** INFO **  Whether to use Flatpak version of Steam: False (Default)
** INFO **  Whether to disable Steam Overlay: False (Default)
** INFO **  Proton directory: /home/dow/snap/steam/common/.local/share/Steam/steamapps/common/Proton - Experimental (Configuration file)
** INFO **  Steam Runtime directory: /home/dow/snap/steam/common/.local/share/Steam/steamapps/common/SteamLinuxRuntime_sniper (Command line option)
** INFO **  Rendering backend: dx11 (Configuration file)
** INFO **  AppID/GameID: 270880 (ats)
** DEBUG **  Updating mod files
** DEBUG **  Creating directory /home/dow/.local/share/truckersmp-cli/TruckersMP if it doesn't exist
** DEBUG **  No files to download
** INFO **  Proton version is (major=9, minor=0)
** INFO **  Using Steam Runtime container
** DEBUG **  Steam is running
** INFO **  Steam installation directory: /home/dow/snap/steam/common/.steam/steam
** INFO **  System-wide installation detected: /usr/local/lib/python3.10/dist-packages/truckersmp_cli
** DEBUG **  Copying Steam Runtime helper to /tmp/truckersmp-cli-container-sharing-workaround-_5s4sai1
** DEBUG **  Copying Flatpak helper to /tmp/truckersmp-cli-container-sharing-workaround-_5s4sai1
** DEBUG **  Copying inject program to /tmp/truckersmp-cli-container-sharing-workaround-_5s4sai1
** DEBUG **  Shared paths: ['/home/dow/snap/steam/common/.local/share/Steam/steamapps/common/American Truck Simulator', '/home/dow/snap/steam/common/.local/share/Steam/steamapps/common/Proton - Experimental', '/home/dow/snap/steam/common/.local/share/Steam/steamapps/compatdata/270880', '/home/dow/.local/share/truckersmp-cli', '/home/dow/.local/share/truckersmp-cli/TruckersMP', '/tmp/truckersmp-cli-container-sharing-workaround-_5s4sai1', '/run/user/1000/snap.discord/discord-ipc-0']
** DEBUG **  Created starter for Proton
** INFO **  Starting game
** DEBUG **  Creating directory /home/dow/snap/steam/common/.local/share/Steam/steamapps/compatdata/270880 if it doesn't exist
** DEBUG **  Native d3dcompiler_47.dll is found
** DEBUG **  Proton:(9, 0), Prefix:(9, 0)
** DEBUG **  Whether to setup native d3dcompiler_47: False
** INFO **  Running Steam Runtime helper:
  SteamAppId=270880
  SteamGameId=270880
  LD_PRELOAD=/home/dow/snap/steam/common/.steam/steam/ubuntu12_64/gameoverlayrenderer.so
  PROTON_USE_WINED3D=0
  STEAM_COMPAT_CLIENT_INSTALL_PATH=/home/dow/snap/steam/common/.steam/steam
  STEAM_COMPAT_DATA_PATH=/home/dow/snap/steam/common/.local/share/Steam/steamapps/compatdata/270880
  python3
    /home/dow/snap/steam/common/.local/share/Steam/steamapps/common/Proton - Experimental/proton
    run
    /tmp/truckersmp-cli-container-sharing-workaround-_5s4sai1/truckersmp-cli.exe
    /home/dow/snap/steam/common/.local/share/Steam/steamapps/common/American Truck Simulator
    /home/dow/.local/share/truckersmp-cli/TruckersMP
      -rdevice dx11 -mm_max_resource_size 90 -mm_max_tmp_buffers_size 1000 -mm_pool_size 16384
** DEBUG **  winediscordipcbridge.exe is present, MD5 is OK.
** DEBUG **  Helper arguments: ['/home/dow/snap/steam/common/.local/share/Steam/steamapps/common/SteamLinuxRuntime_sniper/run', '--filesystem', '/home/dow/snap/steam/common/.local/share/Steam/steamapps/common/American Truck Simulator', '--filesystem', '/home/dow/snap/steam/common/.local/share/Steam/steamapps/common/Proton - Experimental', '--filesystem', '/home/dow/snap/steam/common/.local/share/Steam/steamapps/compatdata/270880', '--filesystem', '/home/dow/.local/share/truckersmp-cli', '--filesystem', '/home/dow/.local/share/truckersmp-cli/TruckersMP', '--filesystem', '/tmp/truckersmp-cli-container-sharing-workaround-_5s4sai1', '--filesystem', '/run/user/1000/snap.discord/discord-ipc-0', '--', 'python3', '/tmp/truckersmp-cli-container-sharing-workaround-_5s4sai1/steamruntime_helper.py', '--early-executable', '/home/dow/.local/share/truckersmp-cli/wine-discord-ipc-bridge/winediscordipcbridge.exe', '--early-wait-before-start', '5', '--wait-before-start', '0', '-vv', '--', 'python3', '/home/dow/snap/steam/common/.local/share/Steam/steamapps/common/Proton - Experimental/proton', 'run', '/tmp/truckersmp-cli-container-sharing-workaround-_5s4sai1/truckersmp-cli.exe', '/home/dow/snap/steam/common/.local/share/Steam/steamapps/common/American Truck Simulator', '/home/dow/.local/share/truckersmp-cli/TruckersMP', '-rdevice', 'dx11', '-mm_max_resource_size', '90', '-mm_max_tmp_buffers_size', '1000', '-mm_pool_size', '16384']
wine: using kernel write watches, use_kernel_writewatch 1.
fsync: up and running.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
[S_API] SteamAPI_Init(): SteamAPI_IsSteamRunning() did not locate a running instance of Steam.
[S_API FAIL] SteamAPI_Init() failed
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
Executables (early): ['/home/dow/.local/share/truckersmp-cli/wine-discord-ipc-bridge/winediscordipcbridge.exe']
Executables: None
Game Arguments: ['python3', '/home/dow/snap/steam/common/.local/share/Steam/steamapps/common/Proton - Experimental/proton', 'run', '/tmp/truckersmp-cli-container-sharing-workaround-_5s4sai1/truckersmp-cli.exe', '/home/dow/snap/steam/common/.local/share/Steam/steamapps/common/American Truck Simulator', '/home/dow/.local/share/truckersmp-cli/TruckersMP', '-rdevice', 'dx11', '-mm_max_resource_size', '90', '-mm_max_tmp_buffers_size', '1000', '-mm_pool_size', '16384']
Waiting time (early): 5
Waiting time: 0
Proton output:
wine: using kernel write watches, use_kernel_writewatch 1.
[S_API] SteamAPI_Init(): SteamAPI_IsSteamRunning() did not locate a running instance of Steam.
[S_API FAIL] SteamAPI_Init() failed
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
```

Information

MahouShoujoMivutilde commented 3 months ago

Do NOT run it.

It's malware that'll steal your account if executed, to spread further spamming the same message elsewhere, like happened to this person.

There are a lot of comments like that

https://github.com/search?q=is%3Aissue+%22In+the+installer+menu%2C+select+%5C%22gcc.%5C%22%22+AND+%22password%3A+changeme%22&type=issues&s=created&o=desc

(and this is how I found this issue)

@yldzmuhammed Your system is compromised.

Lucki commented 3 months ago

We currently don't have support for Steam inside a snap container, as you may already have guessed. Flatpak is possible though.

@MahouShoujoMivutilde Thanks for the heads-up :pray: