Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
1. Pressing many key combinations inserts garbage characters into the console input.
2. Entering a new line will sometimes input the characters "\r\n" (correct) or sometimes "\n\r" (incorrect). In the latter case, the text input appears as though two new lines have been created. Also, in either case, it may take two backspace presses to delete the newline, rather than one.
3. Modifier keys can get stuck, as if pressed, if they are pressed down at the moment the game window loses focus.
Attempted to do a [ using Ctrl + Alt + F and { using Ctrl + Alt + B
It does not work
I can't reproduce the crash, but I added the guards that should hopefully be enough resolve any problems.
[00:09:22]: [string "../mods/workshop-2758553790/main/consolemod..."]:239: attempt to index field '?' (a nil value)
LUA ERROR stack traceback:
../mods/workshop-2758553790/main/consolemodder.lua:239 in (method) PostOnBecomeActive (Lua) <204-243>
../mods/workshop-2758553790/main/consolemodder.lua:49 in (method) OnBecomeActive (Lua) <47-50>
scripts/frontend.lua:961 in (method) PushScreen (Lua) <933-966>
scripts/frontend.lua:432 in (method) OnControl (Lua) <410-474>
scripts/input.lua:165 in (method) OnControl (Lua) <162-169>
scripts/input.lua:422 in () ? (Lua) <421-423>
Related code segment:
local function getshard()
if G.TheWorld:HasTag "forest" then
Here's the log:
[string "../mods/workshop-2758553790/main/consolemod..."]:196: attempt to index field 'TheWorld' (a nil value)
LUA ERROR stack traceback:
../mods/workshop-2758553790/main/consolemodder.lua:196 in (upvalue) getshard (Lua) <195-201>
../mods/workshop-2758553790/main/consolemodder.lua:237 in (method) PostOnBecomeActive (Lua) <204-243>
../mods/workshop-2758553790/main/consolemodder.lua:49 in (method) OnBecomeActive (Lua) <47-50>
scripts/frontend.lua:961 in (method) PushScreen (Lua) <933-966>
scripts/frontend.lua:432 in (method) OnControl (Lua) <410-474>
scripts/input.lua:165 in (method) OnControl (Lua) <162-169>
scripts/input.lua:422 in () ? (Lua) <421-423>
I'm not sure I understand what you mean. Could you explain?
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2955770409
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2955770471
I personally find 1200 to be a much more reasonable scissor_width, but I'm not sure how universal this would be. The vanilla log uses a width of 900, but uses SetModeScale to dynamically scale.
LUA ERROR stack traceback:
=[C]:-1 in (method) sub (C) <-1--1>
../mods/workshop-2758553790/main/completer.lua:142 in (upvalue) forcewordprediction (Lua) <139-157>
../mods/workshop-2758553790/main/completer.lua:299 in () ? (Lua) <281-340>
=(tail call):-1 in () (tail) <-1--1>
../mods/workshop-2758553790/main/consolemodder.lua:83 in (method) RefreshPredictions (Lua) <82-85>
scripts/widgets/wordpredictionwidget.lua:227 in (method) RefreshPredictions (Lua) <224-346>
scripts/widgets/textedit.lua:228 in (method) OnTextInput (Lua) <205-240>
scripts/widgets/textedit.lua:283 in () ? (Lua) <266-327>
The crash log can be found here:
Crash log [pastebin.com]
I've changed up the current log colours and added a config for an alternative possibly less extreme theme. (This will be in the next update, in a bit.)
This mod doesn't actually currently support shard logs for real dedicated servers because I can't access their cluster folders from the client :(. A server version could theoretically fix this.
Yeah right now the primitive console log is used when the console is not open, and my scrollable, sharded console log overrides it when the console screen is open. I'll look into changing this but I think there are some technical challenges. Have you noticed the game's scrollable chat log is only used when the chat screen is opened?
The only things I can think of improve it is support for ctrl + L (Opens the normal client console instead of this mod's custom console). Oh and this is a bit of personal preference but, I would like if in the config I could tone down the harsh colors of the server/cave consoles. And this isn't as important, but maybe some proper colored inputs would be handy, such as messages that start with/contain the word "Error" be colored red instead of the white/blue/orange of the default text.
I can't see the position issue you see with the console text box. Is it a little lower? Position is messed around with for it to vertically expand nicely in multiline.
An Undo/Redo would be good. I currently use the basic autocompletion engine that the game uses but really I should make my own. Pretty printing tables would be good but first I should make a serverside mod so that that can work on a networked world with caves. Sure I can make an option to make keeping the console open on run the default and +Ctrl to close.
> Persistent console text box
Maybe, I guess if you need to see the console input while you're moving around.
On a side note...
There's endless features that could be added to the game's console to turn it into a fully fledged editor, but wouldn't it be better to just have a little mod that hot reloads a script in your Klei save folder like customcommands.lua so you can write commands in your favorite text editor when you need it?