bbradson / Performance-Fish

Performance Mod for RimWorld
Mozilla Public License 2.0
423 stars 34 forks source link

Strange Issue With Recipe #15

Closed TurtleShroom closed 1 year ago

TurtleShroom commented 1 year ago

Good afternoon.

I have a Mod that adds a special Recipe for Pawns to take a corpse and roast it whole on a rotisserie.

This is the Recipe: `

VBYSpitRoastedAnimal Spit-roast a whole animal for a large gathering. Roasting a whole animal. 2000 CookSpeed Cook Recipe_CookMeal
  • Corpses
  • ST_BananaScytheCorpse
  • 1
  • Corpses
  • ST_BananaScytheCorpse
  • CorpsesMechanoid
  • AllowRotten
  • CorpsesAnimal
  • 10 8 Cooking
  • VBY_Spit_Roast
  • `

    However, when I try to use the Recipe, right-clicking on the Spit Roats Building causes this error to appear each time I right-click it: Root level exception in OnGUI(): System.IndexOutOfRangeException: Index was outside the bounds of the array. at PerformanceFish.JobSystem.WorkGiver_DoBillOptimization+TryFindBestIngredientsInSet_NoMixHelper_Patch.MarkIngredientCountAsFound (Verse.IngredientCount ingredientCount, RimWorld.Bill bill) [0x00040] in <f28263baa24449fe855d81f4f3ff27b9>:0 at (wrapper dynamic-method) RimWorld.WorkGiver_DoBill.RimWorld.WorkGiver_DoBill.TryFindBestIngredientsInSet_NoMixHelper_Patch1(System.Collections.Generic.List1,System.Collections.Generic.List1<Verse.IngredientCount>,System.Collections.Generic.List1,Verse.IntVec3,bool,System.Collections.Generic.List1<Verse.IngredientCount>,RimWorld.Bill) at (wrapper dynamic-method) RimWorld.WorkGiver_DoBill.RimWorld.WorkGiver_DoBill.TryFindBestBillIngredientsInSet_NoMix_Patch2(System.Collections.Generic.List1,RimWorld.Bill,System.Collections.Generic.List1<Verse.ThingCount>,Verse.IntVec3,bool,System.Collections.Generic.List1) at (wrapper dynamic-method) RimWorld.WorkGiver_DoBill.RimWorld.WorkGiver_DoBill.TryFindBestBillIngredientsInSet_Patch1(System.Collections.Generic.List1<Verse.Thing>,RimWorld.Bill,System.Collections.Generic.List1,Verse.IntVec3,bool,System.Collections.Generic.List1<Verse.IngredientCount>) at RimWorld.WorkGiver_DoBill+<>c__DisplayClass23_0.<TryFindBestBillIngredients>b__1 (System.Collections.Generic.List1[T] foundThings) [0x0001e] in <95de19971c5d40878d8742747904cdcd>:0 at (wrapper dynamic-method) RimWorld.WorkGiver_DoBill.RimWorld.WorkGiver_DoBill.TryFindBestIngredientsHelper_Patch1(System.Predicate1<Verse.Thing>,System.Predicate1<System.Collections.Generic.List1<Verse.Thing>>,System.Collections.Generic.List1,Verse.Pawn,Verse.Thing,System.Collections.Generic.List1<Verse.ThingCount>,single) at (wrapper dynamic-method) RimWorld.WorkGiver_DoBill.RimWorld.WorkGiver_DoBill.TryFindBestBillIngredients_Patch2(RimWorld.Bill,Verse.Pawn,Verse.Thing,System.Collections.Generic.List1,System.Collections.Generic.List1<Verse.IngredientCount>) at RimWorld.WorkGiver_DoBill.StartOrResumeBillJob (Verse.Pawn pawn, RimWorld.IBillGiver giver) [0x002fb] in <95de19971c5d40878d8742747904cdcd>:0 at (wrapper dynamic-method) RimWorld.WorkGiver_DoBill.RimWorld.WorkGiver_DoBill.JobOnThing_Patch1(RimWorld.WorkGiver_DoBill,Verse.Pawn,Verse.Thing,bool) at RimWorld.WorkGiver_Scanner.HasJobOnThing (Verse.Pawn pawn, Verse.Thing t, System.Boolean forced) [0x00000] in <95de19971c5d40878d8742747904cdcd>:0 at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.AddJobGiverWorkOrders_Patch2(UnityEngine.Vector3,Verse.Pawn,System.Collections.Generic.List1,bool) at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.AddUndraftedOrders_Patch2(UnityEngine.Vector3,Verse.Pawn,System.Collections.Generic.List`1) at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.ChoicesAtFor_Patch2(UnityEngine.Vector3,Verse.Pawn,bool) at RimWorld.FloatMenuMakerMap.TryMakeFloatMenu (Verse.Pawn pawn) [0x000dc] in <95de19971c5d40878d8742747904cdcd>:0 at RimWorld.Selector.HandleMapClicks () [0x000ac] in <95de19971c5d40878d8742747904cdcd>:0 at RimWorld.Selector.SelectorOnGUI () [0x00000] in <95de19971c5d40878d8742747904cdcd>:0 at RimWorld.MapInterface.HandleLowPriorityInput () [0x0000f] in <95de19971c5d40878d8742747904cdcd>:0 at (wrapper dynamic-method) RimWorld.UIRoot_Play.RimWorld.UIRoot_Play.UIRootOnGUI_Patch3(RimWorld.UIRoot_Play) at (wrapper dynamic-method) Verse.Root.Verse.Root.OnGUI_Patch2(Verse.Root) UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch5 (string) (wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch2 (Verse.Root)

    `

    When I remove that Recipe from the Bills Tab of the Spit Roast, the Building works correctly. I feel that this is due to the fact that it is calling Corpses and not normal ingredients, but I cannot be sure.

    What am I doing wrong?

    Thank you for any assistance you may render. -TURTLESHROOM

    TurtleShroom commented 1 year ago

    Whoops, it turns out that this was an error on my end. I extend my sincerest apologies for bothering you.

    bbradson commented 1 year ago

    Alright. For future issues, do please try to first test without Fish active too.