RimWorld

RimWorld

Bulk Craft Everything [v18]
MaLi 7 Nov, 2017 @ 11:54am
[BUG] NULL when System.InvalidCastException: Cannot cast from source type to destination type. at Verse.AI.Toils_Recipe+<MakeUnfinishedThingIfNeeded>
Game was stuck after this, it is possible there was maybe old bill.

RimWorld 0.18.1712 rev572

Module should be latest version from steam workshop.

JobDriver threw exception in initAction. Pawn=Bjuras SH, Job=DoBill (Job_10849447) A=Thing_ElectricStove281679 B=Thing_Muffalo_Meat1243997 C=(133, 0, 130), Exception: System.InvalidCastException: Cannot cast from source type to destination type. at Verse.AI.Toils_Recipe+<MakeUnfinishedThingIfNeeded>c__AnonStorey0.<>m__0 () [0x000ef] in C:\Dev\RimWorld\Assets\Scripts\Verse\AI\JobDrivers\DoBill\Toils_Recipe.cs:53 at Verse.AI.JobDriver.TryActuallyStartNextToil () [0x001c7] in C:\Dev\RimWorld\Assets\Scripts\Verse\AI\JobDrivers\JobDriver.cs:437 lastJobGiver=RimWorld.JobGiver_Work, curJob.def=DoBill, curDriver=Verse.AI.JobDriver_DoBill UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object) UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[]) UnityEngine.Logger:Log(LogType, Object) UnityEngine.Debug:LogError(Object) Verse.Log:Error(String) (at C:\Dev\RimWorld\Assets\Scripts\Verse\Utility\Debug\Log\Log.cs:46) Verse.AI.Pawn_JobTracker:StartErrorRecoverJob(String) (at C:\Dev\RimWorld\Assets\Scripts\Verse\AI\Pawn_JobTracker.cs:558) Verse.AI.JobDriver:TryActuallyStartNextToil() (at C:\Dev\RimWorld\Assets\Scripts\Verse\AI\JobDrivers\JobDriver.cs:441) Verse.AI.JobDriver:ReadyForNextToil() (at C:\Dev\RimWorld\Assets\Scripts\Verse\AI\JobDrivers\JobDriver.cs:353) Verse.AI.JobDriver:Notify_PatherArrived() (at C:\Dev\RimWorld\Assets\Scripts\Verse\AI\JobDrivers\JobDriver.cs:553) Verse.AI.Pawn_PathFollower:PatherArrived() (at C:\Dev\RimWorld\Assets\Scripts\Verse\AI\Pathing\Pawn_PathFollower.cs:397) Verse.AI.Pawn_PathFollower:StartPath(LocalTargetInfo, PathEndMode) (at C:\Dev\RimWorld\Assets\Scripts\Verse\AI\Pathing\Pawn_PathFollower.cs:151) Verse.AI.<GotoThing>c__AnonStorey0:<>m__0() (at C:\Dev\RimWorld\Assets\Scripts\Verse\AI\JobDrivers\Toils\Toils_Movement.cs:26) Verse.AI.JobDriver:TryActuallyStartNextToil() (at C:\Dev\RimWorld\Assets\Scripts\Verse\AI\JobDrivers\JobDriver.cs:437) Verse.AI.JobDriver:ReadyForNextToil() (at C:\Dev\RimWorld\Assets\Scripts\Verse\AI\JobDrivers\JobDriver.cs:353) Verse.AI.JobDriver:TryActuallyStartNextToil() (at C:\Dev\RimWorld\Assets\Scripts\Verse\AI\JobDrivers\JobDriver.cs:448) Verse.AI.JobDriver:ReadyForNextToil() (at C:\Dev\RimWorld\Assets\Scripts\Verse\AI\JobDrivers\JobDriver.cs:353) Verse.AI.JobDriver:TryActuallyStartNextToil() (at C:\Dev\RimWorld\Assets\Scripts\Verse\AI\JobDrivers\JobDriver.cs:448) Verse.AI.JobDriver:ReadyForNextToil() (at C:\Dev\RimWorld\Assets\Scripts\Verse\AI\JobDrivers\JobDriver.cs:353) Verse.AI.JobDriver:TryActuallyStartNextToil() (at C:\Dev\RimWorld\Assets\Scripts\Verse\AI\JobDrivers\JobDriver.cs:448) Verse.AI.JobDriver:ReadyForNextToil() (at C:\Dev\RimWorld\Assets\Scripts\Verse\AI\JobDrivers\JobDriver.cs:353) Verse.AI.JobDriver:Notify_PatherArrived() (at C:\Dev\RimWorld\Assets\Scripts\Verse\AI\JobDrivers\JobDriver.cs:553) Verse.AI.Pawn_PathFollower:PatherArrived() (at C:\Dev\RimWorld\Assets\Scripts\Verse\AI\Pathing\Pawn_PathFollower.cs:397) Verse.AI.Pawn_PathFollower:TryEnterNextPathCell() (at C:\Dev\RimWorld\Assets\Scripts\Verse\AI\Pathing\Pawn_PathFollower.cs:498) Verse.AI.Pawn_PathFollower:PatherTick() (at C:\Dev\RimWorld\Assets\Scripts\Verse\AI\Pathing\Pawn_PathFollower.cs:260) Verse.Pawn:Tick() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Pawn\Pawn.cs:511) Verse.TickList:Tick() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Game\Ticking\TickList.cs:125) Verse.TickManager:DoSingleTick() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Game\Ticking\TickManager.cs:281) Verse.TickManager:TickManagerUpdate() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Game\Ticking\TickManager.cs:248) Verse.Game:UpdatePlay() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Game\Game.cs:503) Verse.Root_Play:Update() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Global\Root\Root_Play.cs:74) (Filename: C Line: 0) Receiving unhandled NULL exception
Last edited by MaLi; 7 Nov, 2017 @ 11:57am
< >
Showing 1-1 of 1 comments
Cotton Joe  [developer] 11 Nov, 2017 @ 7:13am 
Yes, I am sorry that this happened. What you need to do is destroy the work bench with the old bill and build a new one.
You can use god mode to do this if you dont want to lose the resrouces becaouse of a glitch.

The work bench in question is your cooking station, and this happened becaouse I added a unfinished thing for builk meals.
< >
Showing 1-1 of 1 comments
Per page: 1530 50