Don't Starve Together

Don't Starve Together

95 ratings
Better Console
 
Rate  
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
0.028 MB
Nov 23, 2014 @ 12:41am
Jan 1 @ 1:17pm
10 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
< >
35 Comments
A gorda da sua mae Mar 24 @ 3:21pm 
can i change season with this? In dst i mean
Aire Ayquaza Jan 1 @ 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.
mr0794 Nov 3, 2016 @ 5:31am 
game stop when i use it
天地一madao Oct 29, 2016 @ 8:19am 
version 164065 support copy/paste
without this features will be very very very inconvenient
:steamsad: :steamsad: :steamsad: :steamsad:
Nano Jul 3, 2016 @ 11:45am 
Also I noticed that the Github version seems to be diffrent from the Workshop version.
Nano Jul 3, 2016 @ 11:40am 
For everyone getting the error screenshoted by @Alex http://imgur.com/L1v0lO5 it's an easy fix use the workshop ID to find the mods files. Comment out line 250 in scripts/betterconsolescreen.lua as it has SetAllowClipboardPaste wich doesn't exsist as a command and errors out. I will attempt to look into this a bit deeper and see if there is a new command to allow clipboard pasting. For now this console will work just without "copy/paste" support.
Alex May 5, 2016 @ 7:44am 
Same as the fellow beloew I think.
http://imgur.com/L1v0lO5
http://pastebin.com/s6U0XiGL this is my client_log.txt (thats the correct one?)
Deja Vu Apr 28, 2016 @ 9:00am 
There is a client side game crash now when the console is opened. Here is the crash log: http://pastebin.com/s3SAm76Q This happened at some point during game updates.
Runagris Apr 18, 2016 @ 8:22am 
This MOD still works fine in DST Severs?