erdelf / AlienRaces

Rimworld mod alien race framework
MIT License
103 stars 69 forks source link

bug with VGP Garden Gourmet #70

Closed ildar-ceo closed 1 year ago

ildar-ceo commented 2 years ago

If simple food are cooked Meat Human with Salted Meat, Red lentil together, when pawn eat this food got error:

JobDriver threw exception in initAction for pawn Bartleby driver=JobDriver_Ingest (toilIndex=9) driver.job=(Ingest (Job_27810) A=Thing_MealSimple37783 B=(112, 0, 98))
System.NullReferenceException: Object reference not set to an instance of an object
  at AlienRace.Utilities.DifferentRace (Verse.ThingDef one, Verse.ThingDef two) [0x00011] in <e985ce2f5d5441eda40de72a2bb2987d>:0 
  at AlienRace.HarmonyPatches.IngestedPrefix (Verse.Pawn ingester, Verse.Thing __instance) [0x000aa] in <e985ce2f5d5441eda40de72a2bb2987d>:0 
  at (wrapper dynamic-method) Verse.Thing.Verse.Thing.Ingested_Patch1(Verse.Thing,Verse.Pawn,single)
  at RimWorld.Toils_Ingest+<>c__DisplayClass12_0.<FinalizeIngest>b__0 () [0x00182] in <e607f12d228b4ae997319523a88e9fd1>:0 
  at Verse.AI.JobDriver.TryActuallyStartNextToil () [0x001de] in <e607f12d228b4ae997319523a88e9fd1>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.AI.JobUtility:TryStartErrorRecoverJob (Verse.Pawn,string,System.Exception,Verse.AI.JobDriver)
Verse.AI.JobDriver:TryActuallyStartNextToil ()
Verse.AI.JobDriver:ReadyForNextToil ()
Verse.AI.JobDriver:DriverTick ()
Verse.AI.Pawn_JobTracker:JobTrackerTick ()
Verse.Pawn:Tick ()
Verse.TickList:Tick ()
Verse.TickManager:DoSingleTick ()
Verse.TickManager:TickManagerUpdate ()
Verse.Game:UpdatePlay ()
Verse.Root_Play:Update ()

Mods:

<?xml version="1.0" encoding="utf-8"?>
<ModsConfigData>
  <version>1.3.3159 rev756</version>
  <activeMods>
    <li>brrainz.harmony</li>
    <li>ludeon.rimworld</li>
    <li>ludeon.rimworld.royalty</li>
    <li>ludeon.rimworld.ideology</li>
    <li>erdelf.humanoidalienraces</li>
    <li>name.krypt.rimworld.moddiff</li>
    <li>dismarzero.vgp.vgpvegetablegarden</li>
    <li>dismarzero.vgp.vgpgardengourmet</li>
  </activeMods>
  <knownExpansions>
    <li>ludeon.rimworld.ideology</li>
    <li>ludeon.rimworld.royalty</li>
  </knownExpansions>
</ModsConfigData>