I’m trying to host a Valheim server but when I attempt to open the batch file it just doesn’t.
I’ve tried to force it to run in the Command Prompt by writing out the file string of where it is followed by .bat
and it gives me a Valheim_server.exe is not recognized as an internal or external command
error. what am I doing wrong? I know nothing about this. help.
C:Windowssystem32>Start C:UsersSaffyAppDataLocalLowIronGateValheimworlds_localPickles-Runbutton.bat
Here is what I wrote out. I’ve also tried it without the Start
at the front.
I’ve also tried with and without the path thingy at the front and back because I don’t know which order it’s supposed to go in just that there should be a semicolon. I seriously don’t even know how to write a reproducible example because I don’t even know why it’s not starting I just know I’ve typed a lot of things like:
C:UsersSaffyAppDataLocalLowIronGateValheimworlds_localPickles-Runbutton.bat;%USERPROFILE%AppDataLocalMicrosoftWindowsApps
and:
%USERPROFILE%AppDataLocalMicrosoftWindowsApps;C:UsersSaffyAppDataLocalLowIronGateValheimworlds_localPickles-Runbutton.bat
Contents of the batch file include the server name that I’m trying to run. In this case it’s called pickles
. It also includes the port forwarding number, (I’ve opened the specific port in both Windows Defender, and in my router settings), and lastly, it includes the server password.
I’ve checked the Valheim faq for it and everything seems to be in order there. In case that’s not enough though. I’ll paste the whole thing here.
@echo off
echo "Starting server PRESS CTRL-C to exit"
REM Tip: Make a local copy of this script to avoid it being overwritten by steam.
REM NOTE: Minimum password length is 5 characters & Password can't be in the server name.
REM NOTE: Crosssplay support is always enabled in the Xbox network version
ValheimServer.exe -nographics -batchmode -name "Pickles" -port 2456 -world "Pickles" -password "*****"
Yes the game is installed. It has it’s own game file, and the file in question is in a folder called worlds_local
.
Heaven Morton is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.