Skip to content

KSP 1.10: Carriable items cannot be equipped #364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ihsoft opened this issue Jul 5, 2020 · 1 comment
Closed

KSP 1.10: Carriable items cannot be equipped #364

ihsoft opened this issue Jul 5, 2020 · 1 comment
Labels

Comments

@ihsoft
Copy link
Owner

ihsoft commented Jul 5, 2020

When trying to equip a carriable items, an exception is thrown:

200705T155908.217 [EXCEPTION] [System.ThrowHelper.ThrowArgumentOutOfRangeException] ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <ad04dee02e7e4a85a1299c7ee81c79f6>:0)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <ad04dee02e7e4a85a1299c7ee81c79f6>:0)
   at ProtoPartSnapshot.Load (Vessel vesselRef, System.Boolean loadAsRootPart) (at <c168e21ec56346b082f89043e76162e1>:0)
   at KIS.KIS_Shared.CreatePart (ConfigNode partConfig, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, Part fromPart, Part coupleToPart, System.String srcAttachNodeId, AttachNode tgtAttachNode, KIS.KIS_Shared+OnPartReady onPartReady, System.Boolean createPhysicsless) (at <260264fece7f4aefbe53a4372aaba441>:0)
   at KIS.KISAddonPickup.CreateDrop (Part tgtPart, UnityEngine.Vector3 pos, UnityEngine.Quaternion rot) (at <260264fece7f4aefbe53a4372aaba441>:0)
   at KIS.KISAddonPickup.OnPointerAction (KIS.KISAddonPointer+PointerTarget pointerTarget, UnityEngine.Vector3 pos, UnityEngine.Quaternion rot, Part tgtPart, System.String srcAttachNodeID, AttachNode tgtAttachNode) (at <260264fece7f4aefbe53a4372aaba441>:0)
   at KIS.KISAddonPointer.UpdatePointer () (at <260264fece7f4aefbe53a4372aaba441>:0)
   at KIS.KISAddonPointer.Update () (at <260264fece7f4aefbe53a4372aaba441>:0)
   at UnityEngine.DebugLogHandler:LogException(Exception, Object)
   at ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
   at UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
@uinetpropane
Copy link

uinetpropane commented Jul 10, 2020

Hello,

I think I have the same trouble. I get it with Extraplanetary Launchpads Survey Stake.
I get it when I want to attach the yurvey to the ground. It is decrease in the inventory but not attached.

Here is my log, the exception seems the same as yours

[LOG 00:42:27.197] [Part:kerbalEVAfemale (Ditorinne Kerman) (id=F116547109)#Module:14] End item pickup: item=KS-BBQ Survey Stake, fromPart=[Part:kerbalEVAfemale (Ditorinne Kerman) (id=F116547109)]
[LOG 00:42:27.208] KIS UI lock acquired
[LOG 00:42:27.209] Set pointer mode to: Drop
[LOG 00:42:28.216] Set pointer mode to: Attach
[LOG 00:42:30.079] Create part & attach: tgtPart=[NULL]
[EXC 00:42:30.082] ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at :0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at :0)
ProtoPartSnapshot.Load (Vessel vesselRef, System.Boolean loadAsRootPart) (at :0)
KIS.KIS_Shared.CreatePart (ConfigNode partConfig, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, Part fromPart, Part coupleToPart, System.String srcAttachNodeId, AttachNode tgtAttachNode, KIS.KIS_Shared+OnPartReady onPartReady, System.Boolean createPhysicsless) (at <260264fece7f4aefbe53a4372aaba441>:0)
KIS.KISAddonPickup.CreateAttach (Part tgtPart, UnityEngine.Vector3 pos, UnityEngine.Quaternion rot, System.String srcAttachNodeID, AttachNode tgtAttachNode) (at <260264fece7f4aefbe53a4372aaba441>:0)
KIS.KISAddonPickup.OnPointerAction (KIS.KISAddonPointer+PointerTarget pointerTarget, UnityEngine.Vector3 pos, UnityEngine.Quaternion rot, Part tgtPart, System.String srcAttachNodeID, AttachNode tgtAttachNode) (at <260264fece7f4aefbe53a4372aaba441>:0)
KIS.KISAddonPointer.UpdatePointer () (at <260264fece7f4aefbe53a4372aaba441>:0)
KIS.KISAddonPointer.Update () (at <260264fece7f4aefbe53a4372aaba441>:0)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
[LOG 00:42:33.311] Set pointer mode to: Drop
[LOG 00:42:34.448] Set pointer mode to: Nothing
[LOG 00:42:34.485] KIS UI lock released

@ihsoft ihsoft added the bug label Jul 11, 2020
@ihsoft ihsoft closed this as completed in 4f99ff3 Jul 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants