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
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 REMOVED}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)
I've also attached the beginning of the error message.
<defaultInstallPart>Shoulder</defaultInstallPart> doesn't correspond to any field in type HediffDef. Context: <HediffDef ParentName="AddedBodyPartBase"><hediffClass>Hediff_AddedPart</hediffClass>
{LINK REMOVED}https://gist.github.com/HugsLibRecordKeeper/1172f07f6f5dceec99fd0bc9b04797b1
I have nothing that makes it bleed forever. It must be a mod conflict.