This nearly mostly works!

This commit is contained in:
2021-04-11 22:22:06 -04:00
parent 88250d0170
commit 6b5b88286b
4 changed files with 58 additions and 0 deletions

View File

@@ -30,6 +30,8 @@ IF true { // Set this to false to avoid compiling ascent code.
COPYPATH("0:/RadarrSeries/radarr_kerbin.ks", "1:/ascent.ks"). // Copy over our launch script from the archive at ksc
}
// I changed this!
NOTIFY("Program compiled and ready to run.").
IF alt:radar < 100 { // If our radar alt is lower than 10

18
boot/tagBoot.ks Normal file
View File

@@ -0,0 +1,18 @@
// Idea from JonnyOThan#0171
// On the kOS discord.
WAIT UNTIL ship:unpacked.
CLEARSCREEN.
// This line from CheersKevin on youtube
core:part:getmodule("kOSProcessor"):doevent("Open Terminal"). // Open the terminal on boot!
PRINT "Using TagBoot ver 1.0".
WAIT 5.
PRINT "Booting with tag " + core:part:tag + "...".
WAIT 5.
// reddit says the path cant be fully qualified (no 0:/)
COPYPATH("0:/" + core:part:tag + "/boot.ks", "1:/boot/boot.ks").
set core:bootfilename to "/boot/boot.ks".
reboot. // Reboot the FC