Don't Starve

Don't Starve

93 ratings
Better Console
 
Rate  
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
0.023 MB
Aug 29, 2013 @ 4:38am
Jul 13 @ 8:51am
8 Change Notes ( view )

Subscribe to download
Better Console

Subscribed
Unsubscribe
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
< >
43 Comments
cezarica May 15 @ 1:13am 
Game crashes when trying to copy/paste something in.
TheStarvingFriend May 9 @ 7:16am 
How do you get back the last command you typed?
Moose Apr 13 @ 11:42am 
Very glitchy when clicking shift+tab while on console :l
The Melon King! Mar 25 @ 9:16pm 
Below me the update Sea the day it fixed shipwrecked being mixed with RoG
POONpirate Mar 4 @ 11:24am 
To get this working for Shipwrecked just add these 3 lines to modinfo.lua
dont_starve_compatible = true
reign_of_giants_compatible = true
shipwrecked_compatible = true
azaya Feb 26 @ 2:00pm 
thank you so much, this is the most wonderful thing.
FranSauce Feb 17 @ 2:43pm 
Can you make it compatible with Shipwrecked DLC?
OTZ.Lucas Dec 15, 2015 @ 8:19am 
shipwrecked pls
rebecca.grace.lassiter Nov 23, 2015 @ 9:02am 
:dsham: so, im guessing it works
Arkathorn Oct 27, 2015 @ 4:25am 
This has been decadent for a while, but I want to point out that DST's console supports clipboard functionality.