Jump to content

Recommended Posts

  • Developer

It's already possible on dedicated server using the adminlist.txt file located near the settings.txt. I don't know if it works on Hosted game.

You need to find the user ID of the player (Something like KU_?????) : (Code is Case Sensitive)

for k,v in pairs(AllPlayers) do print(v.name .. ": " .. v.userid) end

Then you add it at the end of the file and restart the server.   :-)

 

Edit: Thanks @rezecib

Link to comment
Share on other sites

One little error in the console command he gave, fixed:

for k,v in pairs(AllPlayers) do print(v.name .. ": " .. v.userid) end
Also, adminlist.txt should be here:

Documents/Klei/DoNotStarveTogether/save/adminlist.txt

You will have to create the file, though.

Link to comment
Share on other sites

Just wanted to pop in and add confirmation to info that seems to be unknown for sure at this time.

 

First Off: Admin on Non-Dedicated Server works 100%, just tested it with my friend, I was the client.

 

So if you are the host of the server, you can have your friend join, go to your documents/klei/dontstarvetogether folder and open up your log after your friend joins..

 

Scroll to the bottom, you will see his user ID near the bottom of the log assuming you open the log AFTER he joins. 

 

the user ID will be something like KU_slkdjfLIJF

 

Once you find this, the host of the server will simply copy it inside of the log

 

Now you go to documents/klei/dontstarvetogether/save

 

Here you will right click>New>Text document (Not Rich Text)

 

Name it adminlist

 

then just hit enter and open up the adminlist.txt file you just created

 

paste the KU_lkajsdfoiHJDLKFJ and then file>save

 

close out the game completely and reopen it, now go check your log again after the game has opened. Near the top you should see admin.txt loaded... (Success)

 

if you see this, then you know it will work.

 

Now just go reopen the same server, have your friend join and as long as he hits CTRL after he opens the console with "~" (You will see "Remote:" pop up when you hit ctrl

 

Now just type in any commands like normal.

 

Confirmed commands that work for client:

 

c_godmode()

c_give("prefab")

 

most likely everything works, just make sure remote is on everytime you type a command as the client

 

Thanks for all the info everyone else, glad this works for non-dedicated servers :D

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...