cseelhoff / RimThreaded

RimThreaded is a RimWorld mod designed to enable RimWorld to utilize multiple threads.
MIT License
119 stars 21 forks source link

[Dub's bad hygiene] More than 1 pipe comp in the same cell at (x, y) #718

Closed sealvessel closed 2 years ago

sealvessel commented 2 years ago

Describe the bug

More than 1 pipe comp when ship hull is destroyed

Steps to reproduce the behavior (VERY IMPORTANT)

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Error Logs

More than 1 pipe comp in the same cell at (143, 0, 105), things with pipes cannot overlap!
System.ArgumentException: An item with the same key has already been added. Key: (143, 0, 105)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000c1] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at DubsBadHygiene.HygienePipeMapComp.RebuildPipeGrid (System.Int32 P) [0x00122] in <b304e300710b43ab89482da7df6e86f3>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (string)
DubsBadHygiene.HygienePipeMapComp:RebuildPipeGrid (int)
DubsBadHygiene.HygienePipeMapComp:RegenGrids ()
DubsBadHygiene.Patches.HarmonyPatches_Plumbing:GridRegen_Prefix (Verse.Map)
(wrapper dynamic-method) Verse.Map:Verse.Map.MapUpdate_Patch3 (Verse.Map)
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch3 (Verse.Game)
(wrapper dynamic-method) Verse.Root_Play:Verse.Root_Play.Update_Patch0 (Verse.Root_Play)

Player.log

!!! Link to contents of Player.log or Error.log (MUST BE LINK) !!!

HugsLib log

https://gist.github.com/307c67cd58fc07be120462871ecc5f51

Save file

!!! Please add a save file where the issue occurs to speed up testing and fixing of the issue !!!

Screenshots

https://user-images.githubusercontent.com/66351949/141716319-bfc9d3b6-8286-4652-8d5f-0990fe8d7786.mov

Mod list (Preferably a RimPy compatible list.)

Niilo007 commented 2 years ago

This one seems like it might be a dubs had hygiene issu, rather than a rimthreaded issue, Please test without rimthreaded, and if it only happens with RimThreaded, re open this issue