[1.1] Cannot build anything

Started by Zone, February 27, 2020, 10:39:15 PM

Previous topic - Next topic

Zone

Here is a link to the log dump.

I've encountered a problem where whenever I would place an object, it gives me a NullReference error. I do not understand code, but I believe this means the button does not match the object, or the object has disappeared?

When I try to place walls, for example, it shows the item cost and such but the gray highlights that usually come with it are gone, invisible. This also applies to objects. The pawns themselves are alright, being able to shoot and such, but I cannot build.

This bit of code is the culprit, and I have tried to decipher it but to no avail. It does not tell me which mod is the problem, and it repeats itself whenever I try to place something.

Error in GenStep: System.NullReferenceException: Object reference not set to an instance of an object
  at (wrapper dynamic-method) RimWorld.GenConstruct.DMD<DMD<CanPlaceBlueprintAt_Patch1>?-1495042816::CanPlaceBlueprintAt_Patch1>(intptr,Verse.BuildableDef,Verse.IntVec3,Verse.Rot4,Verse.Map,bool,Verse.Thing,Verse.Thing,Verse.ThingDef)
  at RimWorld.SketchThing.IsSpawningBlocked (Verse.IntVec3 at, Verse.Map map, Verse.Thing thingToIgnore, System.Boolean wipeIfCollides) [0x0001a] in <7db1f4b417fe457d9d6d60001b0240b1>:0
  at RimWorld.SketchThing.Spawn (Verse.IntVec3 at, Verse.Map map, RimWorld.Faction faction, RimWorld.Sketch+SpawnMode spawnMode, System.Boolean wipeIfCollides, System.Collections.Generic.List`1[T] spawnedThings, System.Boolean dormant) [0x00000] in <7db1f4b417fe457d9d6d60001b0240b1>:0
  at RimWorld.Sketch.Spawn (Verse.Map map, Verse.IntVec3 pos, RimWorld.Faction faction, RimWorld.Sketch+SpawnPosType posType, RimWorld.Sketch+SpawnMode spawnMode, System.Boolean wipeIfCollides, System.Boolean clearEdificeWhereFloor, System.Collections.Generic.List`1[T] spawnedThings, System.Boolean dormant, System.Boolean buildRoofsInstantly) [0x000a8] in <7db1f4b417fe457d9d6d60001b0240b1>:0
  at RimWorld.GenStep_ScatterRuinsSimple.ScatterAt (Verse.IntVec3 c, Verse.Map map, Verse.GenStepParams parms, System.Int32 stackCount) [0x00077] in <7db1f4b417fe457d9d6d60001b0240b1>:0
  at Verse.GenStep_Scatterer.Generate (Verse.Map map, Verse.GenStepParams parms) [0x0002e] in <7db1f4b417fe457d9d6d60001b0240b1>:0
  at Verse.MapGenerator.GenerateContentsIntoMap (System.Collections.Generic.IEnumerable`1[T] genStepDefs, Verse.Map map, System.Int32 seed) [0x000d5] in <7db1f4b417fe457d9d6d60001b0240b1>:0

Canute

Hi,
yep error msg. rarely give a hint about what mod cause them.
But at your case the word "Sketch" is unusual, i didn't notice them before at an error (but i can be wrong).

Now your work is to check the mod if you know/see any "Sketch", maybe use a search at the mods folder about "sketch" any results beside maybe Core could point at the mod.

Other way is to check if the problem appear on a new colony from the beginning too.
You can use hugslib quickstart feature to create pretty fast a test colony (developer mode on, then the top right icon).
If the problem appear on a new colony too, disable mods and test it again until it works and you narrow down the mod.

Zone

I'd do that, but steam mods don't show up in my 'Mods' folder. It's been this way ever since I bought the game, but I didn't pay it mind. I did some searching and I found a similar error report that was caused by a hauling issue. I'm looking for error logs similar to mine and if I get another hauling-related incident I'll remove the haul-related mods andd see how it goes from there.

Zone

Fixed it! The problem WAS hauling-related, and I narrowed it down to 'Best Mix' not playing nice with a stockpile mod. I'm leaving this here as literature for the next one who encounters this problem: hauling-related.

Canute

You should report it to the mod author, so he is aware of that issue.

karldandleton

#5
I'm having this exact same issue, and removing hauling-related mods hasn't fixed it.
My mod list (in order):

HugsLib
EdB Prepare Carefully
Prisoner Harvesting
RimHUD
Tilled Soil
Moody
Wall Light
[FSF] Complex Jobs
Interaction Bubbles
Blighted Alert
Replace Stuff
Simple Sidearms
Realistic Rooms
Predator Hunt Alert
Expanded Prosthetics and Organ Enhancements
Dubs Mint Menus
Misc. Training
RT Fuse
[KV] RimFridge - 1.1

I get the same bit of code but also receive subsequent errors:

Error in GenStep: System.NullReferenceException: Object reference not set to an instance of an object
  at (wrapper dynamic-method) RimWorld.GenConstruct.DMD<DMD<CanPlaceBlueprintAt_Patch1>?-1938861184::CanPlaceBlueprintAt_Patch1>(intptr,Verse.BuildableDef,Verse.IntVec3,Verse.Rot4,Verse.Map,bool,Verse.Thing,Verse.Thing,Verse.ThingDef)
  at RimWorld.SketchTerrain.IsSpawningBlocked (Verse.IntVec3 at, Verse.Map map, Verse.Thing thingToIgnore, System.Boolean wipeIfCollides) [0x00026] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.SketchTerrain.Spawn (Verse.IntVec3 at, Verse.Map map, RimWorld.Faction faction, RimWorld.Sketch+SpawnMode spawnMode, System.Boolean wipeIfCollides, System.Collections.Generic.List`1[T] spawnedThings, System.Boolean dormant) [0x00000] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.Sketch.Spawn (Verse.Map map, Verse.IntVec3 pos, RimWorld.Faction faction, RimWorld.Sketch+SpawnPosType posType, RimWorld.Sketch+SpawnMode spawnMode, System.Boolean wipeIfCollides, System.Boolean clearEdificeWhereFloor, System.Collections.Generic.List`1[T] spawnedThings, System.Boolean dormant, System.Boolean buildRoofsInstantly) [0x000a8] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.GenStep_ScatterRuinsSimple.ScatterAt (Verse.IntVec3 c, Verse.Map map, Verse.GenStepParams parms, System.Int32 stackCount) [0x00077] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at Verse.GenStep_Scatterer.Generate (Verse.Map map, Verse.GenStepParams parms) [0x0002e] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at Verse.MapGenerator.GenerateContentsIntoMap (System.Collections.Generic.IEnumerable`1[T] genStepDefs, Verse.Map map, System.Int32 seed) [0x000d5] in <33b99ab6cf5748ec8fe371b3321b9db6>:0

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

