Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SERVER_ARGS not passing. #641

Open
prime001 opened this issue Sep 20, 2023 · 5 comments
Open

SERVER_ARGS not passing. #641

prime001 opened this issue Sep 20, 2023 · 5 comments

Comments

@prime001
Copy link

valheim-server line:112 need to update $SERVER_ARGS to "$SERVER_ARGS".

This fixed it for me! I couldn't get Crossplay to work because it wasn't passing the arguement.

@lloesche
Copy link
Owner

The problem with "$SERVER_ARGS" is that you can then only pass a single arg. Since everything inside the quotes is handled as one argument. The quotes are deliberately left out here so that you can pass more than one arg to the server. Ideally we'd use an array, but since these variables are coming from the environment that's not an option.

@prime001
Copy link
Author

prime001 commented Sep 25, 2023 via email

@blaklabz
Copy link

aye i have a question in the same vein, how do i pass multiple varriables is it server_args= "-preset blah1","-modifier blah1" or each has to have server_args=?

@blaklabz
Copy link

aye i have a question in the same vein, how do i pass multiple varriables is it server_args= "-preset blah1","-modifier blah1" or each has to have server_args=?

So figured this out, -e SERVER_ARGS="-modifier combat veryhard -modifier raids muchmore" just incase anyone else was trying to figure this out

@Pablizzo
Copy link

Sorry to revive this thread, but I seem to be having issues with multiple args in my .env file where only the crossplay & portals are being applied. Any help would be truly appreciated and thanks for the awesome write-up!

My file looks like
SERVER_NAME=Server
WORLD_NAME=World
SERVER_PASS=password
SERVER_PUBLIC=true
SERVER_ARGS=-crossplay -modifier Portals casual -modifier deathpenalty easy -modifier raids none -modifier Resources muchmore -modifier Combat easy
BEPINEX=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants