RimWorld

RimWorld

(NWN) Real Fog of War
Maal 2 Aug, 2021 @ 7:09pm
Bug report
Using it with only CORE+DLCs and harmony, I am getting some red errors when:

I send a pawn on the world map/caravan:
Exception ticking world pawn Gola. Suppressing further errors. System.NullReferenceException: Object reference not set to an instance of an object at Verse.GenGrid.InBounds (Verse.IntVec3 c, Verse.Map map) [0x00000] in <f429400e900f434099af71800afbc07e>:0 at Verse.GenRadial+<RadialDistinctThingsAround>d__15.MoveNext () [0x00065] in <f429400e900f434099af71800afbc07e>:0 at RimWorldRealFoW.CompFieldOfViewWatcher.livePawnHear (Verse.Pawn thisPawn, System.Single hearRangeMod, RimWorld.Faction faction, System.Single hearRange) [0x000ee] in <ea5e976a57894561a3e6c55c1078fb40>:0 at RimWorldRealFoW.CompFieldOfViewWatcher.CompTick () [0x000cd] in <ea5e976a57894561a3e6c55c1078fb40>:0 at RimWorldRealFoW.CompMainComponent.CompTick () [0x00064] in <ea5e976a57894561a3e6c55c1078fb40>:0 at Verse.ThingWithComps.Tick () [0x00024] in <f429400e900f434099af71800afbc07e>:0 at Verse.Pawn.Tick () [0x00024] in <f429400e900f434099af71800afbc07e>:0 at RimWorld.Planet.WorldPawns.WorldPawnsTick () [0x0002d] in <f429400e900f434099af71800afbc07e>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) Verse.Log:ErrorOnce (string,int) RimWorld.Planet.WorldPawns:WorldPawnsTick () RimWorld.Planet.World:WorldTick () Verse.TickManager:DoSingleTick () Verse.TickManager:TickManagerUpdate () Verse.Game:UpdatePlay () Verse.Root_Play:Update ()

They are carrying a downed pawn:
Exception ticking Gola (at (199, 0, 59)): System.NullReferenceException: Object reference not set to an instance of an object at Verse.GenGrid.InBounds (Verse.IntVec3 c, Verse.Map map) [0x00000] in <f429400e900f434099af71800afbc07e>:0 at Verse.GenRadial+<RadialDistinctThingsAround>d__15.MoveNext () [0x00065] in <f429400e900f434099af71800afbc07e>:0 at RimWorldRealFoW.CompFieldOfViewWatcher.livePawnHear (Verse.Pawn thisPawn, System.Single hearRangeMod, RimWorld.Faction faction, System.Single hearRange) [0x000ee] in <ea5e976a57894561a3e6c55c1078fb40>:0 at RimWorldRealFoW.CompFieldOfViewWatcher.CompTick () [0x000cd] in <ea5e976a57894561a3e6c55c1078fb40>:0 at RimWorldRealFoW.CompMainComponent.CompTick () [0x00064] in <ea5e976a57894561a3e6c55c1078fb40>:0 at Verse.ThingWithComps.Tick () [0x00024] in <f429400e900f434099af71800afbc07e>:0 at Verse.Pawn.Tick () [0x00024] in <f429400e900f434099af71800afbc07e>:0 at Verse.ThingOwner.ThingOwnerTick (System.Boolean removeIfDestroyed) [0x00021] in <f429400e900f434099af71800afbc07e>:0 at Verse.Pawn_CarryTracker.CarryHandsTick () [0x00000] in <f429400e900f434099af71800afbc07e>:0 at Verse.Pawn.Tick () [0x000ec] in <f429400e900f434099af71800afbc07e>:0 at Verse.TickList.Tick () [0x0015c] in <f429400e900f434099af71800afbc07e>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) Verse.TickList:Tick () Verse.TickManager:DoSingleTick () Verse.TickManager:TickManagerUpdate () Verse.Game:UpdatePlay () Verse.Root_Play:Update ()

(posting a discussion to not post 10 comments to past that code... Be free to delete it and make an official bug report discussion after.)
Last edited by Maal; 2 Aug, 2021 @ 7:30pm
< >
Showing 1-8 of 8 comments
Hcup  [developer] 3 Aug, 2021 @ 2:03am 
I added some null check and tested, it doesn't generate any error any more so it's probably fixed.
Maal 3 Aug, 2021 @ 3:06am 
Not getting any error anymore either, thank you.
qux 16 Aug, 2021 @ 7:27am 
Theres is unlimited errors when we load this mod and window

Margarita did TryFindAndStartJob but had no thinker.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.Log:ErrorOnce (string,int)
Verse.AI.Pawn_JobTracker:TryFindAndStartJob ()
Verse.AI.Pawn_JobTracker:EndCurrentJob (Verse.AI.JobCondition,bool,bool)
Verse.AI.Pawn_JobTracker:JobTrackerTick ()
Verse.Pawn:Tick ()
Verse.TickList:Tick ()
Verse.TickManager:DoSingleTick ()
Verse.TickManager:TickManagerUpdate ()
Verse.Game:UpdatePlay ()
Verse.Root_Play:Update ()


