RimWorld

RimWorld

Fog of Pawn (Hide enemy bio, 隐藏属性)
moo 24 Jun @ 2:28pm
Errors alongside VEF 1.6 release
With the release of VEF, this mod is causing errors:

[FogOfPawn FAIL] Could not find target method FloatMenuMakerMap.ChoicesAtFor. Interrogate option disabled.

Error in static constructor of RelevantStatsInDescription.RelevantStatsInDescription: System.TypeInitializationException: The type initializer for 'RelevantStatsInDescription.RelevantStatsInDescription' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object
[Ref 4B21BF38]
at VEF.Pawns.StatPart_RangeAttackSpeedFactor.TransformValue (RimWorld.StatRequest req, System.Single& val) [0x00008] in <a5279e3298914a8095b2de91679d6c5b>:0
at RimWorld.StatWorker.FinalizeValue (RimWorld.StatRequest req, System.Single& val, System.Boolean applyPostProcess) [0x00022] in <78bd3c897ba748f7a6d21cc5498c054e>:0
at RimWorld.StatWorker.GetValue (RimWorld.StatRequest req, System.Boolean applyPostProcess) [0x00062] in <78bd3c897ba748f7a6d21cc5498c054e>:0
- POSTFIX FogOfPawn: Void FogOfPawn.Patches.Patch_StatWorker_SocialImpact_Imposter:Postfix(StatRequest req, Boolean applyPostProcess, StatDef ___stat, Single& __result)
- POSTFIX FogOfPawn: Void FogOfPawn.Patches.Patch_StatWorker_WealthPawn_DisguiseKit:Postfix(StatRequest req, Boolean applyPostProcess, StatDef ___stat, Single& __result)
at RimWorld.StatWorker.GetValueAbstract (Verse.BuildableDef def, Verse.ThingDef stuffDef) [0x00009] in <78bd3c897ba748f7a6d21cc5498c054e>:0
at RimWorld.StatExtension.GetStatValueAbstract (Verse.BuildableDef def, RimWorld.StatDef stat, Verse.ThingDef stuff) [0x00006] in <78bd3c897ba748f7a6d21cc5498c054e>:0
<0x1778b1d1550 + 0x0074a> <unknown method>
--- End of inner exception stack trace ---
[Ref 839C59F8]
(wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(intptr)
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) [0x0002a] in <51fded79cd284d4d911c5949aff4cb21>:0
at Verse.StaticConstructorOnStartupUtility.CallAll () [0x00028] in <78bd3c897ba748f7a6d21cc5498c054e>:0
- POSTFIX LayeredDestruction.patch: Void LayeredDestruction.StaticConstructorOnStartupUtilityPatch:Postfix()
< >
Showing 1-2 of 2 comments
Brad  [developer] 26 Jun @ 5:19pm 
I don't know why I didn't see this post earlier, will check it out now.
Brad  [developer] 26 Jun @ 5:35pm 
OK, I looked into it.
The interrogate function I'm currently drafting, so it failing is normal. I specifically gave it yellow fail logs, not game breaking.

The red wall-of-text afterwards is not thrown by Fog-O-Pawn.
It begins inside VEF (VEF.Pawns.StatPart_RangeAttackSpeedFactor.TransformValue).
VEF 1.6 still references fields that were removed/renamed in the game DLL, so its
static constructor crashes and triggers a cascade of
TypeInitializationException / NullReferenceException.
Fog-O-Pawn’s two stat-worker postfixes appear in the stack trace only because every
call to StatWorker.GetValue() passes through them once the VEF code has already
exploded.
At the 26th, I'm not getting this VEF error anymore.
< >
Showing 1-2 of 2 comments
Per page: 1530 50