Skip to content

Commit

Permalink
feat(vhserver): enable crossplay support (#4544)
Browse files Browse the repository at this point in the history
* Install valheim dependencies for crossplay on Ubuntu

* Setup minimal required dependencies for valheim crossplay

* will set crossplay to default on and add instance id

* add ubuntu 24.04

---------

Co-authored-by: Daniel Gibbs <[email protected]>
  • Loading branch information
glowacki-dev and dgibbs64 authored May 22, 2024
1 parent c662a83 commit a2bea8d
Show file tree
Hide file tree
Showing 22 changed files with 23 additions and 25 deletions.
6 changes: 2 additions & 4 deletions lgsm/config-default/config-lgsm/vhserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ saveinterval="1800"
backups="4"
backupshort="7200"
backuplong="43200"
# If crossplay is empty, it's off. Fill with any text to make true
# Crossplay is currently not working on Linux dedicated servers, so for now the default is false (empty)
crossplay=""
instanceid="1"

# INSTRUCTIONS FOR WORLD MODIFIERS (from Valheim Dedicated Server Manual.pdf located in serverfiles)
# World modifiers can only be set in the start parameters and can be a combination of the following
Expand Down Expand Up @@ -53,7 +51,7 @@ crossplay=""
worldmodifiers=""

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
startparameters="-name '${servername}' -password ${serverpassword} -port ${port} -world ${worldname} -public ${public} -savedir '${savedir}' -saveinterval ${saveinterval} -backups ${backups} -backupshort ${backupshort} -backuplong ${backuplong}${logFile:+ -logFile '${logFile}'}${crossplay:+ -crossplay}${worldmodifiers:+ ${worldmodifiers}}"
startparameters="-name '${servername}' -password ${serverpassword} -port ${port} -world ${worldname} -public ${public} -savedir '${savedir}' -saveinterval ${saveinterval} -backups ${backups} -backupshort ${backupshort} -backuplong ${backuplong} -crossplay -instanceid ${instanceid} ${logFile:+ -logFile '${logFile}'} ${worldmodifiers:+ ${worldmodifiers}}"

#### LinuxGSM Settings ####

Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/almalinux-8.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ut
ut2k4
ut3
ut99
vh,glibc-devel
vh,glibc-devel,libatomic,pulseaudio-libs-devel
vints,aspnetcore-runtime-7.0
vpmc,java-21-openjdk
vs
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/almalinux-9.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ut
ut2k4
ut3
ut99
vh,glibc-devel
vh,glibc-devel,libatomic,pulseaudio-libs-devel
vints,aspnetcore-runtime-7.0
vpmc,java-21-openjdk
vs
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/centos-7.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ut
ut2k4
ut3
ut99
vh,glibc-devel
vh,glibc-devel,libatomic,pulseaudio-libs-devel
vints,aspnetcore-runtime-7.0
vpmc,java-11-openjdk
vs
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/centos-8.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ut
ut2k4
ut3
ut99
vh,glibc-devel
vh,glibc-devel,libatomic,pulseaudio-libs-devel
vints,aspnetcore-runtime-7.0
vpmc,java-17-openjdk
vs
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/centos-9.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ut
ut2k4
ut3
ut99
vh,glibc-devel
vh,glibc-devel,libatomic,pulseaudio-libs-devel
vints,aspnetcore-runtime-7.0
vpmc,java-17-openjdk
vs
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/debian-10.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ut
ut2k4
ut3
ut99
vh,libc6-dev
vh,libc6-dev,libatomic1,libpulse-dev
vints,aspnetcore-runtime-7.0
vpmc,openjdk-11-jre
vs
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/debian-11.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ut
ut2k4
ut3
ut99
vh,libc6-dev
vh,libc6-dev,libatomic1,libpulse-dev
vints,aspnetcore-runtime-7.0
vpmc,openjdk-11-jre
vs
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/debian-12.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ut
ut2k4
ut3
ut99
vh,libc6-dev
vh,libc6-dev,libatomic1,libpulse-dev
vints,aspnetcore-runtime-7.0
vpmc,openjdk-17-jre
vs
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/debian-9.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ut
ut2k4
ut3
ut99
vh,libc6-dev
vh,libc6-dev,libatomic1,libpulse-dev
vints,aspnetcore-runtime-7.0
vpmc,openjdk-8-jre
vs
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/rhel-7.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ut
ut2k4
ut3
ut99
vh,glibc-devel
vh,glibc-devel,libatomic,pulseaudio-libs-devel
vints,aspnetcore-runtime-7.0
vpmc,java-11-openjdk
vs
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/rhel-8.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ut
ut2k4
ut3
ut99
vh,glibc-devel
vh,glibc-devel,libatomic,pulseaudio-libs-devel
vints,aspnetcore-runtime-7.0
vpmc,java-21-openjdk
vs
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/rhel-9.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ut
ut2k4
ut3
ut99
vh,glibc-devel
vh,glibc-devel,libatomic,pulseaudio-libs-devel
vints,aspnetcore-runtime-7.0
vpmc,java-21-openjdk
vs
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/rocky-8.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ut
ut2k4
ut3
ut99
vh,glibc-devel
vh,glibc-devel,libatomic,pulseaudio-libs-devel
vints,aspnetcore-runtime-7.0
vpmc,java-21-openjdk
vs
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/rocky-9.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ut
ut2k4
ut3
ut99
vh,glibc-devel
vh,glibc-devel,libatomic,pulseaudio-libs-devel
vints,aspnetcore-runtime-7.0
vpmc,java-21-openjdk
vs
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/ubuntu-16.04.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ut
ut2k4
ut3
ut99
vh,libc6-dev
vh,libc6-dev,libatomic1,libpulse-dev
vints,aspnetcore-runtime-7.0
vpmc,openjdk-8-jre
vs
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/ubuntu-18.04.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ut
ut2k4
ut3
ut99
vh,libc6-dev
vh,libc6-dev,libatomic1,libpulse-dev
vints,aspnetcore-runtime-7.0
vpmc,openjdk-11-jre
vs
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/ubuntu-20.04.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ut
ut2k4
ut3
ut99
vh,libc6-dev
vh,libc6-dev,libatomic1,libpulse-dev
vints,aspnetcore-runtime-7.0
vpmc,openjdk-11-jre
vs
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/ubuntu-22.04.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ut
ut2k4
ut3
ut99
vh,libc6-dev
vh,libc6-dev,libatomic1,libpulse-dev
vints,aspnetcore-runtime-7.0
vpmc,openjdk-21-jre
vs
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/ubuntu-23.04.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ut
ut2k4
ut3
ut99
vh,libc6-dev
vh,libc6-dev,libatomic1,libpulse-dev
vints,aspnetcore-runtime-7.0
vpmc,openjdk-21-jre
vs
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/ubuntu-23.10.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ut
ut2k4
ut3
ut99
vh,libc6-dev
vh,libc6-dev,libatomic1,libpulse-dev
vints,aspnetcore-runtime-7.0
vpmc,openjdk-21-jre
vs
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/ubuntu-24.04.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ut
ut2k4
ut3
ut99
vh,libc6-dev
vh,libc6-dev,libatomic1,libpulse-dev
vints,aspnetcore-runtime-7.0
vpmc,openjdk-21-jre
vs
Expand Down

0 comments on commit a2bea8d

Please sign in to comment.