Don't Starve Together

Don't Starve Together

146 ratings
Better Console
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
29.367 KB
Nov 23, 2014 @ 12:41am
Jan 1, 2018 @ 1:17pm
10 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
40 Comments
Nova Nov 24, 2022 @ 8:54am 
Hi. I'm Saul Goodman. Did you know that you have rights? The Constitution says you do. And so do I. I believe that until proven guilty, every man, woman, and child in this country is innocent. And that's why I fight for you, Albuquerque! Better call Saul. Saul Goodman, attorney at law.
DraskHunter Nov 10, 2022 @ 10:00am 
butter cool saul :steamthumbsup:
Tarchun Oct 31, 2022 @ 10:22am 
better call Saul
dλni Jan 11, 2020 @ 2:33am 
is it working?
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] A gorda da sua mãe 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