Don't Starve Together

Don't Starve Together

Achievements and Level System
Lavax  [developer] 12 Mar, 2020 @ 11:25am
Debug Commands
Remote Commands if you are the admin of the server.

AllPlayers[1].components.allachivcoin.coinamount = 200
AllPlayers[1].components.allachivevent:grantAll(AllPlayers[1])
AllPlayers[1].components.levelsystem:xpDoDelta(10000,AllPlayers[1])
Last edited by Lavax; 26 Mar, 2020 @ 5:22am
< >
Showing 1-15 of 20 comments
sergei.strizhak 20 Apr, 2020 @ 12:49am 
How to add a single perk with console?, & changind attrib (damage, speed) via console?
Last edited by sergei.strizhak; 20 Apr, 2020 @ 12:58am
江江鸡 20 Apr, 2020 @ 8:31am 
How can I give the achievement points to my teammate?The debug command only work for admin.
Lavax  [developer] 20 Apr, 2020 @ 8:41am 
Originally posted by 江江鸡:
How can I give the achievement points to my teammate?The debug command only work for admin.
You have to change the number (1) in AllPlayers[1] to the correct number. I think there are some help functions where you can input the player name and get a number back. Look in the KLEI forums
Lavax  [developer] 20 Apr, 2020 @ 8:46am 
Originally posted by sergei.strizhak:
How to add a single perk with console?, & changind attrib (damage, speed) via console?
Therefore you need to know the names of the perks. They can be found in the allachivcoin.lua.
For example:
AllPlayers[1].components.allachivcoin.lifestealupamount = 3
would set your lifesteal perk to 3 times purchased.

For level attributes it is: (levelsystem.lua)
AllPlayers[1].components.levelsystem.speedupamount = 2
would set your speed upgrades to 2
Last edited by Lavax; 20 Apr, 2020 @ 8:47am
江江鸡 21 Apr, 2020 @ 3:52am 
Originally posted by Lavax:
Originally posted by 江江鸡:
How can I give the achievement points to my teammate?The debug command only work for admin.
You have to change the number (1) in AllPlayers[1] to the correct number. I think there are some help functions where you can input the player name and get a number back. Look in the KLEI forums
Thanks for your answer, I've learned how to use the debug command to increase achievement points.
Kim 15 Aug, 2020 @ 9:56am 
Hi, I have a question. How to reset all the granted rewards?
Lavax  [developer] 23 Aug, 2020 @ 10:49pm 
There is a reset button
摸鱼先锋 6 Oct, 2020 @ 7:34am 
the commands don`t work i think...i can get points,but when i try to use them, the number of points will change just like before I used command
Last edited by 摸鱼先锋; 6 Oct, 2020 @ 7:35am
Lavax  [developer] 8 Oct, 2020 @ 12:50am 
when entering the commands the mode has to be remote not local (CTRL to switch). pasting code switches the mode.
摸鱼先锋 8 Oct, 2020 @ 2:51am 
Originally posted by Lavax:
when entering the commands the mode has to be remote not local (CTRL to switch). pasting code switches the mode.
wow,i don`t know that before,and thanks a lot for your help. XD
dano 29 Jan, 2021 @ 3:46pm 
I tried this command:
AllPlayers[1].components.allachivcoin.lifestealupamount = 3
on Remote console, but it does not work.
I am on hosted server. I am able to add coins but have not been able to do perks.

anybody has any luck with the console command?
Lavax  [developer] 29 Jan, 2021 @ 11:53pm 
The command works the UI is just not updating. If you hit the lifesteal button again it will update
dano 1 Mar, 2021 @ 7:56am 
Oh perfect. I see now. We use this mod in our hosted server Kronik and we love it.

I have another question. One player picked up a backpack that contained a lot of gems and she got achievements that she wanted to do herself. So is there a command to remove a particular achievement? For example. Remove Emerald from a player.

I see you use "grant" in "AllPlayers[1].components.allachivevent:grant" do you also have a revoke or remove? or is the app not designed like that?

Thanks

Lavax  [developer] 1 Mar, 2021 @ 1:42pm 
I did not create a remove function but the commands should be
AllPlayers[1].components.allachivevent.citrins = 0
AllPlayers[1].components.allachivevent.citrin = false
for yellow gems

amber for orange and emerald for green gems
MBM 29 May, 2021 @ 5:06pm 
My character is modded and can't sleep. I tried to add the Sweet Home achiev with the AllPlayers[1].components.allachivevent:grantAll(AllPlayers[1]), using sleeptent, Sleeptent, SleepTent, sweethome, Sweethome and I couldnt get it. Can you help me?
< >
Showing 1-15 of 20 comments
Per page: 1530 50