Error while resolving symbol "ancientTemple" with params=rect=(107,198,123,215), faction=null, custom=null, pawnGroupMakerParams=null, pawnGroupKindDef=null, roofDef=null, noRoof=null, addRoomCenterToRootsToUnfog=null, singleThingToSpawn=null, singleThingDef=null, singleThingStuff=null, singleThingStackCount=null, skipSingleThingIfHasToWipeBuildingOrDoesntFit=null, spawnBridgeIfTerrainCantSupportThing=null, singlePawnToSpawn=null, singlePawnKindDef=null, disableSinglePawn=True, singlePawnLord=null, singlePawnSpawnCellExtraPredicate=null, singlePawnGenerationRequest=null, postThingSpawn=null, postThingGenerate=null, mechanoidsCount=null, hivesCount=null, 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, thingSetMakerDef=null, thingSetMakerParams=null, stockpileConcreteContents=null, stockpileMarketValue=null, innerStockpileSize=null, edgeDefenseWidth=null, edgeDefenseTurretsCount=null, edgeDefenseMortarsCount=null, edgeDefenseGuardsCount=null, mortarDef=null, pathwayFloorDef=null, cultivatedPlantDef=null, fillWithThingsPadding=null, settlementPawnGroupPoints=null, settlementPawnGroupSeed=null, streetHorizontal=null, edgeThingAvoidOtherEdgeThings=null, edgeThingMustReachMapEdge=null, allowPlacementOffEdge=null, thrustAxis=null, makeWarningLetter=True, allowedMonumentThings=null

Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at (wrapper dynamic-method) RimWorld.GenConstruct.DMD<DMD<CanPlaceBlueprintAt_Patch1>?-1938861184::CanPlaceBlueprintAt_Patch1>(intptr,Verse.BuildableDef,Verse.IntVec3,Verse.Rot4,Verse.Map,bool,Verse.Thing,Verse.Thing,Verse.ThingDef)
  at RimWorld.SketchTerrain.IsSpawningBlocked (Verse.IntVec3 at, Verse.Map map, Verse.Thing thingToIgnore, System.Boolean wipeIfCollides) [0x00026] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.SketchTerrain.Spawn (Verse.IntVec3 at, Verse.Map map, RimWorld.Faction faction, RimWorld.Sketch+SpawnMode spawnMode, System.Boolean wipeIfCollides, System.Collections.Generic.List`1[T] spawnedThings, System.Boolean dormant) [0x00000] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.Sketch.Spawn (Verse.Map map, Verse.IntVec3 pos, RimWorld.Faction faction, RimWorld.Sketch+SpawnPosType posType, RimWorld.Sketch+SpawnMode spawnMode, System.Boolean wipeIfCollides, System.Boolean clearEdificeWhereFloor, System.Collections.Generic.List`1[T] spawnedThings, System.Boolean dormant, System.Boolean buildRoofsInstantly) [0x000a8] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.BaseGen.SymbolResolver_AncientTemple.Resolve (RimWorld.BaseGen.ResolveParams rp) [0x000f0] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.BaseGen.BaseGen.Resolve (RimWorld.BaseGen.SymbolStack+Element toResolve) [0x000e6] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.BaseGen.BaseGen.Generate () [0x000c8] in <33b99ab6cf5748ec8fe371b3321b9db6>:0

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

