![](https://forum.kerbalspaceprogram.com/uploads/set_resources_17/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
![](https://forum.kerbalspaceprogram.com/uploads/set_resources_17/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png)
Beheska
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Developer Articles
KSP2 Release Notes
Posts posted by Beheska
-
-
I did try setting a manual takeoff like so, but that just veered off the runway...
I have found that the runway is oriented to the heading 90.399787902832. The difference is small, but it is visible if you need a long distance to takeoff.
I guess kOS is not designed for spaceplanesMy firsts serious scripts were for spaceplanes. As long as you are not trying some serious flying like turning or level flight (for that you will need to write a PID controller), it works well enough.
SWITCH misspelled.That's what you get for committing without testing. Just corrected it.
BOOT and KOS_BOOT both have odd formating, tab usage to align brackets, didn't use a new line for separate commands etc. (intentional to save space perhaps?).It's intentional: I try not to have too much of a overhead. I indented boot.txt because it's not really needed, and I removed even more spaces in kosis_boot.txt
-
If any one is interested, I've used the new boot functionality to make a kind of bootloader. It initialises crafts on the launchpad based on a config file. You can copy scripts, presets variables, autorun a script,... on a per craft basis. Let's just say that it uses a lot of log "commands" to foo. run foo. delete foo. trickery.
kOSis: k-OS Initialistaion System
Here is a (non functional) exemple of what the config file looks like:
run PRESET("ksc", geoposition).
run INIT("toolkit").
run SHIP("My SSTO").
run AUTORUN("myssto", "takeoff").
run PRESET("sstospClimbPitch", 30).
run PRESET("sstospLevelAlt", 20000).
run PRESET("sstospLevelPitch", 15).
run PRESET("sstospRocketPitch", 45).
run VOLUME("myssto").
run INIT("plane_toolkit").
run INIT("space_toolkit").
run FILE("myssto_takeoff", "takeoff").
run SHIP("My Satellite").
run AUTORUN("launcher", "launch").
run PRESET("orbitAltitude", 500).
run PRESET("orbitInclination", 85).
run VOLUME("launcher").
run FILE("launcher_launch", "launch").
run INIT("space_toolkit").
run VOLUME("mysatellite").
run FILE("satellite_mainscript","boot").
run INIT("space_toolkit").
run INIT("toolkit").
[1.3] kOS Scriptable Autopilot System v1.1.3.0
in KSP1 Mod Releases
Posted
Kosis creates ship, preset, ect. on the local drive and initialize tmp. Then kosis_cfg call them: ship just sets a flag, volume, file and init write in a file called tmp, and preset write presetS. Then kosis deletes them and runs tmp which deletes itself right at the beginning and do a bunch of copy and rename.