How to Enable Console Commands in Valheim Multiplayer
Fast answer first. Then use the tabs or video for more detail.
- Watch the video explanation below for a faster overview.
- Game mechanics may change with updates or patches.
- Use this block to get the short answer without scrolling the whole page.
- Read the FAQ section if the article has one.
- Use the table of contents to jump straight to the detailed section you need.
- Watch the video first, then skim the article for specifics.
Enabling console commands in Valheim multiplayer is a game-changer, granting admins powerful tools to manage their servers, enhance gameplay, and even troubleshoot issues. While the base game restricts these commands to single-player, there are methods to bring the console to your multiplayer adventures. This article provides a comprehensive guide on how to enable console commands in Valheim multiplayer, along with answers to frequently asked questions to help you navigate this process smoothly.
The core solution to enable console commands in Valheim multiplayer involves a combination of server-side configurations and, in most cases, a plugin. Here’s a breakdown of the process:
- Become an Admin: You must be an admin on the Valheim server to use console commands. This is typically achieved by adding your SteamID64 to the adminlist.txt file in your server’s root directory. You will find your SteamID64 on sites like steamid.io or by checking your Steam profile URL.
- Enable the Console: In order to access the console in Valheim at all, you need to launch the game with the
-consolelaunch option in Steam. To do this, right-click on Valheim in your Steam library, go to “Properties,” then under the “General” tab, find the “Launch Options” and add-consoleto the field. - Install Server-Side Plugins (Recommended): While adding yourself to the adminlist.txt will give you some basic commands, full control, including access to cheats such as god mode, spawn items and flying, typically requires a server plugin such as BepInEx. This is by far the most common solution for enabling advanced console commands on multiplayer Valheim servers. BepInEx is a modding framework for Unity games, and comes with several companion plugins such as Server Devcommands, which is what most people use to enable these advanced commands. After installing BepInEx you need to place the plugins (.dll files) into the BepInEx/plugins folder. Make sure to follow the instructions for each plugin, as some may need specific configurations or dependencies.
- Activate Commands: Once you have taken all of these steps, launch the game, connect to your server, and press F5 to bring up the console. Type devcommands into the console and hit enter. If everything is set up correctly, you will see the message “Cheats: True.” You are now ready to use any of the available console commands.
Admin Commands, Player Commands and Cheat Commands
Valheim console commands can be categorized into different types:
Admin Commands
These are primarily used by server administrators to manage the server and are typically only accessible to admins or those listed on the adminlist. These can include things like saving the game, kicking users, and banning people from the server.
Player Commands
These commands are often used by regular players for convenience and include commands like teleportation or revealing the map.
Cheat Commands
These are the most common requests. Cheat commands enable a variety of effects, including access to god mode, item spawning, flying, and other similar gameplay manipulation options.
Frequently Asked Questions (FAQs)
Here are some commonly asked questions that will help you troubleshoot and understand console command usage in Valheim multiplayer:
1. Can regular players use console commands on a Valheim server?
No, typically only server admins can use console commands. Regular players can sometimes make use of player commands, depending on the specific plugins that are being used, but most of the more interesting commands are restricted to admins.
2. How do I become an admin on my Valheim server?
To become an admin, you must add your SteamID64 to the adminlist.txt file in your server’s root directory. Each SteamID64 should be on its own line. Once added, restart the server for the changes to take effect. You can find your SteamID64 by looking up your Steam profile URL, for example via the site steamid.io.
3. Why are my Valheim console commands not working?
If your console commands are not working, double-check these common issues:
- Ensure you have launched Valheim with the
-consolelaunch option in Steam. - Confirm that you have typed devcommands correctly in the console after pressing F5.
- Make sure you are an admin on the server.
- If using plugins, ensure they are correctly installed and configured.
- Verify that the server has been restarted after any configuration changes.
4. Is a server plugin like BepInEx required for enabling console commands?
For basic server commands like kicking users, BepInEx is not required. However, for advanced console commands such as those for item spawning, god mode, flying, and other cheats, plugins such as BepInEx and Server Devcommands are generally required.
5. Can I use console commands in Valheim without Steam?
To use the console in Valheim, the game needs to be launched via Steam using the -console launch option. There isn’t a method to get the console to work without using Steam.
6. How do I add -console to Valheim launch options?
In Steam, right-click on Valheim, go to “Properties,” then under the “General” tab, find “Launch Options” and add -console to the text box.
7. What are some common Valheim console commands?
Some common commands include:
help: Displays all available commands.god: Enables god mode.fly: Enables flying mode.spawn [item] [quantity] [level]: Spawns items.killall: Kills all nearby creatures.kick [playername]: Kicks a player from the server.ban [playername/ip/steamid]: Bans a player from the server.save: Manually saves the game world.exploremap: Reveals the entire world map.
8. How do I spawn items using console commands?
Use the command spawn [item] [quantity] [level]. For example, spawn Coins 50 1 will give you 50 coins at level 1. Be sure to type the name of the item as it is written in the game’s code, which may be different from the way it’s written in the crafting menu.
9. How do I get rid of operator status (deop)?
In most cases, server operators are configured through an admin list file rather than directly from inside the game. To remove someone from the operator list, find the adminlist.txt in the root folder of the server and remove the SteamID64 of the player you want to deop.
10. Does difficulty change in Valheim multiplayer with multiple players?
Yes, the difficulty of Valheim increases as more players join the server. Enemy health, damage, and numbers tend to scale with the amount of players. It is generally recommended to play with a group of 3-5 people.
11. Can my friends play on my Valheim server when I am not online?
Yes, if you are using a dedicated server, your friends can play even when you are not online. However, if you are using a local server via “Start LAN World,” the server will only be active while you are hosting it.
12. Are Valheim multiplayer servers free?
Hosting a dedicated server is not free as you need to have a computer which can handle the resources necessary to run the server. You can choose to host the server on your own machine or pay for a hosting service. Playing on a server owned by someone else is free.
13. What is the difference between a LAN world and a dedicated server?
A LAN world is a server hosted on one of the player’s machines, and is only active while the host is playing. A dedicated server is hosted separately and runs independently, allowing players to join at any time, even when the server owner isn’t online. Dedicated servers are often hosted by server providers.
14. How do I enable cheats on an existing world?
You cannot enable cheats on an existing world that was made on a dedicated server. If you created the world in single-player mode you can enable them by pressing Esc, then selecting “Open to LAN” and making sure “Allow Cheats” is set to ON before selecting “Start LAN World”.
15. How can I update my Valheim dedicated server?
Update your Valheim dedicated server by going to your Steam library, selecting the Valheim Dedicated Server app, and selecting the option to update or by setting automatic updates in your server provider panel. Be sure to shut down your server before attempting to update and make a backup if it is a server you want to keep around.
Enabling console commands in Valheim multiplayer opens up a wide array of possibilities for server management and gameplay customization. By following these steps and understanding common issues, you can take full advantage of Valheim’s console commands and create a fun and engaging multiplayer experience. Always exercise caution when using cheat commands and be aware of the effects on your overall game experience.