安裝 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(越南文)
Українська(烏克蘭文)
回報翻譯問題
I am not competent enough to propose a fix, however reading source code reveals a suspicious method GetPowerPlantPotential of class PowerTabUtility (https://github.com/Owlchemist/power-tab-2/blob/0e47dea5f7e0d9754df883e166b88e9440c3277d/Source/PowerTabUtility.cs#L96). If I understand the source code correctly, it temporarily turns sky fully bright, fetches the DesiredPowerOutput of thing in question and restores sky brightness. The return value of GetPowerPlantPotential is later used in DesiredPowerOutput method, which returns the maximum of potential and PowerConsumption od thing in question.
Given that power consumption of sun lamp is dependent on time of day, it likely depends on current sky brightness in order to evaluate it's power conumption. Thus I strongly suspect that GetPowerPlantPotential is a culprit here.
Honestly I don't understand the point of calling Mathf.Max (https://github.com/Owlchemist/power-tab-2/blob/0e47dea5f7e0d9754df883e166b88e9440c3277d/Source/PowerTabUtility.cs#L87). I mean, `.Props.PowerConsumption` is probably an accurate value of current power consumption, so why not just return it directly? However I have no experience of modding Rimworld, so this question might be just due to my incompetence.
The problem is that CompPowerTrader.PowerOutput always returns power consumption for sun lamp even if it is night time. Issue was solved by checking PowerOn property of CompPowerTrader
(https://github.com/Owlchemist/power-tab-2/blob/0e47dea5f7e0d9754df883e166b88e9440c3277d/Source/PowerTabUtility.cs#L56)
like this:
Also would be cool if repo was updated with the actual state of the mod.