饥荒联机版

饥荒联机版

Console++ [full version]
12 条留言
Cliffford W. 2024 年 3 月 25 日 下午 6:00 
How does one do it so i can get the autofill on vanilla ?
https://i.imgur.com/oqFW1xX.png
like that
FriendlyGrass  [作者] 2023 年 3 月 16 日 下午 3:02 
Thanks!
Crimeraaa 2023 年 3 月 14 日 下午 10:30 
every once in a while, I get a strange crash when indexing tables. It usually happens when I'm pressing backspace on the line where I'm indexing. I can give the full traceback if that helps, but for now here's what I got:

[00:09:48]: [string "scripts/widgets/wordpredictionwidget.lua"]:330: attempt to index field '?' (a nil value)
LUA ERROR stack traceback:
scripts/widgets/wordpredictionwidget.lua:330 in (method) RefreshPredictions (Lua) <224-346>
../mods/workshop-2861673744/main/wordpredictionwidget.lua:183 in (field) fn (Lua) <183-183>
scripts/scheduler.lua:186 in (method) OnTick (Lua) <164-216>
scripts/scheduler.lua:419 in (global) RunStaticScheduler (Lua) <417-425>
scripts/update.lua:173 in () ? (Lua) <164-215>

I'm not entirely sure how to reliably replicate this, and other than that this mod (along with its Client version) are ridiculously helpful so thanks for making these in the first place!
FriendlyGrass  [作者] 2023 年 2 月 1 日 下午 7:28 
This should not be possible but I've inserted a check just in case.

Hey! I've just accidentally deleted your comment by a miss-click! Sorry about this (though Steam UI is at fault here).
Medic! 2022 年 11 月 6 日 下午 5:41 
Glad to hear it! Great mod, big lifesaver. :]
FriendlyGrass  [作者] 2022 年 11 月 6 日 上午 9:12 
Fixed, thanks!
Medic! 2022 年 11 月 3 日 下午 1:24 
Nope, not that. No clue then. :,)
Medic! 2022 年 11 月 3 日 下午 1:20 
Oh! Let me check if it's because I have tab set to tab through?
Medic! 2022 年 11 月 3 日 下午 1:19 
Was testing things out of curiosity. TheSim. <-- the . crashes, but doesn't with the client mod. This seems to happen with any punctuation used for code from what little I've seen, but I could be wrong. Here's a snippet from the crash:

LUA ERROR stack traceback:
=[C]:-1 in (global) pairs (C) <-1--1>
../mods/workshop-2861673744/main/completer.lua:90 in (upvalue) getpossiblekeys (Lua) <59-128>
../mods/workshop-2861673744/main/completer.lua:157 in () ? (Lua) <155-160>
=[C]:-1 in (method) CallRPC (C) <-1--1>
scripts/networkclientrpc.lua:1216 in (global) HandleRPCQueue (Lua) <1197-1266>
scripts/update.lua:42 in () ? (Lua) <33-135>
FriendlyGrass  [作者] 2022 年 10 月 21 日 上午 11:13 
It isn't possible to autocomplete when the __index is an arbitrary function but I could hardcode this behaviour specifically for Klei's class "props" (properties?) and that should be just fine, thanks.
老王天天写bug 2022 年 10 月 18 日 下午 8:22 
All props components (like health, hunger, sanity) have the same issue, cause their metatable.__index is a function.


class.lua:
-------- line 15 ---------
local function __index(t, k)
local p = rawget(t, "_")[k]
if p ~= nil then
return p[1]
end
return getmetatable(t)[k]
end

-------- line 94 --------
if props ~= nil then
c.__index = __index
c.__newindex = __newindex
else
c.__index = c
end
老王天天写bug 2022 年 10 月 17 日 下午 9:42 
Admirable works! Thanks very much!
Component methods failed to auto complete though: for example, when typing ThePlayer.components.health:Do, method `DoDelta` is absent. Looking forwarding for future updates.