From 1895386fdf27590a4432ad8d312ac2d7eafa05b5 Mon Sep 17 00:00:00 2001 From: Amatsugu Date: Thu, 30 Apr 2026 23:23:21 -0400 Subject: [PATCH] misc --- ayame.ks | 24 ++++++++++++++++++++++++ boot/ayameBoot.ks | 6 ++++++ boot/faris5Boot.ks | 6 ++++++ boot/hazukiBoot.ks | 6 ++++++ boot/kayokoBoot.ks | 6 ++++++ faris3.ks | 26 ++------------------------ faris4.ks | 2 +- faris5.ks | 21 +++++++++++++++++++++ genericOrbit.ks | 38 +++++++++++++++++++++----------------- hazuki.ks | 21 +++++++++++++++++++++ kayoko.ks | 26 ++++++++++++++++++++++++++ koyuki.ks | 2 +- library/lib_ascent.ks | 4 ++-- 13 files changed, 143 insertions(+), 45 deletions(-) create mode 100644 ayame.ks create mode 100644 boot/ayameBoot.ks create mode 100644 boot/faris5Boot.ks create mode 100644 boot/hazukiBoot.ks create mode 100644 boot/kayokoBoot.ks create mode 100644 faris5.ks create mode 100644 hazuki.ks create mode 100644 kayoko.ks diff --git a/ayame.ks b/ayame.ks new file mode 100644 index 0000000..4a30e68 --- /dev/null +++ b/ayame.ks @@ -0,0 +1,24 @@ +import("library/lib_ascent"). + + +if status = "PRELAUNCH" { + WaitForEngineStart(). + + CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Open Terminal"). + + set profile to 0.7. + set turn_start to 1000. + set target_orbit to 120000. + + when altitude > 80000 then { + ag1 on. + } + + Ascent(target_orbit, turn_start, profile, 3). + + SET V0 TO GETVOICE(0). + V0:PLAY( NOTE(400, 2.5) ). + + CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Close Terminal"). + SHUTDOWN. +} \ No newline at end of file diff --git a/boot/ayameBoot.ks b/boot/ayameBoot.ks new file mode 100644 index 0000000..91a5dbd --- /dev/null +++ b/boot/ayameBoot.ks @@ -0,0 +1,6 @@ +wait until ship:unpacked. +clearscreen. +copyPath("0:/defaults", ""). +run "defaults". + +import("ayame"). \ No newline at end of file diff --git a/boot/faris5Boot.ks b/boot/faris5Boot.ks new file mode 100644 index 0000000..d94bddd --- /dev/null +++ b/boot/faris5Boot.ks @@ -0,0 +1,6 @@ +wait until ship:unpacked. +clearscreen. +copyPath("0:/defaults", ""). +run "defaults". + +import("faris5"). \ No newline at end of file diff --git a/boot/hazukiBoot.ks b/boot/hazukiBoot.ks new file mode 100644 index 0000000..858a6c2 --- /dev/null +++ b/boot/hazukiBoot.ks @@ -0,0 +1,6 @@ +wait until ship:unpacked. +clearscreen. +copyPath("0:/defaults", ""). +run "defaults". + +import("hazuki"). \ No newline at end of file diff --git a/boot/kayokoBoot.ks b/boot/kayokoBoot.ks new file mode 100644 index 0000000..6edaa96 --- /dev/null +++ b/boot/kayokoBoot.ks @@ -0,0 +1,6 @@ +wait until ship:unpacked. +clearscreen. +copyPath("0:/defaults", ""). +run "defaults". + +import("kayoko"). \ No newline at end of file diff --git a/faris3.ks b/faris3.ks index 5f9131e..82b1c20 100644 --- a/faris3.ks +++ b/faris3.ks @@ -6,32 +6,10 @@ CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Open Terminal"). set profile to 1.2. set turn_start to 1000. -set target_orbit to 100000. +set target_orbit to 150000. Ascent(target_orbit, turn_start, profile, 1). -wait 3. - -lock steering to retrograde. -wait 10. -lock throttle to 1. -wait until ship:deltav:current <= 0. -wait 0.01. -stage. - -set kuniverse:timewarp:rate to 10. -wait until kuniverse:timewarp:rate = 0. - -lock steering to srfRetrograde. - -wait until altitude <= 20000. - -unlock steering. -set kuniverse:timewarp:rate to 5. - -wait until ship:status = "LANDED" or ship:status = "SPLASHED". - -SET V0 TO GETVOICE(0). -V0:PLAY( NOTE(400, 2.5) ). +print "Orbit Achieved, Releasing Controls". CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Close Terminal"). SHUTDOWN. \ No newline at end of file diff --git a/faris4.ks b/faris4.ks index e182063..470e710 100644 --- a/faris4.ks +++ b/faris4.ks @@ -4,7 +4,7 @@ WaitForEngineStart(). CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Open Terminal"). -set profile to 1.2. +set profile to 0.7. set turn_start to 1000. set target_orbit to 100000. diff --git a/faris5.ks b/faris5.ks new file mode 100644 index 0000000..767e99a --- /dev/null +++ b/faris5.ks @@ -0,0 +1,21 @@ +import("library/lib_ascent"). + +WaitForEngineStart(). + +CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Open Terminal"). + +set profile to 0.7. +set turn_start to 1000. +set target_orbit to 120000. + +when altitude > 80000 then { + ag1 on. +} + +Ascent(target_orbit, turn_start, profile, 3). + +SET V0 TO GETVOICE(0). +V0:PLAY( NOTE(400, 2.5) ). + +CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Close Terminal"). +SHUTDOWN. \ No newline at end of file diff --git a/genericOrbit.ks b/genericOrbit.ks index af3a6a9..96b8239 100644 --- a/genericOrbit.ks +++ b/genericOrbit.ks @@ -1,26 +1,30 @@ import("library/lib_ascent"). runOncePath("0:/library/lib_input_terminal"). +if status = "PRELAUNCH" { -CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Open Terminal"). + CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Open Terminal"). -print "Enter Launch Profile: ". -set profile to terminal_input_number(22, 0, 4, 1.2). -print "Verical Ascent: ". -set turn_start to terminal_input_number(16, 1, 6, 1000). -print "Target Orbit: ". -set target_orbit to terminal_input_number(14, 2, 8, 120000). -print "Inclination: ". -set inclination to terminal_input_number(13, 3, 8, 0). + print "Enter Launch Profile: ". + set profile to terminal_input_number(22, 0, 4, 0.7). + print "Verical Ascent: ". + set turn_start to terminal_input_number(16, 1, 6, 1000). + print "Target Orbit: ". + set target_orbit to terminal_input_number(14, 2, 8, 120000). + print "Inclination: ". + set inclination to terminal_input_number(13, 3, 8, 0). + print "Circularization: ". + set circ to terminal_input_number(17, 4, 8, 3). -print "Waiting for Engine Start...". -WaitForEngineStart(). -clearScreen. + print "Waiting for Engine Start...". + WaitForEngineStart(). + clearScreen. -sas off. -Ascent(target_orbit:toscalar(0), turn_start:toscalar(0), profile:toscalar(0), 3, inclination:toscalar(0)). + sas off. + Ascent(target_orbit:toscalar(0), turn_start:toscalar(0), profile:toscalar(0), circ:toscalar(0), inclination:toscalar(0)). -CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Close Terminal"). -sas on. -SHUTDOWN. \ No newline at end of file + CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Close Terminal"). + sas on. + SHUTDOWN. +} \ No newline at end of file diff --git a/hazuki.ks b/hazuki.ks new file mode 100644 index 0000000..c56b6d6 --- /dev/null +++ b/hazuki.ks @@ -0,0 +1,21 @@ +import("library/lib_ascent"). + +if status = "PRELAUNCH" { + WaitForEngineStart(). + + CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Open Terminal"). + + set profile to 0.7. + set turn_start to 1000. + set target_orbit to 100000. + + when altitude > 80000 then { + ag1 on. + } + + Ascent(target_orbit, turn_start, profile, 3). + + print "Orbit Achieved, Releasing Controls". + CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Close Terminal"). + SHUTDOWN. +} \ No newline at end of file diff --git a/kayoko.ks b/kayoko.ks new file mode 100644 index 0000000..dc150a3 --- /dev/null +++ b/kayoko.ks @@ -0,0 +1,26 @@ + +if status = "PRELAUNCH" { + import("library/lib_ascent"). + + CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Open Terminal"). + + print "Waiting for Engine Start...". + WaitForEngineStart(). + clearScreen. + + sas off. + set profile to 0.7. + set turn_start to 1000. + set target_orbit to 150000. + + Ascent(target_orbit, turn_start, profile, 3). + + + when altitude > 80000 then { + ag1 on. + } + + CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Close Terminal"). + sas on. + SHUTDOWN. +} \ No newline at end of file diff --git a/koyuki.ks b/koyuki.ks index 81fb9c5..8ed7ba3 100644 --- a/koyuki.ks +++ b/koyuki.ks @@ -6,7 +6,7 @@ WaitForEngineStart(). CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Open Terminal"). -set profile to 1. +set profile to 0.8. set turn_start to 1000. set target_orbit to 130000. diff --git a/library/lib_ascent.ks b/library/lib_ascent.ks index a74f10d..43447ac 100644 --- a/library/lib_ascent.ks +++ b/library/lib_ascent.ks @@ -128,9 +128,9 @@ local function CreateCircularizationNode{ wait until nextNode:deltav:mag <= 10. lock throttle to 0.25. wait until NEXTNODE:deltav:mag <= 1. + lock throttle to 0. unlock steering. remove nextNode. wait 0.01. - lock throttle to 0. wait until throttle = 0. -} +} \ No newline at end of file