VALHEIM COMMANDS-VERKTYG
Valheim Console Commands
Alla Valheim console-, admin- och cheat-kommandon i en sökbar lista, plus en spawn-builder som skriver det exakta kommandot med rätt prefab-ID. Kopiera och klistra in direkt i F5-konsolen.
Så öppnar du Valheim-konsolen
- Lägg till -console i launch options: högerklicka på Valheim i ditt Steam-bibliotek, öppna Properties och skriv det i fältet Launch Options.
- Starta spelet och tryck F5 för att öppna konsolen. Chatt- och admin-kommandon fungerar direkt.
- För cheat-kommandona skriver du devcommands och trycker Enter. Kör det igen för att stänga av cheats.
På en dedikerad server är cheat-kommandona avstängda. Att lägga in ditt SteamID64 eller crossplay-ID i adminlist.txt ger dig admin-kommandona (kick, ban, save, world modifiers), inte devcommands, som bara fungerar i single-player och i världar du själv hostar.
Spawn-builder
Level 1 är utan stjärnor, 2 är en stjärna, 3 är två stjärnor. Items bryr sig inte om det.
spawn GreydwarfRaid event-builder
Eikthyr rallies the creatures of the forest.
Boars and Necks
event army_eikthyrGlobal key-builder
Building costs no resources.
setkey NoBuildCostKommandoreferens
help [page] [pages]Lists the available commands. The optional arguments show one slice at a time, so "help 2 4" shows the second quarter.
infoPrints the current system information.
pingPings the server and prints your latency.
lodbias [number]Sets the draw distance, from 1 to 7.
nomapToggles map visibility. On a server this also toggles the nomap global key.
noportalsToggles portals. On a server this also toggles the noportals global key.
optterrainConverts terrain modifications made before update 0.150.3 in the nearby area to the new system.
resetsharedmapRemoves the shared map data from the cartography table.
printseedsPrints the seeds and positions of nearby dungeons.
bind [keycode] [command]Binds a command to a Unity keycode, for example "bind mouse4 cheer".
unbind [keycode]Clears every custom bind from a keycode.
printbindsPrints your current custom binds.
resetbindsRemoves all custom binds.
fov [number]Changes the field of view.
maxfps [fps]Sets the frame rate limit.
clearClears the console window.
crForces an unload of unused assets, which otherwise happens every 20 minutes.
dieKills your character.
respawnKills the character so you respawn.
resetspawnResets your spawn location.
resetknownitemsResets your known items and recipes.
resetplayerprefsResets saved settings and variables. The save game is not touched.
s [message]Shouts a chat message.
say [message]Says a chat message.
w [player] [message]Whispers a chat message to a player.
filtercraft [name]Filters the crafting list to entries containing the text.
sortcraft [type]Sorts the crafting list by Name, Type, Weight, Count or Original.
tutorialtoggleToggles whether tutorial messages are shown.
tutorialresetResets the tutorial messages you have already seen.
restartpartyRestarts the PlayFab party network, which is what crossplay sessions run on.
kick [name/ip/userID]Kicks the named player from the server.
ban [name/ip/userID]Bans the named player. The ban is written to bannedlist.txt.
unban [name/ip/userID]Removes a ban.
bannedPrints the full list of banned players.
saveForces the world to save right now.
setworldmodifier [name] [value]Sets a world modifier, for example "setworldmodifier portals casual". Modifier names are combat, deathpenalty, resources, raids and portals.
setworldpreset [name]Applies a world preset: normal, casual, easy, hard, hardcore, immersive or hammer.
resetworldkeysResets every world modifier back to default. Boss progression keys are not touched.
devcommandsTurns cheat commands on, and off again if you run it a second time. Singleplayer and locally hosted worlds only.
debugmodedevcommandsToggles debug mode, which adds the free-build and fly hotkeys: B free build, Z fly, K kill nearby enemies, L remove nearby drops.
goddevcommandsToggles god mode. Your health is held at 1 instead of dropping to 0.
ghostdevcommandsToggles ghost mode, so enemies ignore you.
flydevcommandsToggles fly mode. Space gains altitude, Ctrl loses it.
freeflydevcommandsToggles the free camera, which is the one to use for screenshots.
ffsmooth [0-1]devcommandsAdds smooth movement to the free camera. Run "ffsmooth 0" to go back to normal.
nocostdevcommandsToggles no cost mode, so building and crafting need no resources.
healdevcommandsRefills health, stamina and eitr.
pukedevcommandsClears your food, returning health and stamina to the base values.
addstatus [name]devcommandsAdds a status effect, for example Rested, Burning, Wet or SoftDeath.
clearstatusdevcommandsRemoves every status effect, good and bad.
killalldevcommandsKills nearby enemies and tamed creatures. Players are not affected.
killenemiesdevcommandsKills nearby enemies but leaves tamed creatures alone.
killtamedevcommandsKills nearby tamed creatures.
tamedevcommandsInstantly tames every tameable creature nearby.
aggravatedevcommandsAggravates neutral creatures within 20 meters.
removedropsdevcommandsRemoves all item drops in the area.
removebirdsdevcommandsRemoves all active birds.
removefishdevcommandsRemoves all active fish.
forcedelete [radius] [name]devcommandsRemoves objects within the radius, up to 50 meters. Players, tombstones, dungeons, Vegvisirs and the starting boss stones are never removed.
posdevcommandsPrints your current coordinates.
goto [x] [z]devcommandsTeleports you to the given world coordinates.
find [text] [pingmax]devcommandsFinds matching objects and pings them on the map.
findtp [text]devcommandsFinds matching objects and teleports you to the nearest one.
recall [name]devcommandsTeleports every player matching the name to you. Without a name it pulls in everyone.
raiseskill [skill] [amount]devcommandsRaises a skill by the amount. Use All for every skill, and put a minus in front of the value to lower it.
resetskill [skill]devcommandsSets a skill back to level 0. Use All to reset every skill.
resetcharacterdevcommandsResets all of your character data.
setpower [name]devcommandsSets your Forsaken power and clears its cooldown, for example GP_Eikthyr or GP_TheElder.
setfuel [value]devcommandsAdds fuel to every nearby fire source. The default is 10 and a negative value drains them.
beard [beard]devcommandsChanges your beard permanently. With no argument it removes the beard.
hair [hair]devcommandsChanges your hair permanently. With no argument it removes the hair.
model [0-1]devcommandsSwitches the character model between masculine and feminine.
players [number]devcommandsScales difficulty as if that many players were present. Use 0 to reset it.
dpsdebugdevcommandsToggles the damage per second debug print.
printcreaturesdevcommandsPrints the count and level of the active creatures.
printlocationsdevcommandsPrints the loaded locations with their distance and offset to you.
spawn [name] [amount] [level]devcommandsSpawns a prefab. Level applies to creatures only: 1 is no stars, 2 is one star, 3 is two stars.
itemset [name] [keep]devcommandsSpawns a premade gear set such as Meadows, Swamps, Mountains, Plains, Mistlands, MistlandsMage, Ashlands or Fisherman. Without the keep flag your current items are dropped.
location [name]devcommandsSpawns a location instance. This permanently disables saving for the session unless you add SAVE after the name.
genlocdevcommandsRedistributes every location that has not been placed yet.
nextseeddevcommandsRegenerates the next dungeon with a new seed. This permanently disables saving.
exploremapdevcommandsReveals the entire map.
resetmapdevcommandsHides the entire map again.
listkeysdevcommandsLists every global key currently set on the world.
setkey [name]devcommandsAdds a global key, which is how boss progress and world modifiers are stored.
removekey [name]devcommandsRemoves a single global key.
resetkeysdevcommandsRemoves all global keys. The name argument the console suggests does nothing.
event [name]devcommandsStarts the named raid event at your position.
stopeventdevcommandsStops the raid event that is running.
randomeventdevcommandsStarts a random raid event.
tod [0-1]devcommandsSets the time of day. 0 and 1 are midnight, 0.5 is noon, and -1 hands control back to the game.
skiptime [seconds]devcommandsSkips time forward, 240 seconds by default. Spawns, crops, smelters and kilns pause until the world time catches up.
sleepdevcommandsSkips forward one day.
timedevcommandsPrints the current time and whether sleeping is possible.
timescale [target] [fadetime]devcommandsSets the speed of time, up to 5x. A value of 0 pauses the game and free camera still works.
env [name]devcommandsForces a weather environment, for example Clear, Misty, Rain, ThunderStorm, SnowStorm, Ashrain, Bonemass or Moder.
resetenvdevcommandsHands the weather back to the game.
wind [angle] [intensity]devcommandsSets wind direction and strength. Angle is 0 to 360 and intensity is 0 to 1.
resetwinddevcommandsResets wind angle and intensity.