Don't Starve Together

Don't Starve Together

96 ratings
Chat Binds
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
14.226 KB
8 May, 2017 @ 2:32am
8 May, 2017 @ 10:05am
2 Change Notes ( view )

Subscribe to download
Chat Binds

Description
This mod allows you to instantly send a chat message in just a press of a button.
Press 'Ctrl + Shift + F6' to toggle the mod on or off.

Edit your chat binds via the 'chatbinds.lua' file of this mod.
The file is located in the '...\mods\workshop-921637415' folder.

How to make your own chat binds:

Go to your Don't Starve Together game directory. It will usually be at '...\Steam\SteamApps\common\Don't Starve Together'.
If you have gotten the game during Closed Beta or Early-Access, then your game directory will be '...\Steam\SteamApps\common\Don't Starve Together Beta'.

Next, go to the 'mods' folder.


Then to the 'workshop-921637415' folder.


Then open the 'chatbinds.lua' file.


The file will have placeholder chat binds at first, but you can change, remove, and add your own chat binds.


You can go ahead and remove all the placeholder chat binds, but you can keep them if you want.


Now, onto making your own chat bind. Here's a template:

{ K, "This is an example of a sentence" ,"print", },
What this this does is make you send the message 'This is an example of a sentence' whenever you press the 'K' key on your keyboard.

Now, let's add a second chat bind:
{ K, "This is an example of a sentence" ,"print", }, { V, "My hunger is <hunger> over <maxhunger>" ,"print","whisper","shift" },
What this does is include your current hunger and max hunger in the message. So if you have 90 current hunger and 150 max hunger, then the chat message you will send is 'My hunger is 90 over 150'.
Also, notice that there are two more tags, "whisper" and "shift". The "whisper" tag means that your chat message is only whispered to nearby players instead of everyone on the server.
The "shift" tag means that hotkey to send the message becomes 'Shift + V' instead of just 'V'. If you add a "ctrl" tag too, then the hotkey becomes 'Ctrl + Shift + V'.

Now, let's add a third chat bind:
{ K, "This is an example of a sentence" ,"print", }, { V, "My hunger is <hunger> over <maxhunger>" ,"print","whisper","shift" }, { F8, {"I've got heads", "I've got tails", } ,"print", },
What this does is randomly choose which one of the messages will be sent. Upon pressing the 'F8' key, you have a 50% chance to say 'I've got heads' and a 50% chance to say 'I've got tails'. You can put as much messages as you like and they will all have an equal chance of being picked.

Now, 'chatbinds.lua' should look like this:


Hopefully, those examples are good enough of an explanation for how to make your own chat binds. It's very easy as long as you understand what goes where.

A list of available keys is located in the '...\mods\workshop-921637415\keys.lua' file.

There are more you can do with this mod though. Here is a list of how you can customise your chat binds:

Shortcut
Result
<health>
Your character's current health.
<maxhealth>
Your character's maximum health.
<me>
Your current in-game name.
<hunger>
Your character's current hunger.
<maxhunger>
Your character's maximum hunger..
<sanity>
Your character's current sanity.
<maxsanity>
Your character's maximum sanity.
<wetness>
Your character's current moisture.
<maxwetness>
Your character's maximum moisture.
<temperature>
Your character's current temperature.
<beaverness>
Your character's current beaverness.
<lasttarget>
The name of your most recent combat target.
<direction>
The direction that your camera is facing.
<mouse>
The name of the entity that your mouse is over.
<mouse_distance>
The distance in metres between your character and the entity under your mouse.
<nearestplayer>
The name of the player nearest to your character.
<nearestplayer_distance>
The distance between your character and the nearest player.
<nearestplayer_direction>
The direction of the nearest player from your character.

Tag
Effect
"whisper"
The message will be whispered to nearby players instead of being sent to everyone.
"shift"
Requires the 'Shift' key to be held down to send the message.
"ctrl"
Requires the 'Ctrl' key to be held down to send the message.
"ignoreshift"
Sends the message regardless whether the 'Shift' key is down or not.
"ignorectrl"
Sends the message regardless whether the 'Ctrl' key is down or not.
"print"
Also prints the message in your console as you send it to chat.
"private"
The message appears privately on your screen only.
"allownil"
Stops the default behaviour wherein your message does not get sent if one of the shortcuts returns nil.
"nonrandom"
Stops the default behaviour of randomly choosing messages from a table, and chooses each messages in sequence instead.
"nodelay"
Ignores the delay between sending each message. May cause severe connection issues if abused.
"shortdelay"
Shortens the delay between sending each message from one second to half a second.
Popular Discussions View All (2)
5
15 Sep, 2019 @ 11:00am
PINNED: Bug and Crash Reports
Chuck Angry Birds
2
15 Aug, 2017 @ 3:44pm
PINNED: Chat bind examples and templates
Chuck Angry Birds
46 Comments
Pandoranoss 31 Mar @ 9:34am 
I rewrote the text in the chatbinds, but now I instandly crash whenever I join a world with the mod. please, someone help me, I can't find the error!
Von Nix 21 Mar, 2022 @ 10:06am 
is there a way to use forge emotes? for some reason ensemble emotes seem to work, but not the forge ones
Kio 27 Nov, 2021 @ 1:23am 
Great mod, thanks.
I don't understand allownil, at what time does shortcut return nil?
Are you able to add "alt" tag? I prefer to use "alt" than "shift" since I can reach alt with my thumb.
Quartino 13 Apr, 2021 @ 11:40pm 
@DykeWithASpike I wouldn't think so, since it uses the chat function and not the console. However, you can use a text expander to accomplish the same thing. aText is a free one I use, and it's decent. They have both Mac and PC versions.
󰀁Red󰀁 13 Apr, 2021 @ 10:39pm 
Is it possible to bind a console command on this mod?
1_Pinchy_Maniac 27 Mar, 2021 @ 12:32pm 
i tried adding more commands and stuff and it keeps crashing the game whenever i activate the mod
Quartino 12 Oct, 2020 @ 12:55am 
I second what Chesmu wants. I am looking for a disable chat mod. There are times where I just need to get stuff done, and want to block out all the other chatter. Otherwise, this looks like a *great* mod, and I'm for sure going to check it out. Thanks!
Quirckey 3 Jun, 2020 @ 11:46am 
Can we use this mod to disable the chat completely?
Jake Compton 17 Nov, 2019 @ 8:15am 
Hello. Chat binding the quote "/rescue" does not seem to work. Instead it will just say "rescue". /rescue is a client command in normal gameplay that gets you unstuck from the void.
未知的动力 11 Oct, 2019 @ 8:00pm 
个人简单翻译 送给各位天朝的朋友

"whisper" 发送聊天内容给附近的玩家,而不是整个服务器所有人
"shift" 需要按住 "Shift" 键才能发送的消息
"ctrl" 需要按住 "Ctrl" 键才能发送的消息
"ignoreshift" 无论是否按住 "Shift" 键都能发送消息
"ignorectrl" 无论是否按住 "Ctrl" 键都能发送消息
"print" 发送聊天内容给全服务器所有人,并且会在控制台中发送该消息
"private" 仅在自己的屏幕上显示此条信息
"allownil" 停止默认行为,如果任何快捷语句发送函数执行返回值为0 ( 类似 NaN 判定 ) 都会停止发送消息 ( 我还没测试 不知道什么鬼 )
"nonrandom" 停止随机发送消息,改为按消息顺序进行发送
"nodelay" 忽略发送消息的延迟限制,需要注意,过于频繁会导致连接崩溃或者掉线
"shortdelay" 发送消息延迟 从一秒缩短到半秒