Skip to content

Commit 35a535b

Browse files
rainstdgibbs64
andauthored
feat(vh): add an additional config string for valheim world modifiers (#4341)
* feat(vhserver): added additional config string for valheim world modifiers * added instructions on how modifiers are stored in the save files and how to go back to default * small typo --------- Co-authored-by: Daniel Gibbs <[email protected]>
1 parent c0742b2 commit 35a535b

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

lgsm/config-default/config-lgsm/vhserver/_default.cfg

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,38 @@ backups="4"
2222
backupshort="7200"
2323
backuplong="43200"
2424
# If crossplay is empty, it's off. Fill with any text to make true
25-
# Crossplay is currently not working on Linux dedicated servers, so for now the default is false (emtpy)
25+
# Crossplay is currently not working on Linux dedicated servers, so for now the default is false (empty)
2626
crossplay=""
2727

28+
# INSTRUCTIONS FOR WORLD MODIFIERS (from Valheim Dedicated Server Manual.pdf located in serverfiles)
29+
# World modifiers can only be set in the start parameters and can be a combination of the following
30+
# PRESETS:
31+
# Setting a preset will overwrite any other previous modifiers.
32+
# Command line parameter: -preset
33+
# Valid values: normal, casual, easy, hard, hardcore, immersive, hammer.
34+
# MODIFIERS:
35+
# This is set as a combination of key and value, if combined with a preset should be set after.
36+
# Command line parameter: -modifier
37+
# Valid keys and possible values:
38+
# combat: veryeasy, easy, hard, veryhard
39+
# deathPenalty: casual, veryeasy, easy, hard, hardcore
40+
# resources: muchless, less, more, muchmore, most
41+
# raids: none, muchless, less, more, muchmore
42+
# portals: casual, hard, veryhard
43+
# KEYS:
44+
# Sets a world modifier checkbox key.
45+
# Command line parameter: -setkey
46+
# Valid values: nobuildcost, playerevents, passivemobs, nomap
47+
# Example of a combination of modifiers where we set no raids, very hard portals and no map run:
48+
# worldmodifiers="-modifier raids none -modifier portals veryhard -setkey nomap"
49+
# NOTE: removing world modifiers will NOT reset them to default. the modifiers are stored in the world save file (.fwl)
50+
# To go back to default you need to launch the server with the following parameter at least once:
51+
#. worldmodifiers="-preset normal"
52+
53+
worldmodifiers=""
54+
2855
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
29-
startparameters="-name '${servername}' -password ${serverpassword} -port ${port} -world ${worldname} -public ${public} -savedir '${savedir}' -logFile '${logFile}' -saveinterval ${saveinterval} -backups ${backups} -backupshort ${backupshort} -backuplong ${backuplong} ${crossplay:+-crossplay}"
56+
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}}"
3057

3158
#### LinuxGSM Settings ####
3259

0 commit comments

Comments
 (0)