• 1
Claw

FIX: Dock / Undocking Bug in 0.23.5

Question

Help! My docking ports refuse to dock or undock!

KSP has suffered from docking and undocking problems for a while now. This thread by roscoe_jones outlines a fix but seems to not fix all of the problems with docking issues in 0.23.5. I think I have figured out a new method which seems to work on the more stubborn undocking problems in 0.23.5.

Also, for completeness, I've included instructions on how to fix the common "unable to dock" problem.

This thread has been added to the 0.24 Cross-Platform Problems thread: http://forum.kerbalspaceprogram.com/threads/92235

Keep a copy of your save files somewhere safe...


UPDATE HISTORY:

8 May 14 - Found shorter method to fix "undock bug"

Edited by Claw

Share this post


Link to post
Share on other sites

Recommended Posts

  • 0

purpleivan,

Your file is a little backwards, but works the same.

Look for this section first:


PART
{
name = dockingPort2
uid = [COLOR="#FF8C00"]2476039542[/COLOR]
mid = 3364854089
launchID = 13
parent = 15
position = 0,-4.43045043945313,0.912153959274292
rotation = 0.7071068,0,0,0.7071068
mirror = 1,1,1
istg = 0
dstg = 0
sqor = -1
sidx = -1
attm = 0
srfN = None, -1
[COLOR="#FF0000"]attN = top, 31[/COLOR]
attN = bottom, 15

Search for the UID and change the attN to mach the red part above. That'll fix the ship with the lander can.

To fix the one with the MK1-2 command pod, look for this section:


PART
{
name = dockingPort2
uid = [COLOR="#FF8C00"]1048510628[/COLOR]
mid = 3364854089
launchID = 13
parent = 15
position = 0,-4.43045043945313,-0.912153601646423
rotation = 0.7071068,0,0,-0.7071068
mirror = 1,1,1
istg = 0
dstg = 0
sqor = -1
sidx = -1
attm = 0
srfN = None, -1
[COLOR="#FF0000"]attN = top, 106[/COLOR]

Again, search for the UID and change the attN line to mach the above. That'll fix the ship with the command pod.

Save the file (make sure it finishes saving), then F9 it into KSP.

When you separate the ships, you need to right click the regular docking ports (not the shielded ones) and select "Decouple."

Enjoy (here's the teaser).

~Claw

6IKL4TM.jpg

Share this post


Link to post
Share on other sites
  • 0

Thanks for that Claw... looking forward to making the fix you gave when I get back home from work (playing games instead of making them:)).

Share this post


Link to post
Share on other sites
  • 0

Thanks for that Claw... it worked a treat.

Now I can go rescue my Eeloo ship from a high elliptical orbit.

Share this post


Link to post
Share on other sites
  • 0

I suck with editing files and stuff like that... Can anyone help me with my quicksave? The stuck docking ports are named "Habitat 1" and "FuelTank1Front".

https://www.dropbox.com/s/8wb6sl11n3vems0/quicksave.sfs?dl=0

Edit - I'm using .24.2 by the way... Also, I stumbled through the instructions enough to get it undocked. But now the first node is stuck to the second one and the first one detatched from the space station instead of the fuel tank.

Edited by Mykill Metal

Share this post


Link to post
Share on other sites
  • 0
Can anyone help me with my quicksave?

Hey Mykill Metal,

Sorry for the delayed response. I tried digging through your save file but it's a bit more difficult because (as I discovered) you are using mods. Not that using them is a bad thing, but I don't know what mods you're using and don't have them installed myself. The names you list help out, but without pictures to envision what your ship looks like, it's hard for me to dig through the save file.

From what I see, it's unclear to me if the docking ports are supposed to be attached together, or to something else. They look like they are attached to a central node of docking ports. I'm not sure if you've edited this file already, but they also appear to be attached to the same parent docking port, so that's probably why your ports came undocked strangely. If you have an unedited copy of your save, I would need to see that. Also, because you have mods installed I need to at least see pictures since I can't look at your ship in-game (it makes it a LOT easier to dig through save files).

Cheers,

~Claw

Share this post


Link to post
Share on other sites
  • 0

Ran into the "won't undock" problem in 0.24.2. Tried you solution. No luck.

In the quicksave file I didn't have two "attN=" lines. I had...

PART

{

name = dockingPort1

uid = 665474283

mid = 3763059155

launchID = 0

parent = 136

position = 0.177622318267822,12.1255493164063,13.3565616607666

rotation = -0.6179113,-0.3443054,0.344789,0.6170577

mirror = 1,1,1

istg = 0

dstg = 0

sqor = -1

sidx = -1

attm = 0

srfN = None, -1

attN = bottom, 183

mass = 0.1

temp = -201.9218

expt = 0.5

state = 0

connected = True

attached = True

flag = Squad/Flags/hexagonCircles

rTrf = dockingPort1

modCost = 0

I tried adding "attN = top, 136" above it. No luck. The would not respond to right-double click at all and the matching one would only say "status locked" with no bottons to hit at all.

Share this post


Link to post
Share on other sites
  • 0
Ran into the "won't undock" problem in 0.24.2. Tried you solution. No luck.

...The would not respond to right-double click at all and the matching one would only say "status locked" with no bottons to hit at all.

Hmm. I have a feeling there's more going on in your save file. You may have to tinker more with the parent docking port too.

Are you able to upload it anywhere? If it's not all stock, I would appreciate a screen shot of the craft and some kind of annotation of which is the broken port (if it's not obvious). You can simply right-click on it or highlight it before taking the screenshot.

~Claw

Share this post


Link to post
Share on other sites
  • 0

Not sure how to send the save file. It is only a few kilobytes so maybe I could e-mail it? Or send it by pasting it into a message the website?

Well, here are the screen shots. Here is Brahe Station…

pWJs9oy.png

Zoom a bit...

KsXNldU.png

See the port in question in the upper right (I've right-double clicked on the port attached to the big fuel tank).

vpp2j2Q.png

After I click to undock.

YIazZKz.png

The ports both give "control from Here", but they aren't separate ships. You can't switch between them and Gilry and Jeb/Bill are on opposite sides of the port.

Q0c7EIF.png

Notes:

After this, the whole station seems to have problems with attitude control centered around that ship. In this screen shot, you can see how it has bent out of alignment with the others.

The problem "resets" if I quit and restart the program.

Share this post


Link to post
Share on other sites
  • 0

Dropbox, Mediafire or File2web all work, but you certainly aren't limited to these. They should give you a link that you can post here in the forum.

Looks like it's all stock?

~Claw

Share this post


Link to post
Share on other sites
  • 0

<Dropbox, Mediafire or File2web all work, but you certainly aren't limited to these. They should give you a link that you can post here in the forum.>

OK, here are the quicksaves from before I tried to decouple and afterwards (in case that helps).

http://www./download/6ooa1t05h4eyali/quicksave_Before_Attemp.sfs

http://www./download/729ag5bgv3ixoye/quicksave_After_Attemp.sfs

<Looks like it's all stock?>

Except for Kerbal Engineer.

Share this post


Link to post
Share on other sites
  • 0

Hey David,

I haven't abandoned you. I downloaded your save but I've also been busy (and getting distracted). 6MB isn't a few K, so it's taking a little bit to wade through your file. I might have to install KER or try another text editor to help out because Mediafire hashed up your save file. Plus I might delete some of your other ships to help me out.

I will try to look at it tomorrow. Hopefully this isn't causing you a complete stand still.

Cheers,

~Claw

Share this post


Link to post
Share on other sites
  • 0

@Claw: Sorry, not means to be hijacking, just share my part of the solution.

The are the same solution, just explain it differently. Here.

Did try download the above file and load it. But my notebook can't handle that much load, and crash twice. So, I give up.

Well, just browse the file with Excel, and found that station name was 'Galileo Station' if not mistaken.

Edited by Sirine

Share this post


Link to post
Share on other sites
  • 0
Hey David,

I haven't abandoned you. I downloaded your save but I've also been busy (and getting distracted). 6MB isn't a few K, so it's taking a little bit to wade through your file. I might have to install KER or try another text editor to help out because Mediafire hashed up your save file. Plus I might delete some of your other ships to help me out.

I will try to look at it tomorrow. Hopefully this isn't causing you a complete stand still.

Cheers,

~Claw

Yeah, my subconscious conflated "K" and "M". (Both small compared to Gigabytes :-)

Would it help if I re-uploaded it?

Share this post


Link to post
Share on other sites
  • 0
OK, I deleted everything but Brahe Station. Here are the resultant quicksaves (before and after attempting to undock).

http://www./download/ndeq3leoz7nu2uc/quicksave_with_only_the_station.sfs

http://www./download/bklhwdaa1z6ypc1/quicksave_with_only_the_station_after_attempt_at_undocking.sfs

Yes, that actually helped a whole lot.

The reason why the fix isn't working is because you're using the shielded docking port. The game is smart enough to know that you can't PreAttach that port.

Here's what you need to fix:


PART
{
[COLOR="#FF0000"]name = dockingPort2[/COLOR]
uid = 665474283
mid = 3763059155
launchID = 0
parent = 136
position = 0.177622318267822,12.1255493164063,13.3565616607666
rotation = -0.6179113,-0.3443054,0.344789,0.6170577
mirror = 1,1,1
istg = 0
dstg = 0
sqor = -1
sidx = -1
attm = 0
srfN = None, -1
[COLOR="#FF0000"]attN = top, 136[/COLOR]
attN = bottom, 183

Right click on what used to be the shielded docking port to decouple them. After you've disconnected the ship and flown a safe distance away, you can change the "dockingPort2" back to "dockingPort1" if you wish.

Good luck,

~Claw

Share this post


Link to post
Share on other sites
  • 0

>Yes, that actually helped a whole lot.

Given what you were doing to help me, it seemed the least I could do...

[Detailed instruction deleted...]

Well, it worked!

<Right click on what used to be the shielded docking port to decouple them. After you've disconnected the ship and flown a safe distance away, you can change the "dockingPort2" back to "dockingPort1" if you wish.>

That ship is headed home. It won't exist in a hour of game time. But Bill is back on Earth and the port is now free!

Thanks!

Share this post


Link to post
Share on other sites
  • 0

BTW, I was noting your helpful links on the bottom. There is a symbol or two in 0.24 I don't recognize. Is there a FAQ or something on interface changes someplace?

Share this post


Link to post
Share on other sites
  • 0

Hmm. I don't think there are pictures/description of them. But if you are curious, you can throw up a picture of which ones (or describe them) and I'm sure we can clear up what they are for. The best place for that is probably my 0.24 FAQ thread.

http://forum.kerbalspaceprogram.com/threads/87518-21-Jul-KSP-First-Contract-%28v0-24%29-Frequently-Asked-Questions

Glad your ship is free. :)

Cheers,

-Claw

Share this post


Link to post
Share on other sites
  • 0

Well, I had it again. (Didn't someone say it hadn't been reported with 0.24.2? If so, it has now). This time it wasn't a shield port and your directions worked great. (Though it helps if you make it "attN = top, [number of actual parent]" rather than unthinkingly copying and using "attN = top, 12" :-)

Share this post


Link to post
Share on other sites
  • 0
(Though it helps if you make it "attN = top, [number of actual parent]" rather than unthinkingly copying and using "attN = top, 12" :-)

Haha, good tip. :)

Share this post


Link to post
Share on other sites
  • 0

Hey Claw, I haven't tried this fix yet, but it sounds like it's a bang up for what went wrong with my station. Thank you for all your hard work in trying to run this down.

-Doc

Share this post


Link to post
Share on other sites
  • 0
Hey Claw, I haven't tried this fix yet, but it sounds like it's a bang up for what went wrong with my station. Thank you for all your hard work in trying to run this down.

-Doc

Hi Doc,

You are welcome, and thank you. Hopefully it works for you. :) This is actually the first post I've seen about docking port problems in 0.25. So if you feel up to it, a picture or two would be nice. Also, are you using any mods (such as docking alignment)?

I may add this to my list of things to fix.

Cheers,

-Claw

Edited by Claw

Share this post


Link to post
Share on other sites
  • 0

You're a lifesaver Claw. Couldn't detach an experimental pod from my orbital station and your fix worked! Thanks!

EDIT: And yes: this was on 0.25

Share this post


Link to post
Share on other sites
  • 0

Well,I just had the docking port issue occur for the first time in 0.25 today. The fix posted here worked on earlier versions, and I'll be trying it again. From what I've seen of it over several versions, this is probably not due to a mod, but is instead some hard-to-find bug introduced with docking ports in 0.18. And the fix is something that could probably be compiled as a dll that is called whenever the "undock" or "decouple" button is pressed, just prior to calling the actual decoupling routine. This is one of three nasty game-breaking bugs*, and the fix is probably something one of the devs could whip up in ten minutes by following Claw's instructions. Heck, if I knew C# I could probably do it myself, but learning that is about 8th on my priority list right now.

(* the other two are the game crashing, which primarily occurs on scene changes; and a nasty Kraken that prevents quicksave or return to the Space Center. I'd say those two plus the can't undock bug are absolute musts to tackle in 0.9)

Share this post


Link to post
Share on other sites
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.