moon-dog-technologies
Library for High-level scripting of missions in Kerbal Space Program using KOS (by cptMoonDog)
KSLib
The standard library and examples for the Kerboscript language (by KSP-KOS)
moon-dog-technologies | KSLib | |
---|---|---|
11 | 29 | |
14 | 113 | |
- | 0.9% | |
5.3 | 0.0 | |
14 days ago | over 1 year ago | |
KerboScript | Shell | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
moon-dog-technologies
Posts with mentions or reviews of moon-dog-technologies.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-05-28.
- Here's a docking I'm pretty happy with
- Can you generate variables?
-
New to kOS
My implementation can do any of them depending on what I want for a particular craft. You can see some examples of how I tell it how I want to handle a launch here (Throttle section starts at line 40):https://github.com/yehoodig/kos-missions/blob/master/lv/template.ks
- Trying to learn kOS by developing a docking script. Starting out with picking a position 50 meters directly in front of the face of the target port and drawing an arrow along that vector. I'm almost there, can someone help?
- Booster Landing Proof of Concept
-
Creating a pre-determined gravity-assisted launch profile
I put together a little script that showcases the concept. I hope you might be able to get some value out of it. I'll leave it in my github, too. I seems to work pretty good, if I do say so myself. It actually is a hybrid, steering is locked to srfprograde, to minimized turning moment due to drag, and the throttle is varied to keep prograde following the linear tangent curve. I think I might have gotten a personal best dV efficiency when I was testing it. Exciting, and fascinating!
- KOS Missions Example | Launch to Minmus Orbit
- Mission to Minmus Orbit using my KOS library
KSLib
Posts with mentions or reviews of KSLib.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-02-17.
-
PID loop increasing error instead of decreasing
As to working out the heading that must be calculated by the angle relative to the the north and east directions. Fortunately there is a library out there that provides the functions to do this math so you don't have to. Said library can be found in the KSLib repository on github, you will be after lib_navball.ks.
-
Trigger action groups using variable as number?
If you want to be able to convert a string to arbitrary code for execution you need to use something like lib_exec.ks from KSlib which can execute arbitrary strings but comes with a lot of warnings should you make use of it so read the documentation fully before you decide to use it.
-
kOS, TIME, day length, rescaled systems
But as internally KSP and thus kOS count time by counting seconds you can simply make your own time converter function that takes the time in seconds and then converts to the minutes/hours/days/years for display. This older instance of lib_num_to_formatted_str.ks can likely be used as a basis for such a converter though additional work would be required for the fractional length of day your scale is using.
-
Matching orbital plane of target from launch
To solve the fist you need something often called an azimuth function around here which can constantly calculate the required compass heading to get into that inclination. I personally tend to point people at lib_lazcalc.ks or lib_navigation.ks over in the KSlib repository if they are not interested or able to work out how to calculate this them selves.
-
Why is this happening.
Personally I recommend using lib_navball.ks from the KSLib repository as it contains the functions needed to convert between various different types of things to navball based pitch/heading/roll values.
-
Kill horizontal velocity for landing?
Something that might help would be lib_navball.ks from KSlib if you know how to use libraries in kOS as that library is designed to get the navball (pitch, heading, and roll if applicable) readings for various things such as for the current direction a ship is facing or in which direction a vector is pointing all of which likley can prove useful here if you don't want to do the vector math directly.
-
How to execute function from inside variable?
To answer your question the way to turn a string into executable code is though is by logging the string out to a file and then running the file. This gets more complex as due to some caching for optimization reasons you would need to log each different script to a file with a different name. There is a generic library that can do this among other things available through KSlib, the library, the documentation. Now despite being the one to update that library so it works after it broke a while back I do not recommend it's use.
-
Im trying to make a "deorbit" program but im still getting errors thrown at me.
https://github.com/KSP-KOS/KSLib/blob/4d01865e6efa218d8de81a24e5d1d3861704d1f3/examples/example_testsasmode.ks gives an example like this: set sasmode to "prograde".
-
I am working on a very simple landing scrip but I need get the anti target vector coordinates how do I do that?
Of relevance KSlib does have a simple example script making use of lib_navball.ks and not just documentation on the library. Though depending on how you copy the files around it might need to be edited to for the script to run.
-
Help requested with hovercar
The simplest would be to go an use KSlib's library of navball based functions creativly named lib_navball.ks specifically the bearing_between() function.
What are some alternatives?
When comparing moon-dog-technologies and KSLib you can also consider the following projects:
tpksp-scripts - The collection of programs that are made available in “twitch plays KSP”
kos