Loading ksp_client.py +2 −2 Original line number Diff line number Diff line Loading @@ -37,12 +37,12 @@ if __name__ == "__main__": stage.add_callback(rocket.send) def activate_callback(scene): if(scene == conn.game_scene.flight): if(scene == conn.krpc.GameScene.flight): stage.start() else: stage.wait() scene = conn.add_stream(getattr, conn, 'current_game_scene') scene = conn.add_stream(getattr, conn.krpc.space_center, 'current_game_scene') scene.add_callback(activate_callback) while 42: Loading Loading
ksp_client.py +2 −2 Original line number Diff line number Diff line Loading @@ -37,12 +37,12 @@ if __name__ == "__main__": stage.add_callback(rocket.send) def activate_callback(scene): if(scene == conn.game_scene.flight): if(scene == conn.krpc.GameScene.flight): stage.start() else: stage.wait() scene = conn.add_stream(getattr, conn, 'current_game_scene') scene = conn.add_stream(getattr, conn.krpc.space_center, 'current_game_scene') scene.add_callback(activate_callback) while 42: Loading