65 ratings
Better Console
File Size:
0.023 MB
Aug 29, 2013 @ 4:38am
May 31, 2014 @ 10:03pm
5 change notes ( view )
A few improvements to the console.

Note: This mod is mostly intended for mod developers. For information about the console, see:

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
< >
KipHansKip Feb 27 @ 4:26pm 
i dont now why you guys need this
LegendJD Jan 17 @ 6:42pm 
Teejinator147 you click ~
Teejinator147 Nov 12, 2014 @ 7:18pm 
How do I open the console?

BenDaMan May 23, 2014 @ 3:03pm 
btw i love this mod
BenDaMan May 23, 2014 @ 3:02pm 
@Seal Clubber 2 Electric Boogaloo this mod will in fact work with the DSRoG DLC
BenDaMan May 23, 2014 @ 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, 2014 @ 3:39pm 
So with this mod, will I be able to just type "spawn pigman" instead of having to type in debugspawn("pigman") ?
Gamer4Life Apr 12, 2014 @ 6:05pm 
the scary thing is i understand what all this code talk is...
Moose Goose Apr 6, 2014 @ 9:01am 
Is this RoG compatible?
BlackBox Mar 12, 2014 @ 5:35am 
You're a top notch fellow. Thanks for this!! :)