Exception ticking Lucas (at (144, 0, 135)): System.NullReferenceException: Object reference not set to an instance of an object
at Verse.AI.Pawn_JobTracker.DetermineNextConstantThinkTreeJob () [0x00000] in <00638943358e4807bd44cd7bc8f572da>:0
at Verse.AI.Pawn_JobTracker.JobTrackerTick () [0x00024] in <00638943358e4807bd44cd7bc8f572da>:0
at Verse.Pawn.Tick () [0x000a3] in <00638943358e4807bd44cd7bc8f572da>:0
at Verse.TickList.Tick () [0x0015c] in <00638943358e4807bd44cd7bc8f572da>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.TickList:Tick ()
Verse.TickManager:DoSingleTick ()
Verse.TickManager:TickManagerUpdate ()
Verse.Game:UpdatePlay ()
Verse.Root_Play:Update ()
Franimus 21 Oct, 2021 @ 10:11pm 
Two issues, biggest is that when a transport pod crashes containing a downed pawn or animal, I can't see it even when my colonist is near the crash site, and possibly can't interact with it, until the pawn/animal dies from their wounds (this happened 3/3 times so far). Second is that sometimes visitors will disappear, but they can still be interacted with, so it looks like my colonist is talking to an invisible person. Any ideas? Would logs help?
Van-d-all 22 Dec, 2021 @ 6:35pm 
There's a bug when setting up a new map and removing unneeded FoV watchers from insect hives. Probably irrelevant since they were supposed to be deleted anyways, but some null reference throws an exception still. Stack using just DLCs and this mod:
Error while resolving symbol "hives" with params=rect=(185,379,197,387), faction=null, custom=null, combatPoints=null, pawnGroupMakerParams=null, pawnGroupKindDef=null, roofDef=null, noRoof=null, addRoomCenterToRootsToUnfog=null, singleThingToSpawn=null, singleThingDef=null, singleThingStuff=null, singleThingStackCount=null, skipSingleThingIfHasToWipeBuildingOrDoesntFit=null, spawnBridgeIfTerrainCantSupportThing=null, singleThingInnerThings=null, singlePawnToSpawn=null, singlePawnKindDef=null, disableSinglePawn=True, singlePawnLord=null, settlementLord=null, singlePawnSpawnCellExtraPredicate=null, singlePawnGenerationRequest=null, postThingSpawn=null, postThingGenerate=null, mechanoidsCount=null, hivesCount=2, disableHives=True, thingRot=null, wallStuff=null, chanceToSkipWallBlock=null, floorDef=null, chanceToSkipFloor=null, filthDef=null, filthDensity=null, floorOnlyIfTerrainSupports=null, allowBridgeOnAnyImpassableTerrain=null, clearEdificeOnly=null, clearFillageOnly=null, clearRoof=null, ancientCryptosleepCasketGroupID=null, podContentsType=null, ancientCryptosleepCasketOpenSignalTag=null, thingSetMakerDef=null, thingSetMakerParams=null, stockpileConcreteContents=null, stockpileMarketValue=null, innerStockpileSize=null, edgeDefenseWidth=null, edgeDefenseTurretsCount=null, edgeDefenseMortarsCount=null, edgeDefenseGuardsCount=null, mortarDef=null, pathwayFloorDef=null, cultivatedPlantDef=null, fixedCulativedPlantGrowth=null, fillWithThingsPadding=null, settlementPawnGroupPoints=null, settlementPawnGroupSeed=null, settlementDontGeneratePawns=null, attackWhenPlayerBecameEnemy=null, streetHorizontal=null, edgeThingAvoidOtherEdgeThings=null, edgeThingMustReachMapEdge=null, allowPlacementOffEdge=null, thrustAxis=null, makeWarningLetter=True, allowedMonumentThings=ingredients, bedCount=null, workSitePoints=null, lootConcereteContents=null, lootMarketValue=null, extraDoorEdge=null, minLengthAfterSplit=null Exception: System.NullReferenceException: Object reference not set to an instance of an object at RimWorldRealFoW.CompFieldOfViewWatcher.updateFoV (System.Boolean forceUpdate) [0x001a7] in <bb0535d6c70245d58d76ed20ae4d594d>:0 at RimWorldRealFoW.CompFieldOfViewWatcher.PostSpawnSetup (System.Boolean respawningAfterLoad) [0x002cb] in <bb0535d6c70245d58d76ed20ae4d594d>:0 at RimWorldRealFoW.CompMainComponent.PostSpawnSetup (System.Boolean respawningAfterLoad) [0x00068] in <bb0535d6c70245d58d76ed20ae4d594d>:0 at Verse.ThingWithComps.SpawnSetup (Verse.Map map, System.Boolean respawningAfterLoad) [0x00020] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0 at RimWorld.Hive.SpawnSetup (Verse.Map map, System.Boolean respawningAfterLoad) [0x00000] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0 at Verse.GenSpawn.Spawn (Verse.Thing newThing, Verse.IntVec3 loc, Verse.Map map, Verse.Rot4 rot, Verse.WipeMode wipeMode, System.Boolean respawningAfterLoad) [0x00261] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0 at Verse.GenSpawn.Spawn (Verse.Thing newThing, Verse.IntVec3 loc, Verse.Map map, Verse.WipeMode wipeMode) [0x00008] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0 at RimWorld.BaseGen.SymbolResolver_Hives.Resolve (RimWorld.BaseGen.ResolveParams rp) [0x0007d] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0 at RimWorld.BaseGen.BaseGen.Resolve (RimWorld.BaseGen.SymbolStack+Element toResolve) [0x000e5] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0 at RimWorld.BaseGen.BaseGen.Generate () [0x000ce] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) RimWorld.BaseGen.BaseGen:Generate () RimWorld.GenStep_ScatterShrines:ScatterAt (Verse.IntVec3,Verse.Map,Verse.GenStepParams,int) Verse.GenStep_Scatterer:Generate (Verse.Map,Verse.GenStepParams) Verse.MapGenerator:GenerateContentsIntoMap (System.Collections.Generic.IEnumerable`1<Verse.GenStepWithParams>,Verse.Map,int) Verse.MapGenerator:GenerateMap (Verse.IntVec3,RimWorld.Planet.MapParent,Verse.MapGeneratorDef,System.Collections.Generic.IEnumerable`1<Verse.GenStepWithParams>,System.Action`1<Verse.Map>) Verse.Game:InitNewGame () Verse.Root_Play/<>c:<Start>b__1_2 () Verse.LongEventHandler:RunEventFromAnotherThread (System.Action) Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_0 () System.Threading.ThreadHelper:ThreadStart_Context (object) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) System.Threading.ThreadHelper:ThreadStart ()
KNightIL 15 Aug, 2022 @ 5:24am 
Random animals and pawns seem to be invisible while using this mod. I checked the logs and there's nothing really suspicious there but i'll post a link anyway. At first there was an error with mod "Caravan Adventures", so I removed it. Yet, still it doesn't help. I can't interact with invisible creatures so all is left to do is use "Pass to World" dev function. I have 300+ mods installed so it could be literally anything.
Here are my logs: https://gist.github.com/34c7473883b7fe3b51f692bd01cb4dff.
I use Ideology DLC and if you need my modlist you can check my mod compilation on steam, it's public.
Thanks in advance.
KNightIL 15 Aug, 2022 @ 5:36am 
A few seconds ago an invisible coyote started hunting my livestock for food and here's what the log says:

Object with load ID Thing_VFEC_MeleeWeapon_Spatha921 is referenced (xml node name: li) but is not deep-saved. This will cause errors during loading. UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Warning (string) Verse.DebugLoadIDsSavingErrorsChecker:CheckForErrorsAndClear () Verse.ScribeSaver:FinalizeSaving () Verse.SafeSaver:DoSave (string,string,System.Action) Verse.SafeSaver:Save (string,string,System.Action,bool) (wrapper dynamic-method) Verse.GameDataSaveLoader:Verse.GameDataSaveLoader.SaveGame_Patch2 (string) RimWorld.Autosaver:DoAutosave () RimWorld.NamePlayerFactionDialogUtility/<>c__DisplayClass1_0:<Named>b__0 () (wrapper dynamic-method) Verse.LongEventHandler:Verse.LongEventHandler.UpdateCurrentSynchronousEvent_Patch2 (bool&) Verse.LongEventHandler:LongEventsUpdate (bool&) (wrapper dynamic-method) Verse.Root:Verse.Root.Update_Patch1 (Verse.Root) Verse.Root_Play:Update () Object with load ID Thing_Human1002 is referenced (xml node name: li) but is not deep-saved. This will cause errors during loading. UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Warning (string) Verse.DebugLoadIDsSavingErrorsChecker:CheckForErrorsAndClear () Verse.ScribeSaver:FinalizeSaving () Verse.SafeSaver:DoSave (string,string,System.Action) Verse.SafeSaver:Save (string,string,System.Action,bool) (wrapper dynamic-method) Verse.GameDataSaveLoader:Verse.GameDataSaveLoader.SaveGame_Patch2 (string) RimWorld.Autosaver:DoAutosave () RimWorld.NamePlayerFactionDialogUtility/<>c__DisplayClass1_0:<Named>b__0 () (wrapper dynamic-method) Verse.LongEventHandler:Verse.LongEventHandler.UpdateCurrentSynchronousEvent_Patch2 (bool&) Verse.LongEventHandler:LongEventsUpdate (bool&) (wrapper dynamic-method) Verse.Root:Verse.Root.Update_Patch1 (Verse.Root) Verse.Root_Play:Update ()
Doesn't say much to me, it seems like the game doesn't see it as an error but maybe it helps somehow.
< >
Showing 1-8 of 8 comments
Per page: 1530 50