Don't Starve

Don't Starve

75 ratings
Better Console
File Size
0.023 MB
Aug 29, 2013 @ 4:38am
May 31, 2014 @ 10:03pm
5 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
< >
Layarion Jun 29 @ 1:36pm 
strange, why wouldn't paste be possible? whatever thanks for the work
David (Canada) May 26 @ 12:00pm 
danavalos,please leave and go back to trolling on your "Curl Ahf Doody" Or whatever.
(mlg)Pootis medick Apr 25 @ 7:44am 
ha you suck CiNnaKicH XD
ĐJ - ÇĩŃňăĶöċҢ Apr 9 @ 5:26pm 
THANK YOU. Whenever I opened console I would have to restart because I couldn't see anything
aidan653 Mar 28 @ 7:36am 
It's actually the Tilde (~) key.
Red Dragon Mar 25 @ 11:06am 
@ KipHansKip
"i dont now why you guys need this"

Spawning items or monsters or changing game parameters or whatever. In DST I spawned a few hundred flint and put it into a few chests around the portal so newcomers don't have such a hard time finding flint for example.
madeline66 Mar 5 @ 6:57pm 
@Teejinator147, you click the tilda key (~).
KipHansKip Feb 27 @ 4:26pm 
i dont now why you guys need this
LegendJD Jan 17 @ 6:42pm 
Teejinator147 you click ~
Teejinator147 Nov 12, 2014 @ 7:18pm 
How do I open the console?