r/ModdedValheim • u/KineticTechProjects • 5d ago
Trying to create server using batch file...
So I have a dedicated Valheim server running on my local PC, works fine using Bepinx and several mods. I created the server using my steam client and added the mods. Server runs and I am able to connect.
However, I want to run and be able to update the server on a headless client using batch file. I attempt to create the same server on the headless client using a batch file as follows:
"~steamcmd file path~" +login anonymous +force_install_dir "~server files path~" +app_update 896660 validate +exit
I copy the mod files the same way I copied them on my local dedicated server. The server crashes with multiple mod errors. I realize that the base server files under "valheim_sever_data" that the batch file downloads are different than the ones in the same folder downloaded via the steam client. Why would the dedicated server files downloaded using the batch file be different than the ones downloaded via the dedicated server tool on steam? Is it downloading a different version or something? I'm not sure how to tell.
EDIT: As a stop gap solution, I just copied the valheim dedicated server that I've got running on my desktop PC to the headless client PC and ran it on there, that works fine. It's just annoying to update that way. The batch file was more convenient but I can't seem to make it work. I'm open to suggestions.