Situation: you have a vessel A that is docked to a vessel B, which in turn is attached to a vessel C.
When modifying the attachment point on vessel C (translating or rotating), vessel B reflects those changes. However, all docking ports (and presumably attachment points) of vessel B remain at their former position. As a result, vessel A does not update and remains in its position.
The problem even persists when undocking and redocking vessel A from vessel B. That is, it persists if it was vessel B that initiates the undocking and redocking. If vessel A does the redocking, the docking port will update. (scratch this, wrong interpretation. see next paragraph. How do you make text scratched?)
Here's how it really goes:
If B does the redocking, the docking port will not update if the docking was committed with "bring me to current target position", but it will update if the target vessel is moved. If A does the redocking it is vice versa, the positions will not update if "bring target to my current position" is selected. I.e. the docking ports on B will update if A is moved in the docking process, but not if B is moved. what gives?
Here's a simple scenario to reproduce the problem with universal cargo deck (needs universal cargo deck to run, obviously):
Code:
BEGIN_DESC
modify the position or rotation of GL-02 in the payload manager of cargodeck. SH-03 remains docked, but does not reflect the changes.
END_DESC
BEGIN_ENVIRONMENT
System Sol
Date MJD 51982.5324977711
END_ENVIRONMENT
BEGIN_FOCUS
Ship GL-01
END_FOCUS
BEGIN_CAMERA
TARGET SH-03
MODE Extern
POS 4.00 88.52 -32.66
TRACKMODE TargetRelative
FOV 50.00
END_CAMERA
BEGIN_HUD
TYPE Surface
END_HUD
BEGIN_MFD Left
TYPE Orbit
PROJ Ship
FRAME Ecliptic
REF Earth
END_MFD
BEGIN_MFD Right
TYPE Surface
SPDMODE 1
END_MFD
BEGIN_PANEL
END_PANEL
BEGIN_SHIPS
ISS:ProjectAlpha_ISS
STATUS Orbiting Earth
RPOS -1533420.21 6381873.51 -1504071.86
RVEL 7359.986 1336.225 -1803.247
AROT 30.00 0.00 50.00
AFCMODE 7
IDS 0:588 10 1:586 10 2:584 10 3:582 10 4:580 10
NAVFREQ 0 0
XPDR 466
END
Mir:Mir
STATUS Orbiting Earth
RPOS -5767923.88 205037.97 3352407.54
RVEL -3889.510 -407.516 -6662.831
AROT 0.00 -45.00 90.00
AFCMODE 7
IDS 0:540 10 1:542 10 2:544 10
XPDR 482
END
Luna-OB1:Wheel
STATUS Orbiting Moon
RPOS 693636.53 2127686.04 274.57
RVEL -1407.070 458.639 0.276
AROT 0.00 0.00 -152.60
AFCMODE 7
IDS 0:560 10 1:564 10
XPDR 494
END
GL-01:DeltaGlider
STATUS Orbiting Earth
RPOS 5231462.34 3141951.29 -2423006.35
RVEL 4868.836 -4908.841 3795.969
AROT -52.69 -56.41 90.34
AFCMODE 7
PRPLEVEL 0:0.553000 1:0.900000
NAVFREQ 0 0 0 0
XPDR 0
AAP 0:0 0:0 0:0
END
SH-03:ShuttleA
STATUS Orbiting Earth
RPOS 5231422.46 3141971.37 -2423021.65
RVEL 4868.836 -4908.846 3795.974
AROT -52.68 -56.75 90.33
AFCMODE 7
PRPLEVEL 0:1.000000 1:1.000000
DOCKINFO 0:0,GL-02
NAVFREQ 0 0
XPDR 0
PODANGLE 0.0000 0.0000
DOCKSTATE 0 0.0000
AIRLOCK 0 0.0000
GEAR 0 0.0000
PAYLOAD MASS 0.0 0
END
PB-01:ShuttlePB
STATUS Landed Earth
BASE Habana:1
POS -82.4000000 22.9994604
HEADING 22.00
AFCMODE 7
PRPLEVEL 0:1.000000
NAVFREQ 0 0
END
GL-02:DeltaGlider
STATUS Orbiting Earth
RPOS 5231446.51 3141959.65 -2423012.72
RVEL 4868.836 -4908.841 3795.969
AROT 127.31 56.48 89.66
ATTACHED 0:0,cargodeck
AFCMODE 7
PRPLEVEL 0:1.000000 1:1.000000
DOCKINFO 0:0,SH-03
NAVFREQ 0 0 0 0
XPDR 0
GEAR 1 1.0000
AAP 0:0 0:0 0:0
END
SH-01:ShuttleA
STATUS Landed Moon
BASE Brighton Beach:1
POS -33.4375000 41.1184067
HEADING 0.00
AFCMODE 7
PRPLEVEL 0:1.000000 1:1.000000
NAVFREQ 0 0
XPDR 0
PODANGLE 0.0000 0.0000
DOCKSTATE 0 0.0000
AIRLOCK 0 0.0000
GEAR 0 0.0000
PAYLOAD MASS 0.0 0
END
cargodeck:UCargoDeck
STATUS Orbiting Earth
RPOS 5231462.34 3141951.29 -2423006.35
RVEL 4868.836 -4908.841 3795.969
AROT -52.69 -56.41 90.34
ATTACHED 0:0,GL-01
AFCMODE 7
NAVFREQ 0 0
XPDR 0
CORE_NAME GL-01
JETTISONSPEED 1.00
JETTISONINT 5.00
ALLOW_SEND_FOCUS 1
DEF_ATT_PARAMS 0.000 0.000 0.000 0.00000 0.00000 1.00000 0.00000 1.00000 0.00000
PL_DESCRIPTION GL-02 0.000 0.000 -19.000 0.0000 0.0012 1.0000 -0.0000 1.0000 -0.0012 0
IN_JETTISON 0 0
J_MARKER 0.00
END
END_SHIPS
Repro instructions:
modify position or rotation of GL-02 in the payload manager. You will see the shuttle SH-03, which is docked to GL-02, will not reflect those changes.
Go to the scenario editor, select GL-02, edit, docking. You will see that the vessels are still docked. Undock SH-03, and redock, and it will dock in the same position as before if you selected "bring me to current target position", but in the correct position if you select the other option.
The same goes for undocking via SH-03, except that the options are inversed.
This goes so far as to even conserve velocity. As an additional test, jettison GL-02 from cargodeck. This will give it and SH-03 velocity relative to GL-01. Now, reattach GL02 to cargodeck, and you will see SH-03 still moving away with the same velocity it had before, although when you edit it in the scenario editor, you will see that it is indeed still docked to GL-02.
All this has been produced without universal cargo deck, so it is not a UCD problem. UCD is merely the most convienient way of reproducing the bug.