RimWorld

RimWorld

LightsOut
Denne tråd er blevet låst
ROZNE GRY 27. jan. 2023 kl. 4:43
Exception spawning loaded thing error
What's this about?

Exception spawning loaded thing FM_AIManager1732082: System.ArgumentException: An item with the same key has already been added. Key: FM_AIManager1732082
at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior)
at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value)
at LightsOut.Patches.Power.DisableBuildingsOnSpawn.Postfix (Verse.ThingWithComps __instance)
at (wrapper dynamic-method) Verse.Building.Verse.Building.SpawnSetup_Patch2(Verse.Building,Verse.Map,bool)
at (wrapper dynamic-method) RimWorld.Building_WorkTable.RimWorld.Building_WorkTable.SpawnSetup_Patch0(RimWorld.Building_WorkTable,Verse.Map,bool)
at (wrapper dynamic-method) Verse.GenSpawn.Verse.GenSpawn.Spawn_Patch4(Verse.Thing,Verse.IntVec3,Verse.Map,Verse.Rot4,Verse.WipeMode,bool)
at Verse.GenSpawn.SpawnBuildingAsPossible (Verse.Building building, Verse.Map map, System.Boolean respawningAfterLoad)
at (wrapper dynamic-method) Verse.Map.Verse.Map.FinalizeLoading_Patch1(Verse.Map)



Verse.Building.Verse.Building.SpawnSetup_Patch2 was patched by:

RimWorld.Building_WorkTable.RimWorld.Building_WorkTable.SpawnSetup_Patch0 was patched by:

Verse.GenSpawn.Verse.GenSpawn.Spawn_Patch4 was patched by:

Verse.Map.Verse.Map.FinalizeLoading_Patch1 was patched by:

Sorry I can't share the full log, as it's taking forever to share it from the game. Tried using Pastebin, but it crashes the window.
< >
Viser 1-3 af 3 kommentarer
juanlopez2008  [udvikler] 27. jan. 2023 kl. 18:14 
I'm sorry, but I can't really do anything without a full log.

It shouldn't be possible for the code to have an issue there unless you're using some kind of optimization mod (like RimThreaded) or possibly if you have a corrupted save that causes the building to undergo the spawn setup multiple times... is this a reproducible issue?
ROZNE GRY 28. jan. 2023 kl. 3:30 
Oprindeligt skrevet af juanlopez2008:
I'm sorry, but I can't really do anything without a full log.

It shouldn't be possible for the code to have an issue there unless you're using some kind of optimization mod (like RimThreaded) or possibly if you have a corrupted save that causes the building to undergo the spawn setup multiple times... is this a reproducible issue?

An optimization mod? Well, I dont't have Rimthreaded, but I've got a handful of others. Performance Optimizer, RuntimeGC, Rocketman, Dubs Analyzer and Performance Fish. Anything to make my game run faster, because with 800+ mods it runs pretty bad. The AI Manager this error mentions is probably from the Colony Manager mod, because recently I've built such device from that mod.
juanlopez2008  [udvikler] 17. feb. 2023 kl. 17:49 
Given the nature of that error (exception spawning loaded thing), the massive number of mods you're running (any of which could have corrupted your save and caused this error), and the fact that the log is so big it has trouble uploading (presumably due to its size), I'm going to lock down this thread under the assumption that it's not actually caused by my mod.

If you can confirm it's definitely my mod's fault, feel free to open another discussion!
< >
Viser 1-3 af 3 kommentarer
Per side: 1530 50