Kerbal Attachment System (KAS)

Kerbal Attachment System (KAS)

2M Downloads

Beta11: Exception when adding another fuel mixture

ihsoft opened this issue · 0 comments

commented

Details: https://forum.kerbalspaceprogram.com/index.php?/topic/150195-14-beta-kerbal-attachment-system-kas-v10-beta-11/&do=findComment&comment=3421471

Mixture:

        fuelMixture
        {
            component
            {
                name = LqdHydrogen
                ratio = 4.995
            }
            component
            {
                name = Oxidizer
                ratio = 0.333
            }
        }   

Error:

[EXC 15:01:10.847] OverflowException: Number overflow.
        System.Linq.Enumerable.<Sum>m__3E (Int32 a, Int32 b)
        System.Linq.Enumerable.Sum[Int32,Int32] (IEnumerable`1 source, System.Func`3 selector)
        System.Linq.Enumerable.Sum (IEnumerable`1 source)
        KAS.KASLinkResourceConnector+ResourceTransferOption.GetHashCode ()
        KAS.KASLinkResourceConnector.<MaybeUpdateResourceOptionList>b__45 (KAS.ResourceTransferOption resource)
        System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[KAS.KASLinkResourceConnector+ResourceTransferOption,KAS.KASLinkResourceConnector+ResourceTransferOption].MoveNext ()
        System.Collections.Generic.List`1[KAS.KASLinkResourceConnector+ResourceTransferOption].AddEnumerable (IEnumerable`1 enumerable)
        System.Collections.Generic.List`1[KAS.KASLinkResourceConnector+ResourceTransferOption]..ctor (IEnumerable`1 collection)
        System.Linq.Enumerable.ToArray[ResourceTransferOption] (IEnumerable`1 source)
        KAS.KASLinkResourceConnector.MaybeUpdateResourceOptionList ()
        KAS.KASLinkResourceConnector.OpenGUIEvent ()
        BaseEvent.Invoke ()
        UIPartActionButton.OnClick ()
        UnityEngine.Events.InvokableCall.Invoke ()
        UnityEngine.Events.UnityEvent.Invoke ()
        UnityEngine.UI.Button.Press ()
        UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData)
        UnityEngine.EventSystems.ExecuteEvents.Execute (IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData)
        UnityEngine.EventSystems.ExecuteEvents.Execute[IPointerClickHandler] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.EventFunction`1 functor)
        UnityEngine.EventSystems.EventSystem:Update()