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
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.