Installer Steam
log på
|
sprog
简体中文 (forenklet kinesisk)
繁體中文 (traditionelt kinesisk)
日本語 (japansk)
한국어 (koreansk)
ไทย (thai)
Български (bulgarsk)
Čeština (tjekkisk)
Deutsch (tysk)
English (engelsk)
Español – España (spansk – Spanien)
Español – Latinoamérica (spansk – Latinamerika)
Ελληνικά (græsk)
Français (fransk)
Italiano (italiensk)
Bahasa indonesia (indonesisk)
Magyar (ungarsk)
Nederlands (hollandsk)
Norsk
Polski (polsk)
Português (portugisisk – Portugal)
Português – Brasil (portugisisk – Brasilien)
Română (rumænsk)
Русский (russisk)
Suomi (finsk)
Svenska (svensk)
Türkçe (tyrkisk)
Tiếng Việt (Vietnamesisk)
Українська (ukrainsk)
Rapporter et oversættelsesproblem
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: {LINK FJERNET}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)