New Instances Do Not Work

OS Name/Version: Windows Server 2022 Standard Core

Product Name/Version: AMP Release “Callisto” v2.5, built 15/03/2024 19:18

Problem Description: New Valheim instances always fail to run, tried several times. Looking into the instance logs I see this:

[22:09:21] [API:admin Activity]   : Starting the application.
[22:09:21] [Generic:admin Warning] : Tried to merge config file ./Valheim/896660/./BepInEx/config/valheim_plus.cfg but the file does not exist.
[22:09:21] [Generic:admin Warning] : Tried to merge config file ./Valheim/896660/./BepInEx/config/valheim_plus.cfg but the file does not exist.
[22:09:21] [Generic:admin Warning] : The application stopped unexpectedly. Exit code -1073741515

Almost like it’s a Valheim Plus server, it is not, I am not picking Valheim Plus from the server instance list (in-fact, Valheim Plus doesn’t even appear as an option anymore?) I just want a vanilla server.

Steps to reproduce:

  1. Just try and create a brand new Valheim instance in the latest AMP build, it always fails.

Actions taken to resolve so far:

  • Rebuilt the whole server, its a completely fresh install of AMP and Windows.

  • In the instance config, made sure nothing is configured under the Valheim Plus settings menus.

EDIT: Ok, all instances fail to start, Enshrouded and PalWorld as other examples, here’s their logs:

[10:31:24] [API:admin Activity]   : Starting the application.
[10:31:24] [Generic:admin Info]   : Merging config file ./palworld/2394010/Pal/Saved/Config/WindowsServer/PalWorldSettings.ini (Template) using Unicode (UTF-8) encoding.
[10:31:24] [Generic:admin Info]   : Merging config file ./palworld/2394010/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini (Template) using Unicode (UTF-8) encoding.
[10:31:24] [Generic:admin Warning] : The application stopped unexpectedly. Exit code -1073741515
[10:15:36] [API:admin Activity]   : Starting the application.
[10:15:36] [Generic:admin Info]   : Merging config file ./enshrouded/2278520/enshrouded_server.json (JSON format) using Unicode (UTF-8) encoding.
[10:15:37] [Generic:admin Warning] : The application stopped unexpectedly. Exit code -1073741515

Exit code -1073741515 is the common theme here, am I being blind, is Google search failing me, but I cannot find much on this exit code out there?

Probably missing C++ Redistributable and DirectX runtime dependencies

C++ runtimes were all installed, Mike pointed me to the DirectX route in Discord and yeah, as it turns out, Windows Server 2022 Core doesn’t seem to have DirectX fully installed and no way to do it either, I just converted the server to the normal Desktop Experience and we’re golden now.

This can be closed, sorry for wasting everyone’s time. Any chance this error Exit code can be added to a library somewhere that just says "missing C++ or DirectX runtimes, I guess Google will index this ticket I suppose for anyone else looking for this exact error message.

There is a way to install the runtime without using the web installer

Yeah I came across a couple of articles on it, you can extract the runtime, tried that, didn’t want to install properly, just errored midway through install, it’s honestly fine, if Desktop Experience mode is required to get DirectX to work properly, so be it. The VM has 32GB of RAM assigned to it so i’m sure it’ll be fine to run a Valheim, Enshrouded, PalWorld and Modded Minecraft server on it.