How To: World Modifiers In Game - Works on Dedicated Servers w/ Mod
Hey Vikings,
I recently rehosted a server and quickly found there was no easy way to edit the world modifiers that recently came out in the Hildir patch. I did some research and it seems most people have been downloading their worlds to local, setting the modifiers, and then exporting and reuploading the files onto the server.
Well, fuck that.
After a bit of digging, I discovered you could modify all of these through devcommands on a local game but because I'm not hosting the server myself I was reduced to admin commands not allowing them to work there. Easy fix, [I just added this mod](https://valheim.thunderstore.io/package/JereKuusela/Server_devcommands/) which allowed admins to use devcommands.
Then I noticed no one had a list of the commands, and the devcommands responses in game for these values are bugged as hell showing all potential values for each modifier. Well, I did some testing and personally verified they change the values in live time. Here's the list:
​
|*World Modifier Slider*|*Menu Value*|*devcommand*| |:-|:-|:-| |Combat|Very Easy|setworldmodifier combat veryeasy| ||Easy|setworldmodifier combat easy| ||Normal|???| ||Hard|setworldmodifier combat hard| ||Very Hard|setworldmodifier combat veryhard| |Death Penalty|Casual|setworldmodifier deathpenalty casual| ||Very Easy|setworldmodifier deathpenalty veryeasy| ||Easy|setworldmodifier deathpenalty easy| ||Normal|???| ||Hard|setworldmodifier deathpenalty hard| ||Hardcore|setworldmodifier deathpenalty hardcore| |Resources|.5x|setworldmodifier resources muchless| ||.75x|setworldmodifier resources less| ||Normal|???| ||1.5x|setworldmodifier resources more| ||2x|setworldmodifier resources muchmore| ||3x|setworldmodifier resources most| |Raid Rate|None|setworldmodifier raids none| ||Much Less|setworldmodifier raids muchless| ||Less|setworldmodifier raids less| ||Normal|???| ||More|setworldmodifier raids more| ||Much More|setworldmodifier raids muchmore| |Portals|Portal Items|setworldmodifier portals casual| ||Normal|???| ||No Boss Portals|setworldmodifier portals hard| ||No Portals|setworldmodifier portals veryhard|
Some notes on my findings:
* For the life of me I cannot find the value for normal. It's not "normal", "default", or "reset" to set it back. * To reset all modifiers back to normal at once use the command "**setworldpreset default**" * Weird potential bug in the Death Penalty category: you can set "veryeasy" first, but if you go to another value and try to go back it either gives you an error or sets it to casual.
Then there are the bubbles at the bottom of the world modifier menu. These are actually "world keys" according to the dev commands. Here's that list too:
​
|*World Modifier Value*|*Menu Value*|*devcommand*| |:-|:-|:-| |No Build Cost|Enable|setkey nobuildcost| ||Disable|removekey nobuildcost| |Passive Enemies|Enable|setkey passivemobs| ||Disable|removekey passivemobs| |Player Based Raids|Enable|setkey playerevents| ||Disable|removekey playerevents| |No Map|Enable|setkey nomap| ||Disable|removekey nomap|
Hope this helps as an actual key for anyone else who got lost in Google for a while.