Skip to content

Breaks Fertile Fields compost bin #12

@vorshlumpf

Description

@vorshlumpf

I added this framework to an existing game with compost bins already built (from Fertile Fields 1.6). The resources required to build them no longer included raw compost (just the wood). The bins were unselectable with a single click, but you can do that by dragging the mouse, showing the attached image. Below is the related error in my user log:
Image

Exception spawning loaded thing CompostBin102732: System.NullReferenceException: Object reference not set to an instance of an object
[Ref 9406693B]
  at ProcessorFramework.CompProcessor.get_TotalIngredientCount () [0x0003a] in <dbcc74f89d6e412883d9937e4b71d92f>:0 
  at ProcessorFramework.CompProcessor.get_Empty () [0x00000] in <dbcc74f89d6e412883d9937e4b71d92f>:0 
  at ProcessorFramework.CompProcessor.PostSpawnSetup (System.Boolean respawningAfterLoad) [0x00055] in <dbcc74f89d6e412883d9937e4b71d92f>:0 
  at Verse.ThingWithComps.SpawnSetup (Verse.Map map, System.Boolean respawningAfterLoad) [0x00026] in <b7c18af6909f4623bed21df58cc9b431>:0 
    - POSTFIX OskarPotocki.VEF: Void VEF.Weapons.VanillaExpandedFramework_ThingWithComps_SpawnSetup_Patch:Postfix(ThingWithComps __instance)
  at Verse.Building.SpawnSetup (Verse.Map map, System.Boolean respawningAfterLoad) [0x0005d] in <b7c18af6909f4623bed21df58cc9b431>:0 
    - POSTFIX JPT.OpenTheWindows: Void OpenTheWindows.Building_SpawnSetup:Postfix(Building __instance, Map map)
  at RFF_Code.Building_CompostBin.SpawnSetup (Verse.Map currentGame, System.Boolean respawningAfterLoad) [0x00001] in <c7cc296ae97741518303fabf681ab714>:0 
  at Verse.GenSpawn.Spawn (Verse.Thing newThing, Verse.IntVec3 loc, Verse.Map map, Verse.Rot4 rot, Verse.WipeMode wipeMode, System.Boolean respawningAfterLoad, System.Boolean forbidLeavings) [0x00352] in <b7c18af6909f4623bed21df58cc9b431>:0 
    - PREFIX SmashPhil.VehicleFramework: Boolean Vehicles.Patch_Construction:RegisterThingSpawned(Thing newThing, IntVec3& loc, Map map, Rot4& rot, Thing& __result, Boolean respawningAfterLoad)
    - PREFIX Uuugggg.rimworld.Replace_Stuff.main: Void Replace_Stuff.NewThing.TransferSettings:Prefix(Thing newThing, IntVec3 loc, Map map, Rot4 rot, Boolean respawningAfterLoad, Thing& __state)
    - POSTFIX Uuugggg.rimworld.Replace_Stuff.main: Void Replace_Stuff.NewThing.TransferSettings:Postfix(Thing __result, Thing __state)
    - POSTFIX vanillaexpanded.achievements: Void AchievementsExpanded.AchievementHarmony:ThingBuildingSpawned(Thing newThing, IntVec3 loc, Map map, Rot4 rot, WipeMode wipeMode, Boolean respawningAfterLoad, Boolean forbidLeavings)
  at Verse.GenSpawn.SpawnBuildingAsPossible (Verse.Building building, Verse.Map map, System.Boolean respawningAfterLoad) [0x000fc] in <b7c18af6909f4623bed21df58cc9b431>:0 
  at Verse.Map.FinalizeLoading () [0x001c5] in <b7c18af6909f4623bed21df58cc9b431>:0 
    - PREFIX SmashPhil.VehicleFramework: Void SmashTools.ComponentCache:PreCacheInst(Map __instance)
    - POSTFIX net.pardeike.rimworld.mods.rangefinder: Void RangeFinder.Map_FinalizeLoading_Patch:Postfix()
Exception spawning loaded thing CompostBin102742: System.NullReferenceException: Object reference not set to an instance of an object
[Ref 9406693B] Duplicate stacktrace, see ref for original
Exception spawning loaded thing CompostBin102752: System.NullReferenceException: Object reference not set to an instance of an object
[Ref 9406693B] Duplicate stacktrace, see ref for original
Unloading 1 Unused Serialized files (Serialized files now loaded: 14)
[CM_Semi_Random_Research] <WorldTickUnexpectedState>: Error? Set as activeProject: Agriculture I currentAvailableProjects: 1 and of type : 0
Unloading 1 unused Assets to reduce memory usage. Loaded Objects now: 44298.
Total: 223.404600 ms (FindLiveObjects: 1.302000 ms CreateObjectMapping: 1.426400 ms MarkObjects: 220.583100 ms  DeleteObjects: 0.092500 ms)

Exception drawing CompostBin102732: System.NullReferenceException: Object reference not set to an instance of an object
[Ref A30C68E3]
  at ProcessorFramework.CompProcessor.get_TotalIngredientCount () [0x0003a] in <dbcc74f89d6e412883d9937e4b71d92f>:0 
  at ProcessorFramework.CompProcessor.get_Empty () [0x00000] in <dbcc74f89d6e412883d9937e4b71d92f>:0 
  at ProcessorFramework.CompProcessor.PostDraw () [0x00006] in <dbcc74f89d6e412883d9937e4b71d92f>:0 
  at Verse.ThingWithComps.Comps_PostDraw () [0x00019] in <b7c18af6909f4623bed21df58cc9b431>:0 
  at Verse.ThingWithComps.DrawAt (UnityEngine.Vector3 drawLoc, System.Boolean flip) [0x00018] in <b7c18af6909f4623bed21df58cc9b431>:0 
  at Verse.Thing.DynamicDrawPhaseAt (Verse.DrawPhase phase, UnityEngine.Vector3 drawLoc, System.Boolean flip) [0x00004] in <b7c18af6909f4623bed21df58cc9b431>:0 
  at Verse.Thing.DynamicDrawPhase (Verse.DrawPhase phase) [0x00017] in <b7c18af6909f4623bed21df58cc9b431>:0 
  at Verse.DynamicDrawManager.DrawDynamicThings () [0x0011f] in <b7c18af6909f4623bed21df58cc9b431>:0 
    - PREFIX net.pardeike.reversecommands: Void ReverseCommands.DynamicDrawManager_DrawDynamicThings_Patch:Prefix()
    - POSTFIX net.pardeike.rimworld.mod.camera+: Void CameraPlus.DynamicDrawManager_DrawDynamicThings_Patch:Postfix()
Exception drawing CompostBin102742: System.NullReferenceException: Object reference not set to an instance of an object

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions