RimWorld

RimWorld

AutoBlink
Rabiosus  [developer] 11 Jun @ 6:41am
please post bug reports here
here
< >
Showing 1-9 of 9 comments
Errors always come in pairs, and this is one of them



Couldn't find any cell in region Region(id=3233, mapIndex=2, center=(132, 0, 192), links=3, cells=1)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch3 (string)
Verse.Region:get_AnyCell ()
Verse.Region:get_RandomCell ()
Verse.AI.RegionCostCalculator:RegionMedianPathCost (Verse.Region)
Verse.AI.RegionCostCalculator:GetRegionDistance (Verse.Region,Verse.RegionLink&)
Verse.AI.RegionCostCalculator:GetRegionBestDistances (Verse.Region,Verse.RegionLink&,Verse.RegionLink&,int&)
Verse.AI.RegionCostCalculatorWrapper:GetPathCostFromDestToRegion (int)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.PathFinder.FindPath_Patch0 (Verse.AI.PathFinder,Verse.IntVec3,Verse.LocalTargetInfo,Verse.TraverseParms,Verse.AI.PathEndMode,Verse.AI.PathFinderCostTuning)
Verse.AI.PathFinder:FindPath (Verse.IntVec3,Verse.LocalTargetInfo,Verse.Pawn,Verse.AI.PathEndMode,Verse.AI.PathFinderCostTuning)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.Pawn_PathFollower.GenerateNewPath_Patch1 (Verse.AI.Pawn_PathFollower)
Verse.AI.Pawn_PathFollower:TrySetNewPath ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.Pawn_PathFollower.TryEnterNextPathCell_Patch1 (Verse.AI.Pawn_PathFollower)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.Pawn_PathFollower.PatherTick_Patch3 (Verse.AI.Pawn_PathFollower)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Pawn.Tick_Patch2 (Verse.Pawn)
Verse.TickList:Tick ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch3 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch4 (Verse.Game)
Verse.Root_Play:Update ()


Exception ticking Mech_JumpLifter2680160 (at (178, 0, 120)): System.NullReferenceException: Object reference not set to an instance of an object
[Ref B3156868]
at Verse.AI.RegionCostCalculator.GetRegionDistance (Verse.Region region, Verse.RegionLink& minLink) [0x000ea] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at Verse.AI.RegionCostCalculator.GetRegionBestDistances (Verse.Region region, Verse.RegionLink& bestLink, Verse.RegionLink& secondBestLink, System.Int32& secondBestCost) [0x00000] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at Verse.AI.RegionCostCalculatorWrapper.GetPathCostFromDestToRegion (System.Int32 cellIndex) [0x00046] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at Verse.AI.PathFinder.FindPath (Verse.IntVec3 start, Verse.LocalTargetInfo dest, Verse.TraverseParms traverseParms, Verse.AI.PathEndMode peMode, Verse.AI.PathFinderCostTuning tuning) [0x00b6e] in <630e2863bc9a4a3493f2eff01e3a9556>:0
- TRANSPILER AntiHydrogen.DoNotAvoidFire.HarmonyInit: IEnumerable`1 DoNotAvoidFire.FindPath_Patch:FindPath_Transpiler(IEnumerable`1 instructions, ILGenerator generator)
at Verse.AI.PathFinder.FindPath (Verse.IntVec3 start, Verse.LocalTargetInfo dest, Verse.Pawn pawn, Verse.AI.PathEndMode peMode, Verse.AI.PathFinderCostTuning tuning) [0x0003e] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at Verse.AI.Pawn_PathFollower.GenerateNewPath () [0x0005e] in <630e2863bc9a4a3493f2eff01e3a9556>:0
- PREFIX OskarPotocki.VFECore: Boolean VFECore.PhasingPatches:GenerateNewPath_Prefix(Pawn_PathFollower __instance, Pawn ___pawn, LocalTargetInfo ___destination, PathEndMode ___peMode, PawnPath& __result)
at Verse.AI.Pawn_PathFollower.TrySetNewPath () [0x00000] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at Verse.AI.Pawn_PathFollower.TryEnterNextPathCell () [0x002da] in <630e2863bc9a4a3493f2eff01e3a9556>:0
- POSTFIX OskarPotocki.VFECore: Void VFECore.PhasingPatches:UnfogEnteredCells(Pawn_PathFollower __instance, Pawn ___pawn)
at Verse.AI.Pawn_PathFollower.PatherTick () [0x00404] in <630e2863bc9a4a3493f2eff01e3a9556>:0
- PREFIX Krkr.RocketMan.Soyuz: Void Soyuz.Patches.Pawn_PathFollower_Patch+Pawn_PathFollower_PatherTick:Prefix(Pawn_PathFollower __instance)
- POSTFIX Krkr.RocketMan.Soyuz: Void Soyuz.Patches.Pawn_PathFollower_Patch+Pawn_PathFollower_PatherTick:Postfix(Pawn_PathFollower __instance)
- FINALIZER Krkr.RocketMan.Soyuz: Void Soyuz.Patches.Pawn_PathFollower_Patch+Pawn_PathFollower_PatherTick:Finalizer(Exception __exception)
at Verse.Pawn.Tick () [0x0064a] in <630e2863bc9a4a3493f2eff01e3a9556>:0
- TRANSPILER Krkr.RocketMan.Soyuz: IEnumerable`1 Soyuz.Patches.Pawn_Tick_Patch:Transpiler(IEnumerable`1 instructions, ILGenerator generator)
- POSTFIX Mlie.MarkThatPawn: Void MarkThatPawn.Harmony.Pawn_Tick:Postfix(Pawn __instance)
- FINALIZER Krkr.RocketMan.Soyuz: Void Soyuz.Patches.Pawn_Tick_Patch:Finalizer(Pawn __instance, Exception __exception)
at Verse.TickList.Tick () [0x0015c] in <630e2863bc9a4a3493f2eff01e3a9556>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch3 (string)
Verse.TickList:Tick ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch3 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch4 (Verse.Game)
Verse.Root_Play:Update ()
Rabiosus  [developer] 11 Jun @ 9:49am 
Thank you, but this doesn’t seem like an issue that can be fixed on the AutoBlink side. I plan to add a simple check in the next update, but for now I can’t say anything for certain. In the meantime, try changing the load order of DNAF in your mod list—this might resolve the problem.
Avalon9d 11 Jun @ 3:18pm 
Found what is causing error in gene mod from KD - // BlinkGene.Gene_BlinkGland
// Token: 0x06000003 RID: 3 RVA: 0x000020B0 File Offset: 0x000002B0
public static void PawnTickPrefix(ref Pawn __instance)
{
bool flag = __instance.def.defName == "Human";
if (flag)
{
bool flag2 = !__instance.genes.HasActiveGene(Gene_BlinkGland.gene);
if (flag2)
{
CompBlinkWatcher comp = __instance.GetComp<CompBlinkWatcher>();
bool flag3 = comp != null;
if (flag3)
{
comp.autoBlinkMaster = false;
}
}
}
}

