Don't Starve

Don't Starve

135 ratings
Better Console
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
24.047 KB
Aug 29, 2013 @ 4:38am
Jul 13, 2016 @ 8:51am
8 Change Notes ( view )

Subscribe to download
Better Console

Description
A few improvements to the console.

Note: This mod is mostly intended for mod developers. For information about the console, see:
http://dont-starve-game.wikia.com/wiki/Console

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
47 Comments
Master Pi Oct 12, 2023 @ 7:53pm 
HOW DO I OPEN IT???
Kelso Dec 28, 2021 @ 6:55am 
you guys should notice before posting that this hasnt been updated since 2016. Don't think posting in the comments is changing that.
Robie777 Dec 27, 2021 @ 11:19am 
console not showing suggestion keyword
ex: when type c_spawn(" <-- there is no suggestion show up
AidenZander Sep 21, 2021 @ 9:35am 
`~
MonsterSlayer Apr 6, 2020 @ 3:14pm 
How do u open it
*Yuki* Nov 29, 2016 @ 2:57am 
does it still work?
cez™ May 15, 2016 @ 1:13am 
Game crashes when trying to copy/paste something in.
Starving May 9, 2016 @ 7:16am 
How do you get back the last command you typed?
Moose Apr 13, 2016 @ 11:42am 
Very glitchy when clicking shift+tab while on console :l
At996 Mar 25, 2016 @ 9:16pm 
Below me the update Sea the day it fixed shipwrecked being mixed with RoG