lloesche / valheim-server-docker

Valheim dedicated gameserver with automatic update, World backup, BepInEx and ValheimPlus mod support
https://hub.docker.com/r/lloesche/valheim-server
Apache License 2.0
1.94k stars 272 forks source link

How can make the server run on public test? #524

Closed NigelvanDuijvendijk closed 8 months ago

NigelvanDuijvendijk commented 1 year ago

I want to make the server run on the new public test, how can i do this?

NigelvanDuijvendijk commented 1 year ago

i already tried adding -beta public-test -betapassword "yesimadebackups" in download_valheim() in valheim-updater

bagvendt commented 1 year ago

It works for me by setting the environment variable like so:

STEAMCMD_ARGS="-validate -beta public-test -betapassword ****"

koosc commented 1 year ago

@bagvendt Does that work for you with the mistlands update? I had that previously and it worked fine but I currently see it crashing at start.

zuned11 commented 1 year ago

Going to chime in and mention that I don't use the docker-compose version, and this line in my /etc/sysconfig/valheim-config worked for me: STEAMCMD_ARGS=-beta public-test -betapassword yesimadebackups

bagvendt commented 1 year ago

@bagvendt Does that work for you with the mistlands update? I had that previously and it worked fine but I currently see it crashing at start.

Yes!

This starts a mistlands public-test server:

docker run -d \
    --name valheim-server \
    --cap-add=sys_nice \
    --stop-timeout 120 \
    -p 2456-2457:2456-2457/udp \
    -v $HOME/valheim/config:/config \
    -v $HOME/valheim/data:/opt/valheim \
    -e SERVER_NAME="foobar" \
    -e WORLD_NAME="test" \
    -e SERVER_PASS="foobar" \
    -e STEAMCMD_ARGS="-validate -beta public-test -betapassword *****" \
    lloesche/valheim-server

Replace **** with the real betapassword

lloesche commented 1 year ago

Hmm maybe we should just add a var like "PUBLIC_TEST=true" which adds those steamcmd args? Seems like it would be convenient.

koosc commented 1 year ago

The only downside to that is it would need to assume the test and passwords will always have the same value, although this could very well be true. I think the current way works well but should maybe have an explicit example in the documentation?

makarov-roman commented 1 year ago

How to figure out the current installed version?