I swapped all staffs on that ship when it was repairing, is that cause a bug.
The repairing finished and I found my ship undocked, but still cannot buy ships from NPC, and it is blank to view the available resource.Can it be fixed with editing the save file?
Take a look at the Ship dealer. Is there still some info, about the the ship you repaired?
I had one of my titurels block the whole Shipyard. Dealer was waiting for it to dock but is was already undocked. No idea what happened there. I think I ordered it to repair or get drones while in my squad and I was docked to it. Then ordered it to leave my squad after it got the order to dock. Then I did some other stuff. Suddenly the ship was near me again and in my squad. When returning to the Shipyard it was blocked.
That was how I somehow produced this.
I solved it by selling the Ship. Shortly after, the Dealer was available again.
This can happen if you "mess with" a ship that is in the shipyard. Best to make sure they are finished before giving any new orders.
This worked for me (or there was a fix in V3.00):
Order the ship to return to that sector, or leave it there if it was already. Leave the sector, youself, then go do other things for a while. Mine was ok the next day, but apperently the original ship needs to be close to the shipyard.
If no luck, others have also suggested to: Order it to leave squad / join squad. Tell the captain to come back aboard skunk and than tell captain to work on ship again. Or these just might break it...
There also might be a process in V3.00 that checks for such things and fixes them, once in a while. Some have seen this maybe happen, including me. But if it is true, then it runs very slow.
Tinker
"If engineers built buildings the way programmers write programs, the first woodpecker that came along would destroy civilization!"