Startup Issue with Space Engineers - Space Engineer needs VC runtime

System Information

Field Value
Operating System Linux - Debian GNU/Linux 12 on x86_64
Product AMP ‘Phobos’ v2.6.0.6 (Mainline)
Virtualization Docker
Application Space Engineers
Module GenericModule
Running in Container Yes
Current State Failed

Problem Description

Issue

15:27:35
Redirecting stderr to ‘/home/amp/Steam/logs/stderr.txt’
Logging directory: ‘/home/amp/Steam/logs’
[ 0%] Checking for available updates…
[----] Verifying installation…
UpdateUI: skip show logoSteam Console Client (c) Valve Corporation - version 1733269577
– type ‘quit’ to exit –
15:27:36
Loading Steam API…OK
force_install_dir “298740”
15:27:37
Connecting anonymously to Steam Public…OK
15:27:38
Waiting for client config…OK
Waiting for user info…OK
@sSteamCmdForcePlatformType windows
@sSteamCmdForcePlatformType” = “windows”
app_update 298740 -beta public validate
Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
15:27:40
Update state (0x5) verifying install, progress: 0.15 (10485760 / 6897623876)
15:27:42
Update state (0x5) verifying install, progress: 9.17 (632628525 / 6897623876)
15:27:44
Update state (0x5) verifying install, progress: 18.83 (1298831545 / 6897623876)
15:27:46
Update state (0x5) verifying install, progress: 28.14 (1940838688 / 6897623876)
15:27:48
Update state (0x5) verifying install, progress: 37.59 (2592644382 / 6897623876)
15:27:50
Update state (0x5) verifying install, progress: 47.35 (3266168879 / 6897623876)
15:27:52
Update state (0x5) verifying install, progress: 56.11 (3870541636 / 6897623876)
15:27:54
Update state (0x5) verifying install, progress: 65.23 (4499035510 / 6897623876)
15:27:56
Update state (0x5) verifying install, progress: 75.13 (5182026374 / 6897623876)
15:27:58
Update state (0x5) verifying install, progress: 85.50 (5897526184 / 6897623876)
15:28:00
Update state (0x5) verifying install, progress: 95.25 (6570267624 / 6897623876)
15:28:02
Update state (0x61) downloading, progress: 2.79 (5103877 / 183077679)
15:28:04
Update state (0x61) downloading, progress: 6.91 (12650661 / 183077679)
15:28:06
Update state (0x61) downloading, progress: 23.44 (42912353 / 183077679)
15:28:08
Update state (0x61) downloading, progress: 80.14 (146721399 / 183077679)
15:28:09
IPC function call IClientAppManager::GetUpdateInfo took too long: 103 msec
Success! App ‘298740’ fully installed.
quit
15:28:10
bash15:28:30
wine: configuration in L"/AMP/space-engineers-generic/.wine" has been updated.
15:28:34
15:28:35
15:28:44
X connection to :0 broken (explicit kill or server shutdown).
X connection to :0 broken (explicit kill or server shutdown).
15:28:48
Console15:28:52
2025-01-20 20:28:52.074: App Version: 01_205_026
2025-01-20 20:28:52.116: Is official: True [NO][NIS][NAMP]
2025-01-20 20:28:52.117: Client Build Number: 0
2025-01-20 20:28:52.117: Server Build Number: 0
2025-01-20 20:28:52.117: Environment.ProcessorCount: 7
2025-01-20 20:28:52.121: Environment.OSVersion: Microsoft Windows 10 Pro (Microsoft Windows NT 6.2.9200.0)
2025-01-20 20:28:52.122: Environment.CommandLine: Z:\AMP\space-engineers-generic\298740\DedicatedServer64\SpaceEngineersDedicated.exe -noconsole -path /AMP/space-engineers-generic/298740/servers
2025-01-20 20:28:52.122: Environment.Is64BitProcess: True
2025-01-20 20:28:52.122: Environment.Is64BitOperatingSystem: True
2025-01-20 20:28:52.124: Environment.Version: Mono 6.13.0 (tarball)
2025-01-20 20:28:52.125: Environment.CurrentDirectory: Z:\AMP\space-engineers-generic\298740\DedicatedServer64
2025-01-20 20:28:52.125: CPU Info: QEMU Virtual CPU version 2.5+
Please install latest C++ redistributable package for 2015-2019 x64

Reproduction Steps

  • Setup new AMP instance
  • Install Space Engineers
  • It fails to start because of missing VC runtime

Same with Ubuntu. Solution?

Delete the wine prefix and update again

Do you mean the folder called .wine?

That’s right. See how you go

Did that, did not change the error. Going to try and reinstall.

EDIT:

Reinstall did not work

@Greelan

Could you make sure your docker images are up to date: docker pull -a

I do want to mention that my AMP install is brand new as of today type new.

root@amp:~# docker pull -a
"docker pull" requires exactly 1 argument.
See 'docker pull --help'.

Usage:  docker pull [OPTIONS] NAME[:TAG|@DIGEST]

Download an image from a registry

EDIT: Used ChadGPT to give me a command to update all images.

root@amp:~# docker images --format "{{.Repository}}:{{.Tag}}" | xargs -n 1 docker pull
wine8: Pulling from cubecoders/ampbase
Digest: sha256:ec140ec81611b8a651fb68104d33e72c5932734b6e6b73a3a2ecd8d34a2c1f1b
Status: Image is up to date for cubecoders/ampbase:wine8
docker.io/cubecoders/ampbase:wine8

Server start.
When it work server:
Environment.OSVersion: Microsoft Windows 11 Pro (Microsoft Windows NT 6.2.9200.0)
server not work:
Environment.OSVersion: Microsoft Windows 10 Pro (Microsoft Windows NT 6.2.9200.0)

Let me look at forcing the prefix to win11

Recently the template was changed to accommodate working with wine 9, which is what the docker image provides. Worked fine for Ice and me in testing

SE is generally a pita

I wonder if space engineers specifically require 2019-2015 instead of backwards compatibility from VC 2022? I’ve seen applications require it specifically on my day-to-day basis.

As I said, worked fine in testing. Also what Ptero/Pelican uses

Didn’t realize that, I thought they used win10. I guess everyone is moving to win11 :joy:

I meant that it uses vcrun2022

Their yolk and egg don’t specifically set in the windows version in the prefix either

Actually, I misremembered. I do already set win11 in the prefix (as does Ptero)

Maybe need to reset it after installing vcrun2022

Do you need to specifically set mono like they did?

It does all that. You can check out the script yourself on github

OK, I’ve narrowed it down to Winetricks not working properly in docker, even though the installed wine version is the same as I have on my host

When the instance is updated outside docker, the prefix is fine. When the prefix is deleted and updated inside docker, it is not

Looks like a bug in the latest Winetricks

Seeing this exact message in the log: Warning, fails to launch with WINEPREFIX and WINEARCH variables set after latest commits · Issue #2325 · Winetricks/winetricks · GitHub

Will looking changing the script to grab the previous release version of Winetricks