Don't Starve Together

Don't Starve Together

135 ratings
Better Console
File Size
0.028 MB
Nov 23, 2014 @ 12:41am
Jan 1, 2018 @ 1:17pm
10 Change Notes ( view )

Subscribe to download
Better Console

A few improvements to the console.

Note: This mod is mostly intended for mod developers. For information about the console, see:

Major features
  • Console log is scrollable
  • Console log no longer prints file/line number information (but log.txt still does)
  • Console keeps focus when you'd expect it to
  • Console doesn't close after each line entered
  • Added basic CTRL+A select all support (hitting backspace after CTRL+A will delete all the text)
  • Many general useability improvements, bugs that have been fixed, and small but useful tweaks

Minor features (the rest)
  • Console always runs the 'consolecommands' script when it is opened (no more having to do RunScript('consolecommands'))
  • Console log gets hidden whenever the console closes
  • Console history ignores consecutive duplicate lines
  • Console log has word wrap enabled
  • Fixed console history not properly resetting when you move up through the history and then back down to the start
  • Modified the c_select command so that it will set the debug entity to whatever is under the mouse if it is called with no parameter (default c_select requires a parameter)
  • Added c_nextday() command as a shortcut for GetClock():MakeNextDay()
  • Console will automatically print back the value of any variable you enter (for example, if you do 'test = 1' and then just 'test' it will print back '1')
  • If you use 'return' it will print back the value that is returned (for example, 'return GetPlayer()' would print something like '100009 - wilson'); basically return can be used as somewhat of an alias of print
  • Console prints back any command you give it
  • Console has a transparent black background
  • Console can print multiple return values
  • Console will auto-execute console commands (example: "c_nextday" would translate to "return c_nextday()")
  • If the first character of an inputted line is '=', then it will be translated to 'return ' (example: "=test" becomes "return test")
  • Better, more informative error handling for inputted lines

Things that are not currently possible with Lua:
  • Moving the text input cursor (for example, moving the cursor based on mouse clicks)
  • Any sort of real text selection
  • Copy/paste support

External Resources
< >
dλni Jan 11, 2020 @ 2:33am 
is it working?
TTV | IntrepidNeon Apr 18, 2019 @ 1:54pm 
Did you make squake?
RoastedCarrots Mar 5, 2019 @ 8:43pm 
cool feature might be a hotkey to bind which repeats last console command (eg delete under cursor)
[TDNsa] Wolverine do Apendice Mar 24, 2018 @ 3:21pm 
can i change season with this? In dst i mean
Aire Ayquaza Jan 1, 2018 @ 3:32am 
Hi ! Your mod crashed when i open the console in Don't Starve Together. The message is "Call to undefined method 'SetAllowClipboardPaste' in betterconsolescreen.lua line 250". So, I comment this line in your code, the mod is not crashing anymore but i can't type command in the console, the ENTER_KEY is not working and my typed command is not preccessed.

Can you fix that pls ?
Shade Apr 14, 2017 @ 6:41am 
The game instantly crashes upon opening the console.
MrAkai Nov 3, 2016 @ 5:31am 
game stop when i use it
天地一madao Oct 29, 2016 @ 8:19am 
version 164065 support copy/paste
without this features will be very very very inconvenient
:steamsad: :steamsad: :steamsad: :steamsad:
Anya~ Jul 3, 2016 @ 11:45am 
Also I noticed that the Github version seems to be diffrent from the Workshop version.
Anya~ Jul 3, 2016 @ 11:40am 
For everyone getting the error screenshoted by @Alex it's an easy fix use the workshop ID to find the mods files. Comment out line 250 in scripts/betterconsolescreen.lua as it has SetAllowClipboardPaste wich doesn't exsist as a command and errors out. I will attempt to look into this a bit deeper and see if there is a new command to allow clipboard pasting. For now this console will work just without "copy/paste" support.