安装 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(越南语)
Українська(乌克兰语)
报告翻译问题








Here is the HugsLib log: pastebin [pastebin.com] github [gist.github.com]
I will try to record a video of the issue as soon as I can.
Was this a problem in 1.4? I have only just adopted this mod
One method in the stack being patched isn't automatically to blame.
The next proper step here is testing: remove half your mods and see if this still breaks
Understood, I will try this.
In addition, I have noticed that the issue with the bill disappearing seems to be continuing without the mod, so it is likely from a different source.
To reproduce, create a caravan with your colonists, abandon your colony, and press the what's for sale button
https://gist.github.com/HugsLibRecordKeeper/fc63aec37277694e20eff5f2ff95ca31
and here is my mod list: https://pastebin.com/3S394QDg
Can you check this? Playing without your mod is not so fun like with it
I find the bug by disassembly, refactor, and fix. In the constructor of Dialog_ShowBuyable, the input parameter negotiator could be null in this case, thus StatExtension.GetStatValue function call in the constructor will cause the statrequest for null error message. I fixed this by a null judge and 0 if negotiator is null. This is a temporary fix. Even though I still have pawns in the caravan who can be the negotiator, I just use 0 as the stat showing in the window.
This issue also affect the window drawing function DoWindowContents. In the line with the string "WDYS.Pawn", which is a Widgets.Label, the negotiator is null, thus negotiator.NameFullColored will report null pointer exception, leading to window not drawing. I fixed this issue by using negotiator?.NameFullColored ?? string.Empty instead of negotiator.NameFullColored.
I think it's better to consider all pawns not only in colony but also in caravan. Also, it's possible to have 0 pawns at all in certain cases (like everyone leaving the planet and you are still watching the settlements, or maybe your colony just got destroyed and everyone died, but you just want to want for a wanderer joining). Null check would be useful in such cases.