pardeike / Achtung2

Command your colonists like a boss!
https://www.patreon.com/pardeike
MIT License
29 stars 11 forks source link

Can't Interact with area due to... Planting? #24

Closed MeowingInsanely closed 3 years ago

MeowingInsanely commented 3 years ago

I was wondering why my colonist can't do anything in an enclosed room, so I checked the dev mode log in-game & this popped up?

Log: ``` Root level exception in OnGUI(): System.MissingMethodException: bool Verse.ThingDef.BlocksPlanting(bool) at System.Collections.Generic.List`1[T].FindIndex (System.Int32 startIndex, System.Int32 count, System.Predicate`1[T] match) [0x0003b] in <567df3e0919241ba98db88bec4c6696f>:0 at System.Collections.Generic.List`1[T].FindIndex (System.Predicate`1[T] match) [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0 at Verse.GenCollection.Any[T] (System.Collections.Generic.List`1[T] list, System.Predicate`1[T] predicate) [0x00000] in <65f126dfb1e4464fa378d4b237f11a99>:0 at AchtungMod.JobDriver_SowAll.CanSowHere (Verse.IntVec3 cell, Verse.ThingDef def, System.Boolean fastMode) [0x000be] in :0 at AchtungMod.JobDriver_SowAll+<>c__DisplayClass6_2.b__5 (Verse.IntVec3 c) [0x00000] in :0 at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () [0x00037] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].MoveNext () [0x0006f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Collections.Generic.HashSet`1[T].UnionWith (System.Collections.Generic.IEnumerable`1[T] other) [0x00026] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Collections.Generic.HashSet`1[T]..ctor (System.Collections.Generic.IEnumerable`1[T] collection, System.Collections.Generic.IEqualityComparer`1[T] comparer) [0x0004b] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Collections.Generic.HashSet`1[T]..ctor (System.Collections.Generic.IEnumerable`1[T] collection) [0x00007] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at AchtungMod.JobDriver_SowAll.AllWorkAt (Verse.LocalTargetInfo target, Verse.Pawn thePawn, System.Boolean fastMode) [0x000d0] in :0 at AchtungMod.JobDriver_SowAll.CanStart (Verse.Pawn thePawn, Verse.LocalTargetInfo clickCell) [0x00025] in :0 at AchtungMod.Controller.AddDoThoroughly (System.Collections.Generic.List`1[T] options, UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Type driverType) [0x00036] in :0 at AchtungMod.Controller.AchtungChoicesAtFor (UnityEngine.Vector3 clickPos, Verse.Pawn pawn) [0x00029] in :0 at AchtungMod.FloatMenuMakerMap_ChoicesAtFor_Patch.Postfix (System.Collections.Generic.List`1[T] __result, UnityEngine.Vector3 clickPos, Verse.Pawn pawn) [0x0001d] in :0 at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.DMD?48656640::ChoicesAtFor_Patch1>(UnityEngine.Vector3,Verse.Pawn) at AchtungMod.MultiActions.AddColonist (AchtungMod.Colonist colonist) [0x0001f] in :0 at AchtungMod.MultiActions.<.ctor>b__3_0 (AchtungMod.Colonist colonist) [0x00000] in :0 at AchtungMod.Tools.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in :0 at AchtungMod.MultiActions..ctor (System.Collections.Generic.IEnumerable`1[T] colonists, UnityEngine.Vector3 clickPos) [0x00018] in :0 at AchtungMod.Controller.MouseDown (UnityEngine.Vector3 pos) [0x00076] in :0 at AchtungMod.Controller.HandleEvents () [0x0002f] in :0 at AchtungMod.Selector_HandleMapClicks_Patch.Prefix () [0x00005] in :0 at (wrapper dynamic-method) RimWorld.Selector.DMD?692472064::HandleMapClicks_Patch1>(RimWorld.Selector) at RimWorld.Selector.SelectorOnGUI () [0x00000] in <65f126dfb1e4464fa378d4b237f11a99>:0 at RimWorld.MapInterface.HandleLowPriorityInput () [0x0000f] in <65f126dfb1e4464fa378d4b237f11a99>:0 at RimWorld.UIRoot_Play.UIRootOnGUI () [0x000d3] in <65f126dfb1e4464fa378d4b237f11a99>:0 at Verse.Root.OnGUI () [0x0003d] in <65f126dfb1e4464fa378d4b237f11a99>:0 Verse.Log:Error(String, Boolean) Verse.Root:OnGUI() ```

I have Tilled Soil, VGP & VFF complete series mods that could maybe be interfering.

The fix is to remove the plant container (such as a masterwork plant pot =/). This is hard for Tilled soils however since I can't tell which of the soil is the one that's bugged.

Edit: Only in enclosed rooms (roofed or not), removing door also fixes it, readding a different pot in a different position/spot in the room still bugs.

pardeike commented 3 years ago

Before we blame Achtung we should remove it from that game and see what happens without it.