Broken Orbital Traders, strange errors, are they caused by mods?

Started by Lt.Havoc, January 30, 2017, 09:54:28 AM

Previous topic - Next topic

Lt.Havoc

So, I have a problem with my current run on RimWorld where  orbital traders are utterly broke, mostly Bulk Goods traders but sometimes others as well. What happens is, that I get an error and then the Trader no longer works. I first thought its the Misc Robots mod, but author said its not caused by that, then I thought it is caused by Humanoid Aliens, but author says that his mod doesnt cause the problem either.

Here are the logs and the relevant errors:
https://gist.github.com/HugsLibRecordKeeper/78ade2815c8104279b711cc24c82efed

QuoteSystem.NullReferenceException: Object reference not set to an instance of an object
  at Verse.PawnGenerationRequest.EnsureNonNullFaction () [0x00000] in <filename unknown>:0
  at AlienRace.AlienPawnGenerator.GeneratePawn (PawnGenerationRequest request) [0x00000] in <filename unknown>:0
  at RimWorld.StockGenerator_Slaves+<GenerateThings>c__Iterator161.MoveNext () [0x00000] in <filename unknown>:0
  at RimWorld.TraderStockGenerator+<GenerateTraderThings>c__Iterator164.MoveNext () [0x00000] in <filename unknown>:0
  at System.Collections.Generic.List`1[Verse.Thing].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0
  at System.Collections.Generic.List`1[Verse.Thing]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0
  at System.Linq.Enumerable.ToList[Thing] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
  at RimWorld.TradeShip.GenerateThings () [0x00000] in <filename unknown>:0
  at RimWorld.IncidentWorker_OrbitalTraderArrival.TryExecute (RimWorld.IncidentParms parms) [0x00000] in <filename unknown>:0
  at RimWorld.Storyteller.TryFire (RimWorld.FiringIncident fi) [0x00000] in <filename unknown>:0
  at RimWorld.Storyteller.StorytellerTick () [0x00000] in <filename unknown>:0
at Verse.TickManager.DoSingleTick () [0x00000] in <filename unknown>:0 

https://gist.github.com/HugsLibRecordKeeper/b6b030fe12e527f4f86a4b5b19f9628a

QuoteSystem.NullReferenceException: Object reference not set to an instance of an object
  at Verse.PawnGenerationRequest.EnsureNonNullFaction () [0x00000] in <filename unknown>:0
  at AlienRace.AlienPawnGenerator.GeneratePawn (PawnGenerationRequest request) [0x00000] in <filename unknown>:0
  at Hospitality.IncidentWorker_WandererJoin.CreateNewPawn () [0x00000] in <filename unknown>:0
  at Hospitality.IncidentWorker_WandererJoin.TryExecute (RimWorld.IncidentParms parms) [0x00000] in <filename unknown>:0
  at RimWorld.Storyteller.TryFire (RimWorld.FiringIncident fi) [0x00000] in <filename unknown>:0
  at RimWorld.Storyteller.StorytellerTick () [0x00000] in <filename unknown>:0
at Verse.TickManager.DoSingleTick () [0x00000] in <filename unknown>:0

QuoteSystem.NullReferenceException: Object reference not set to an instance of an object
  at RimWorld.StockGenerator_Animals.PawnKindAllowed (Verse.PawnKindDef kind, Verse.Map map) [0x00000] in <filename unknown>:0
  at RimWorld.StockGenerator_Animals+<GenerateThings>c__Iterator162.<>m__43E (Verse.PawnKindDef k) [0x00000] in <filename unknown>:0
  at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[Verse.PawnKindDef].MoveNext () [0x00000] in <filename unknown>:0
  at Verse.GenCollection.TryRandomElementByWeight[PawnKindDef] (IEnumerable`1 source, System.Func`2 weightSelector, Verse.PawnKindDef& result) [0x00000] in <filename unknown>:0
  at RimWorld.StockGenerator_Animals+<GenerateThings>c__Iterator162.MoveNext () [0x00000] in <filename unknown>:0
  at RimWorld.TraderStockGenerator+<GenerateTraderThings>c__Iterator164.MoveNext () [0x00000] in <filename unknown>:0
  at System.Collections.Generic.List`1[Verse.Thing].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0
  at System.Collections.Generic.List`1[Verse.Thing]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0
  at System.Linq.Enumerable.ToList[Thing] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
  at RimWorld.TradeShip.GenerateThings () [0x00000] in <filename unknown>:0
  at RimWorld.IncidentWorker_OrbitalTraderArrival.TryExecute (RimWorld.IncidentParms parms) [0x00000] in <filename unknown>:0
  at RimWorld.Storyteller.TryFire (RimWorld.FiringIncident fi) [0x00000] in <filename unknown>:0
  at RimWorld.Storyteller.StorytellerTick () [0x00000] in <filename unknown>:0
at Verse.TickManager.DoSingleTick () [0x00000] in <filename unknown>:0

I first thought it was humanoid alien races, but the second error talks about stock animals. Thing is, I did play Rim World with a similar array of mods but it worked relatively fine. I suspect a mod conflict, but I have no idea what mod cause this or if its the load order. This error sorta makes the game a bit unplayable because you need trading to get rid of items or buy certain items early on.

So, any help would be appreciated.


Simulacrum0

the 1st is a trade ship tried to make a alien race slave and something went wrong. the 2ed is Hospitality,it changes the Wanderer Join event and is most likely not compatible with alien races. the 3ed is the same as the first but animals, look for any mods that change the traders or add new animals.

RawCode

start from disabling some of your 82 mods, disable everything and enable one by one or in small batches, like 3 or 5 as long as needed to detect, what mod causing issue.

this will take time, due to number of mods, few hours.

Lt.Havoc

Yeah I thought about it, but that would break saves big time. However, what I did recently was to load an older save that was just lightly modded to see if the error still occurs there, it didnt. I then started a new game with a custom scenario and looked if bulk goods trader where still broken. So far that error didnt occur. I suspect that issue was caused in one of the savegames either because I removed a mod or because one of the mods got a big update that caused the savegame to break somehow. I will see if that error still occurs in the new game, but so far I didnt. 

Lt.Havoc

Well, I tested it and it seems that the Humanoid Aliens/RimGate confilcts with one of the other mods, but no idea which one.. After removing Humanoid Aliens and Rimgate, orbital traders work fine. It could be any of the mods I use it conflicts with or the load order or whatever. I guess I cant use the Aliens mod for the moment then.