安装 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(越南语)
Українська(乌克兰语)
报告翻译问题
https://gist.github.com/HugsLibRecordKeeper/6957e12338250a2b1ff27cc0103dd0f9
bool flag = (apparel.Wearer == null && apparel.Wearer.genes != null && !KijinSettings.UseKijinCloth && apparel.Wearer.genes.Xenotype == Kijin3Defof.KijinXenotype && !KijinSettings.UseKijinClothEnemyFaction) || !__result || apparel.Wearer == null || apparel.Wearer.genes.Xenotype != Kijin3Defof.KijinXenotype;
It looks like it's trying to access apparel.Wearer.genes even when apparel.Wearer might be null — that would likely throw a NullReferenceException.
Just to be safe, I’d suggest rewriting it like this:
bool flag = !__result || !KijinSettings.UseKijinCloth || !KijinSettings.UseKijinClothEnemyFaction || wearer == null || wearer.genes == null || wearer.genes.Xenotype != Kijin3Defof.KijinXenotype;
Hope that helps!
it is used for making shirne. If used, it buffs up mood a bit
solid solution. I'll do some testing and update it
I'd like to report a compatibility issue that causes a rendering error when used with my mod. The cause seems to be this patch method:
KijinApparelOption_Patch(ref Apparel apparel, ref ApparelGraphicRecord rec, ref bool __result)
Screenshot: {链接已删除}https://imgur.com/crGt5OE
The line apparel.Wearer.genes.Xenotype assumes that apparel.Wearer.genes is always non-null, but some pawns (e.g. animals, mechanoids, or modded pawns) don’t have a Pawn_GeneTracker, which causes a NullReferenceException.
Please consider updating the condition like this:
if (apparel.Wearer != null && apparel.Wearer.genes != null && apparel.Wearer.genes.Xenotype == Kijin3Defof.KijinXenotype)
This issue affects versions 1.6, 1.5, and 1.4.
I'd appreciate it if the fix could be applied to all of them.
Thanks!
I have not fully tested anything but I fixed some error codes.
However you can also activate it, but I don't know what that does, haven't tried with a Kijin yet, but it seems nothing happens, except you lose the item.
Exception while recalculating PreferredXenotypeMakeup thought state for pawn Diver: System.InvalidProgramException: Invalid IL code in (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RimWorld.ThoughtWorker_Precept_ColonyXenotypeMakeup.ShouldHaveThought_Patch0 (RimWorld.ThoughtWorker_Precept_ColonyXenotypeMakeup,Verse.Pawn): IL_008f: call 0x00000023
[Ref F447161C]
at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Glue:AbiFixup<RimWorld.ThoughtState RimWorld.ThoughtWorker_Precept_ColonyXenotypeMakeup:ShouldHaveThought(Verse.Pawn),RimWorld.ThoughtState RimWorld.ThoughtWorker_Precept_ColonyXenotypeMakeup.ShouldHaveThought_Patch0(RimWorld.ThoughtWorker_Precept_ColonyXenotypeMakeup, Verse.Pawn)>(RimWorld.ThoughtWorker_Precept_ColonyXenotypeMakeup,RimWorld.ThoughtState&,Verse.Pawn)