wait until ship:unpacked. if addons:RT:hasKSCConnection(ship) { runPath("0:/scripts/basic.ks"). } else { print "No connection to the KSC". }