Enable Console without Steam
I launch my game with a mod manager (r2modman) and I can't seem to figure out how to enable the console. I know how to do it within Steam but since this isn't being launched directly by Steam that command in Steam Launch Options doesn't get passed. Is there a file I can adjust? Boot Config? Any help would be greatly appreciated as I'll need console to manage my dedicated server.
11:13 pm, July 10, 2021
burn replied to Enable Console without Steam July 13, 2021 @ 1:17:08 pm PDT
using a mod called SKToolBox, you can use the console anywhere and everywhere no matter if you are the admin or nah. dedicated server or nah, still works.
11:13 pm, July 13, 2021
0 comments
0 likes
luponix replied to Enable Console without Steam July 13, 2021 @ 2:30:47 pm PDT
its also a dream for builders
11:13 pm, July 13, 2021
0 comments
0 likes
(LINUX) Hot Sick replied to Enable Console without Steam July 13, 2021 @ 2:53:57 pm PDT
Admin tools are pretty limited; not sure how you'd catch someone just flying over the oceans and spawning whatever they wanted unless you saw them doing it in-game. any griefer will be subject to scrutinization by a "good" admin who is doing their job.
Have very trustworthy friends, I guess? Public servers tho...
Yeah, nice tool for admins. If only you could restrict its use. it's a good tool for admins to have access to, honestly. until we get some extended functionality to the current "vanilla" admin tools, this mod is a life saver.
11:13 pm, July 13, 2021
0 comments
0 likes
(LINUX) Hot Sick replied to Enable Console without Steam July 13, 2021 @ 12:46:37 pm PDT
Be advised that "devcommands" / cheats cannot be used by a client connected to a dedicated server, even if your listed as a server admin and have the console enabled for your game client.
FALSE
Okay. Calm down.
I attempted this scenario once (couple months ago?) to restore some items. A friends client crashed while carrying a bunch of stuff to a new base and the character file didn't get saved.
My client was already set up as admin of the server, which was running the valheim_server.x86_64 binary (not the game client binary running as host), and the 'spawn' commands all failed, as well as a few others I tested. After a few internet searches, I found multiple sources confirming that "devcommands" do not work with the dedicated server.
I then copied and tried hosting the same world from the game client (valheim.x86_64 binary), with the same clients/friends connected and the 'spawn' commands did work from the host as expected.
From my own experience, and confirmed by others, my statement seemed to be true.
Are you able to clarify this? Preferably without screaming in caps ; )
8:13 pm, July 13, 2021
0 comments
0 likes
(LINUX) Hot Sick replied to Enable Console without Steam July 13, 2021 @ 1:02:31 pm PDT
I'll add a few cursory sources I found that claim to confirm this
Maybe this changed recently and I missed it?
these commands do not work on servers. only single player. even if you are an admin of said server.
As other people have said, devcommands do not currently work on dedicated servers.- Reddit thread
Depending on what you are trying to achieve, you can download the world files from your server ( make sure you stop the service first) to your PC's valheim world folder, and start up the same world in non-server mode and do whatever you wanted to do from the console ( spawn in mobs, build in creative mode etc...) and then exit that game, and transfer the world files back to your dedicated server, and re-start the service on the server.
Quite a faff, but depends what you need to do an why, as to whether it is worth if for you.
I have seen a Dev comment, that they were not expecting dedicated servers to be so popular, so they haven't implemented features like devcommands. That may change however given how popular hosted servers have proven to be...(and obviously no timescales for when they may implement those features)
Cannot Be Used on Dedicated Servers.- game8.co article[game8.co]
Cheat console commands cannot be used on a dedicated server. Even when playing in single-player, if you join a dedicated server using the Join IP option, you won't be able to use the cheat console commands.
Once in the game, to activate cheats, type devcommands and press enter (previously, the command was 'imacheater' but that has changed). Then you'll be able to use the following cheats in singleplayer mode. They won't work on a multiplayer server.- PC Gamer article
Maybe this changed recently and I missed it?
8:13 pm, July 13, 2021
0 comments
0 likes
(LINUX) Hot Sick replied to Enable Console without Steam July 13, 2021 @ 5:39:23 am PDT
Never used r2modman, but all you're doing is adding an 'argument' to the execution of a program. Some launchers may have a separate field for program arguments, to which you would just add
Linux:
Server package includes a bash script / batch file (depending on OS) which you can edit to as needed, or if you like typing, you could run it from a terminal like this
If your using Bepinex (assuming you're modding), the package includes modified bash scripts for the game client and server, which you should use, editing as needed.
The console is a GUI client function, and not included in the argument list when launching a server. In order to admin the server from the client console, you'll need to add yourself to the adminlist.txt. Plenty of guides out there for that.
Be advised that "devcommands" / cheats cannot be used by a client connected to a dedicated server, even if your listed as a server admin and have the console enabled for your game client.
-console
others might just have you suffix it to the program name. Same as if you were running it from a terminal.Linux:
valheim.x86_64 -console
Windows:valheim.exe -console
Server package includes a bash script / batch file (depending on OS) which you can edit to as needed, or if you like typing, you could run it from a terminal like this
valheim_server.x86_64 -name "Server Name" -port 2456 -world "World Name" -password "your password"
If your using Bepinex (assuming you're modding), the package includes modified bash scripts for the game client and server, which you should use, editing as needed.
The console is a GUI client function, and not included in the argument list when launching a server. In order to admin the server from the client console, you'll need to add yourself to the adminlist.txt. Plenty of guides out there for that.
Be advised that "devcommands" / cheats cannot be used by a client connected to a dedicated server, even if your listed as a server admin and have the console enabled for your game client.
2:13 pm, July 13, 2021
0 comments
0 likes
burn replied to Enable Console without Steam July 13, 2021 @ 6:41:53 am PDT
Be advised that "devcommands" / cheats cannot be used by a client connected to a dedicated server, even if your listed as a server admin and have the console enabled for your game client.
FALSE
2:13 pm, July 13, 2021
0 comments
0 likes