Now need to find a way to fix it =_=.
Rabiosus  [developer] 11 Jun @ 3:37pm 
No, AutoBlink has already been updated to support both genes and Hediffs.
This patch is targeting outdated code and is no longer necessary. The CompBlinkWatcher class no longer exists in the codebase.

To add AutoBlink to a gene, set the gene’s geneClass to AutoBlink.Gene_AutoBlink, and use AutoBlink.GeneExtension_AutoBlink in the modExtensions field to configure its settings.

For details, please refer to the sample.xml included in the mod folder.
Avalon9d 12 Jun @ 2:07am 
Originally posted by Rabiosus:
No, AutoBlink has already been updated to support both genes and Hediffs.
This patch is targeting outdated code and is no longer necessary. The CompBlinkWatcher class no longer exists in the codebase.

To add AutoBlink to a gene, set the gene’s geneClass to AutoBlink.Gene_AutoBlink, and use AutoBlink.GeneExtension_AutoBlink in the modExtensions field to configure its settings.

For details, please refer to the sample.xml included in the mod folder.

Took me some time, but it's working now =_=
Thank you so much for including the sample.xml — that cleared everything up.
Initially there was no visual effect when the pawn blinked, but we’ve fixed that too by adding the correct EffecterDefs and SoundDefs from your sample — now everything looks great in-game!
Appreciate your work, and thanks again for keeping the mod updated!
Latest version is uploaded with test.xml file so TestA/TestB hediffs and Gene_AutoBlink_A/B genes are visible
Rabiosus  [developer] 24 Jun @ 3:11pm 
oops sorry! I’ll update it right away
I find an error when mechs hunt for animals with autoblink.
JobDriver threw exception in toil unnamed's initAction for pawn Mech_KornblumeD7_RK381726 driver=JobDriver_Hunt (toilIndex=3) driver.job=(Hunt (Job_2987654) A = Thing_Emu260574 Giver = JobGiver_Work [workGiverDef: HunterHunt])
System.NullReferenceException: Object reference not set to an instance of an object
[Ref 51899237] Duplicate stacktrace, see ref for original
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Warning (string)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.JobUtility.TryStartErrorRecoverJob_Patch2 (Verse.Pawn,string,System.Exception,Verse.AI.JobDriver)
Verse.AI.JobDriver:TryActuallyStartNextToil ()
Verse.AI.JobDriver:ReadyForNextToil ()
Verse.AI.JobDriver:TryActuallyStartNextToil ()
Verse.AI.JobDriver:ReadyForNextToil ()
Verse.AI.JobDriver:TryActuallyStartNextToil ()
Verse.AI.JobDriver:ReadyForNextToil ()
Verse.AI.JobDriver:TryActuallyStartNextToil ()
Verse.AI.JobDriver:ReadyForNextToil ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.Pawn_JobTracker.StartJob_Patch1 (Verse.AI.Pawn_JobTracker,Verse.AI.Job,Verse.AI.JobCondition,Verse.AI.ThinkNode,bool,bool,Verse.ThinkTreeDef,System.Nullable`1<Verse.AI.JobTag>,bool,bool,System.Nullable`1<bool>,bool,bool,bool)
Verse.AI.Pawn_JobTracker:TryFindAndStartJob ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.Pawn_JobTracker.EndCurrentJob_Patch3 (Verse.AI.Pawn_JobTracker,Verse.AI.JobCondition,bool,bool)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.Pawn_JobTracker.JobTrackerTick_Patch0 (Verse.AI.Pawn_JobTracker)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Pawn.Tick_Patch1 (Verse.Pawn)
Verse.TickList:Tick ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch3 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch3 (Verse.Game)
Verse.Root_Play:Update ()
Rabiosus  [developer] 4 Jul @ 9:40pm 
I need more information. If you know the steps to reproduce this error with a minimal configuration, please let me know. Specifically, I would like to know the mod for the mechanoid you are using and the mod that allows the mechanoid to perform the hunt job.
< >
Showing 1-9 of 9 comments
Per page: 1530 50