Unloading 0 Unused Serialized files (Serialized files now loaded: 1)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 17212.
Total: 112.425600 ms (FindLiveObjects: 0.906800 ms CreateObjectMapping: 1.325000 ms MarkObjects: 110.160400 ms  DeleteObjects: 0.033000 ms)

Exception in UIRootUpdate: System.NullReferenceException: Object reference not set to an instance of an object
  at (wrapper dynamic-method) RimWorld.GenConstruct.DMD<DMD<CanPlaceBlueprintAt_Patch1>?-1938861184::CanPlaceBlueprintAt_Patch1>(intptr,Verse.BuildableDef,Verse.IntVec3,Verse.Rot4,Verse.Map,bool,Verse.Thing,Verse.Thing,Verse.ThingDef)
  at (wrapper dynamic-method) RimWorld.Designator_Build.DMD<DMD<CanDesignateCell_Patch2>?-1738262912::CanDesignateCell_Patch2>(RimWorld.Designator_Build,intptr,Verse.IntVec3)
  at RimWorld.Designator_Place.SelectedUpdate () [0x00035] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.Designator_Build.SelectedUpdate () [0x00000] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at Verse.DesignatorManager.DesignatorManagerUpdate () [0x00013] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.MapInterface.MapInterfaceUpdate () [0x00027] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.UIRoot_Play.UIRootUpdate () [0x00015] in <33b99ab6cf5748ec8fe371b3321b9db6>:0

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

Exception in UIRootUpdate: System.NullReferenceException: Object reference not set to an instance of an object
  at (wrapper dynamic-method) RimWorld.GenConstruct.DMD<DMD<CanPlaceBlueprintAt_Patch1>?-1938861184::CanPlaceBlueprintAt_Patch1>(intptr,Verse.BuildableDef,Verse.IntVec3,Verse.Rot4,Verse.Map,bool,Verse.Thing,Verse.Thing,Verse.ThingDef)
  at (wrapper dynamic-method) RimWorld.Designator_Build.DMD<DMD<CanDesignateCell_Patch2>?-1738262912::CanDesignateCell_Patch2>(RimWorld.Designator_Build,intptr,Verse.IntVec3)
  at RimWorld.Designator_Place.SelectedUpdate () [0x00035] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.Designator_Build.SelectedUpdate () [0x00000] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at Verse.DesignatorManager.DesignatorManagerUpdate () [0x00013] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.MapInterface.MapInterfaceUpdate () [0x00027] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.UIRoot_Play.UIRootUpdate () [0x00015] in <33b99ab6cf5748ec8fe371b3321b9db6>:0

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)


