allista / ConfigurableContainers

This is a plugin for KSP mod development.
MIT License
8 stars 7 forks source link

ArgumentOutOfRangeException when building symmetry tanks #31

Closed andylizi closed 5 years ago

andylizi commented 5 years ago

Environment

Description

[EXC] ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
    System.Collections.Generic.List`1[PartResource].get_Item (Int32 index)
    DictionaryValueList`2[System.Int32,PartResource].At (Int32 index)
    PartResourceList.get_Item (Int32 index)
    Part.OnCopy (.Part original, Boolean asSymCounterpart)
    EditorLogic.createSymmetry (Int32 mode, .Attachment attach)
    EditorLogic.<SetupFSM>m__D ()
    KerbalFSM.UpdateFSM ()
    EditorLogic.Update ()

I'm not very good at English, so I'll just refer to this forum post reporting the same issue. When I uninstall Configurable Containers the bug disappeared. For testing purposes, only this mod is installed, so it can't be a mod conflict.

Steps to reproduce

  1. Place an 4x symmetry radial decoupler on any part.
  2. Try to place any type of tank (with 4x symmetry) on the decoupler.
  3. Exception occurs and you only get one tank.
RealKolago commented 5 years ago

I can confirm, this happens when trying to attach CC tanks with symmetry over 2!