饥荒
135 个评价
Better Console
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
24.047 KB
2013 年 8 月 29 日 上午 4:38
2016 年 7 月 13 日 上午 8:51
8 项改动说明 ( 查看 )

订阅以下载
Better Console

描述
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
47 条留言
Master Pi 2023 年 10 月 12 日 下午 7:53 
HOW DO I OPEN IT???
Kelso 2021 年 12 月 28 日 上午 6:55 
you guys should notice before posting that this hasnt been updated since 2016. Don't think posting in the comments is changing that.
Robie777 2021 年 12 月 27 日 上午 11:19 
console not showing suggestion keyword
ex: when type c_spawn(" <-- there is no suggestion show up
AidenZander 2021 年 9 月 21 日 上午 9:35 
`~
MonsterSlayer 2020 年 4 月 6 日 下午 3:14 
How do u open it
*Yuki* 2016 年 11 月 29 日 上午 2:57 
does it still work?
cez™ 2016 年 5 月 15 日 上午 1:13 
Game crashes when trying to copy/paste something in.
Starving 2016 年 5 月 9 日 上午 7:16 
How do you get back the last command you typed?
Moose 2016 年 4 月 13 日 上午 11:42 
Very glitchy when clicking shift+tab while on console :l
At996 2016 年 3 月 25 日 下午 9:16 
Below me the update Sea the day it fixed shipwrecked being mixed with RoG