any help would be really appreciated. Thank you


EDIT:
The mod causing trouble is Replace Stuff. I've added my other mods back in and it seems to be working fine without this one. I've also tested it with only the HugsLib and Replace Stuff mod enabled; the issue still occurs. I will reach out to the mod creator

EDIT #2 because I'm linking this forum post to the steam bug discussion on the workshop page.

FULL STACKTRACE (with only HugsLib and Replace Stuff enabled):

It's pretty much the same as above but I included the previous lines in the trace.


<RI> Initializing input.

<RI> Input initialized.

<RI> Initialized touch support.

UnloadTime: 0.486100 ms
RimWorld 1.1.2558 rev1000
Fallback handler could not load library D:/Steam/steamapps/common/RimWorld/RimWorldWin64_Data/Mono/data-000002A240061010.dll
Fallback handler could not load library D:/Steam/steamapps/common/RimWorld/RimWorldWin64_Data/Mono/data-000002A23FF841E0.dll
Fallback handler could not load library D:/Steam/steamapps/common/RimWorld/RimWorldWin64_Data/Mono/data-000002A23FFAB7F0.dll
[HugsLib] version 7.0.1
Fallback handler could not load library D:/Steam/steamapps/common/RimWorld/RimWorldWin64_Data/Mono/data-000002A24020C250.dll
Fallback handler could not load library D:/Steam/steamapps/common/RimWorld/RimWorldWin64_Data/Mono/data-000002A2438EC090.dll
Loaded file (Scenario) is from version 1.0.2096 rev473, we are running version 1.1.2558 rev1000.

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

Loaded file (Scenario) is from version 0.19.2009 rev485, we are running version 1.1.2558 rev1000.

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

Unloading 5 Unused Serialized files (Serialized files now loaded: 1)

Unloading 51 unused Assets to reduce memory usage. Loaded Objects now: 10970.
Total: 75.215700 ms (FindLiveObjects: 0.940300 ms CreateObjectMapping: 0.493300 ms MarkObjects: 73.730700 ms  DeleteObjects: 0.051100 ms)

Unloading 3 Unused Serialized files (Serialized files now loaded: 1)
UnloadTime: 0.220700 ms

Unloading 16 unused Assets to reduce memory usage. Loaded Objects now: 11256.
Total: 76.726700 ms (FindLiveObjects: 0.478900 ms CreateObjectMapping: 0.487000 ms MarkObjects: 75.691300 ms  DeleteObjects: 0.069200 ms)

Initializing new game with mods:
  - Ludeon.RimWorld
  - Ludeon.RimWorld.Royalty
  - UnlimitedHugs.HugsLib
  - Uuugggg.ReplaceStuff
