RimWorld

RimWorld

Object reference not set to an instance of an object
Hey all,
I hope I'm not posting this at the wrong place. Im playing rimworld at the latest update with mods that "should" be compatible with that version. I am getting this error approx. 4-5 hrs into a save. Since I am not that good at understanding these complicated messages, is there anyone out there that has any idea (by looking at the error message I've posted below) what could be causing this?


Error message:

System.NullReferenceException: Object reference not set to an instance of an object
at RimWorld.StatWorker_MarketValue.CalculatedBaseMarketValue (Verse.BuildableDef def, Verse.ThingDef stuffDef) [0x00000] in <filename unknown>:0
at RimWorld.StatWorker_MarketValue.GetValueUnfinalized (StatRequest req, Boolean applyPostProcess) [0x00000] in <filename unknown>:0
at RimWorld.StatWorker.GetValue (StatRequest req, Boolean applyPostProcess) [0x00000] in <filename unknown>:0
at RimWorld.StatWorker.GetValueAbstract (Verse.BuildableDef def, Verse.ThingDef stuffDef) [0x00000] in <filename unknown>:0
at RimWorld.StatExtension.GetStatValueAbstract (Verse.BuildableDef def, RimWorld.StatDef stat, Verse.ThingDef stuff) [0x00000] in <filename unknown>:0
at Verse.ThingDef.get_BaseMarketValue () [0x00000] in <filename unknown>:0
at RimWorld.IncidentWorker_QuestTradeRequest+<TryFindRandomRequestedThingDef>c__AnonStorey1.<>m__0 (Verse.ThingDef td) [0x00000] in <filename unknown>:0
at RimWorld.IncidentWorker_QuestTradeRequest+<TryFindRandomRequestedThingDef>c__AnonStorey1.<>m__1 (Verse.ThingDef td) [0x00000] in <filename unknown>:0
at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[Verse.ThingDef].MoveNext () [0x00000] in <filename unknown>:0
at System.Collections.Generic.List`1[Verse.ThingDef].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0
at System.Collections.Generic.List`1[Verse.ThingDef]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToList[ThingDef] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at Verse.GenCollection.TryRandomElement[ThingDef] (IEnumerable`1 source, Verse.ThingDef& result) [0x00000] in <filename unknown>:0
at RimWorld.IncidentWorker_QuestTradeRequest.TryFindRandomRequestedThingDef (Verse.Map map, Verse.ThingDef& thingDef, System.Int32& count) [0x00000] in <filename unknown>:0
at RimWorld.IncidentWorker_QuestTradeRequest.TryGenerateTradeRequest (RimWorld.Planet.TradeRequestComp target, Verse.Map map) [0x00000] in <filename unknown>:0
at RimWorld.IncidentWorker_QuestTradeRequest.TryExecuteWorker (RimWorld.IncidentParms parms) [0x00000] in <filename unknown>:0
at RimWorld.IncidentWorker.TryExecute (RimWorld.IncidentParms parms) [0x00000] in <filename unknown>:0
at RimWorld.Storyteller.TryFire (RimWorld.FiringIncident fi) [0x00000] in <filename unknown>:0
at RimWorld.IncidentQueue.IncidentQueueTick () [0x00000] in <filename unknown>:0
at RimWorld.Storyteller.StorytellerTick () [0x00000] in <filename unknown>:0
at Verse.TickManager.DoSingleTick () [0x00000] in <filename unknown>:0
Verse.Log:Error(String, Boolean)
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()
< >
Showing 1-6 of 6 comments
Imagine Wagons Sep 14, 2018 @ 11:30am 
Update: the issue seem to happen after some time. meaning that I can go back to an earlier save and play normal until it happens again.
CrunchyDuck Sep 14, 2018 @ 12:03pm 
This is most likely an item in your game that is bugged out. If you pay close attention to your pawns, including animals, it will almost certainly happen when they pick up/use/interact with something.
You should delete whatever causes it using the dev "destroy" option.
Imagine Wagons Sep 15, 2018 @ 2:55am 
Ok so I did that and there's no item in perticular that any pawn's picking up/using. Neither any animals..
Last edited by Imagine Wagons; Sep 15, 2018 @ 4:16am
Imagine Wagons Sep 17, 2018 @ 8:27am 
update: I've stared a new save and Im a few hrs into it and it happened again. It's like a really bad stuttering and the same error message keeps appearing.
KrysisMode Sep 17, 2018 @ 8:45am 
I'm hardly a modder but it's looking like you're using an older mod, B19 from what I've heard has redone the dictionary structure which translates to everything having to be updated to it or ELSE(TM). No seriously if they don't update to the new structure the game freaks out badly since it can't recognize anything in the mod most of the time.

I think it's got something to do with an event of somekind and generating some kind of material along with it. Are you running with any outdated mods not up to snuff yet?
Imagine Wagons Sep 17, 2018 @ 9:02am 
Originally posted by KrysisMode:
I'm hardly a modder but it's looking like you're using an older mod, B19 from what I've heard has redone the dictionary structure which translates to everything having to be updated to it or ELSE(TM). No seriously if they don't update to the new structure the game freaks out badly since it can't recognize anything in the mod most of the time.

I think it's got something to do with an event of somekind and generating some kind of material along with it. Are you running with any outdated mods not up to snuff yet?

Yup, that solved it. Ran on an old version of vegetable garden. Thanks :)
< >
Showing 1-6 of 6 comments
Per page: 1530 50

Date Posted: Sep 13, 2018 @ 5:39am
Posts: 6