安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题










When I eventually revisit this mod, I’ll likely rename that variable (and other components) to reduce the chance of collisions.
This issue seems pretty isolated so far, but if adding nil-guards improves your setup, feel free to submit a PR on GitHub. And if that ends up being too much work, I understand if you choose not to include TTT Bots in your server collection.
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3484563015
Even if you can't reproduce it, it would be nice to add guard conditions in the places I mentioned so the addon fails silently
The error you are experiencing can only occur if there is an issue with bot initialization or, far more likely, if a mod is conflicting with mine and overriding the variable that stores bot personalities. Try testing without other mods enabled.
That said, I was able to just test it again today, TTT2, 12 bots, multiple role mods, and no issues whatsoever.
[TTT Bots 2.0] lua/tttbots2/components/sv_locomotor.lua:1741: attempt to index field 'components' (a nil value)
1. BotLocomotor - lua/tttbots2/components/sv_locomotor.lua:1741
2. unknown - lua/tttbots2/sh_tttbots2.lua:140
Doesn't seem to impact actual mod behavior?
I managed to suppress the error, but had to comment out/tweak lines in pretty much every file of the "components" folder, mostly the penultimate line in each file where self.components.something gets returned without checking if self.components exists.
Also tweaked a few lines in behavior (wander.lua:174 -> personality is nil, so just return; decrowd.lua:28 -> skip the check on personality, which is nil; lines 30 & 45 of mingecrowbar.lua -> just use the 1.0 default; sv_personality.lua:381 -> comment out, early return total). Also had to comment out lines 124 and 143 of sh_tttbots2.lua and touch line 44 of components/sv_obstacletracker.
@ALE199 - There is currently no way to disable jesters shooting people, sorry. I may disable this behavior in a future update, if I (meaningfully) work on this mod again.
This does not work in sandbox mode. you specifically have to be in TTT mode for this to work
1. Are you doing something in particular when this error happens?
2. What gamemode?
3. Does it happen without other mods enabled?