Error in GenStep: System.NullReferenceException: Object reference not set to an instance of an object
  at (wrapper dynamic-method) RimWorld.GenConstruct.DMD<DMD<CanPlaceBlueprintAt_Patch1>?913712256::CanPlaceBlueprintAt_Patch1>(intptr,Verse.BuildableDef,Verse.IntVec3,Verse.Rot4,Verse.Map,bool,Verse.Thing,Verse.Thing,Verse.ThingDef)
  at RimWorld.SketchTerrain.IsSpawningBlocked (Verse.IntVec3 at, Verse.Map map, Verse.Thing thingToIgnore, System.Boolean wipeIfCollides) [0x00026] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.SketchTerrain.Spawn (Verse.IntVec3 at, Verse.Map map, RimWorld.Faction faction, RimWorld.Sketch+SpawnMode spawnMode, System.Boolean wipeIfCollides, System.Collections.Generic.List`1[T] spawnedThings, System.Boolean dormant) [0x00000] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.Sketch.Spawn (Verse.Map map, Verse.IntVec3 pos, RimWorld.Faction faction, RimWorld.Sketch+SpawnPosType posType, RimWorld.Sketch+SpawnMode spawnMode, System.Boolean wipeIfCollides, System.Boolean clearEdificeWhereFloor, System.Collections.Generic.List`1[T] spawnedThings, System.Boolean dormant, System.Boolean buildRoofsInstantly) [0x000a8] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.GenStep_ScatterRuinsSimple.ScatterAt (Verse.IntVec3 c, Verse.Map map, Verse.GenStepParams parms, System.Int32 stackCount) [0x00077] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at Verse.GenStep_Scatterer.Generate (Verse.Map map, Verse.GenStepParams parms) [0x0002e] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at Verse.MapGenerator.GenerateContentsIntoMap (System.Collections.Generic.IEnumerable`1[T] genStepDefs, Verse.Map map, System.Int32 seed) [0x000d5] in <33b99ab6cf5748ec8fe371b3321b9db6>:0

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

Unloading 0 Unused Serialized files (Serialized files now loaded: 1)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 17550.
Total: 118.256600 ms (FindLiveObjects: 1.176500 ms CreateObjectMapping: 1.005600 ms MarkObjects: 116.040800 ms  DeleteObjects: 0.033300 ms)

Exception in UIRootUpdate: System.NullReferenceException: Object reference not set to an instance of an object
  at (wrapper dynamic-method) RimWorld.GenConstruct.DMD<DMD<CanPlaceBlueprintAt_Patch1>?913712256::CanPlaceBlueprintAt_Patch1>(intptr,Verse.BuildableDef,Verse.IntVec3,Verse.Rot4,Verse.Map,bool,Verse.Thing,Verse.Thing,Verse.ThingDef)
  at (wrapper dynamic-method) RimWorld.Designator_Build.DMD<DMD<CanDesignateCell_Patch2>?-1923051008::CanDesignateCell_Patch2>(RimWorld.Designator_Build,intptr,Verse.IntVec3)
  at RimWorld.Designator_Place.SelectedUpdate () [0x00035] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.Designator_Build.SelectedUpdate () [0x00000] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at Verse.DesignatorManager.DesignatorManagerUpdate () [0x00013] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.MapInterface.MapInterfaceUpdate () [0x00027] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.UIRoot_Play.UIRootUpdate () [0x00015] in <33b99ab6cf5748ec8fe371b3321b9db6>:0

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

Exception in UIRootUpdate: System.NullReferenceException: Object reference not set to an instance of an object
  at (wrapper dynamic-method) RimWorld.GenConstruct.DMD<DMD<CanPlaceBlueprintAt_Patch1>?913712256::CanPlaceBlueprintAt_Patch1>(intptr,Verse.BuildableDef,Verse.IntVec3,Verse.Rot4,Verse.Map,bool,Verse.Thing,Verse.Thing,Verse.ThingDef)
  at (wrapper dynamic-method) RimWorld.Designator_Build.DMD<DMD<CanDesignateCell_Patch2>?-1923051008::CanDesignateCell_Patch2>(RimWorld.Designator_Build,intptr,Verse.IntVec3)
  at RimWorld.Designator_Place.SelectedUpdate () [0x00035] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.Designator_Build.SelectedUpdate () [0x00000] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at Verse.DesignatorManager.DesignatorManagerUpdate () [0x00013] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.MapInterface.MapInterfaceUpdate () [0x00027] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
  at RimWorld.UIRoot_Play.UIRootUpdate () [0x00015] in <33b99ab6cf5748ec8fe371b3321b9db6>:0

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)





Uuugggg

Issue with HugsLib/HarmonyLib 2.0.0.7 update. Await a fix from that end.

Tynan

Yep, there's been issues between Harmony and some other mods recently, namely Replace Stuff.

Leaving this open for now so others can find.
Tynan Sylvester - @TynanSylvester - Tynan's Blog