54 ratings
Better Console
Rate  
Favorite
Favorited
Unfavorite
File Size:
Posted:
Updated:
0.023 MB
Aug 29, 2013 @ 4:38am
May 31 @ 10:03pm
5 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
23 Comments
< >
BenDaMan May 23 @ 3:03pm 
btw i love this mod
BenDaMan May 23 @ 3:02pm 
@Seal Clubber 2 Electric Boogaloo this mod will in fact work with the DSRoG DLC
BenDaMan May 23 @ 2:57pm 
@Lain Claes you still have to type DebugSpawn or c_spawn but you dont have to type the parynthesis as the author @squeek. said in an earlier post
Lain Claes May 4 @ 3:39pm 
So with this mod, will I be able to just type "spawn pigman" instead of having to type in debugspawn("pigman") ?
jcassell Apr 12 @ 6:05pm 
the scary thing is i understand what all this code talk is...
Is this RoG compatible?
BlackBox Mar 12 @ 5:35am 
You're a top notch fellow. Thanks for this!! :)
darlenem1 Feb 22 @ 8:21pm 
wiki says to press the ~ to get the console up
darlenem1 Feb 22 @ 8:18pm 
I can't figure out how to open it.....
mikengo Feb 13 @ 7:17pm 
Worth it for scrolling.