-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quickstart tutorial should mention how to boot #2798
Comments
Come to think of it - searching the docs page for the word "boot" finds nothing about the general description of how to boot - it should be made into a new a separate page when describing how the CPU works, and the quickstart should link to that page. |
Checklist - remember to cover these things when writing the boot page: [ ] The sequence of events that happens when a boot file is set and you launch a vessel - create local boot folder, copy from archive boot to local boot, then run from local boot. Edit - additional things I'm adding to the checklist because of what commenters said below: [ ] That boot files must have .ks extension or they won't appear in the boot list. |
I have seen some people have issues with boot scripts where they where not displayed in the VAB/SPH boot file options because they where do not have the Also something that should be noted is that reverting to launch will not cause the boot file to be reloaded from disk it will still be the same from from when you first pressed "launch". This is important because if the boot file was changed the only time kOS will load a different boot file is a completely fresh launch of the craft. There are ways around this in code but that can run into this issue (found here)
which is an easy problem to miss or forget about. |
Techniques for power cycling / rebooting might be covered also. One Discord member mentioned putting a reboot of all kOS cores into the ABORT action group I tried it and it works really well. Related because it reboots. |
Could "wait until ship:unpacked" just be parser-side boilerplate that gets automatically run first any time a boot script is run? If it needs to be done every time, why not just make it part of the process that loads the boot script? |
The |
Wouldn't work as then you would get inconstant results from when you press the "launch" button in the VAB/SPH compared to a revert to launch because the file is only loaded when the vessel is launched and not loaded on a revert. And I don't think there exists a way to easily flag a vessel when it is first created nor would I want such functionality as launch being a unique case can cause problems. Thus it is better to explain why one should do something in one case which allows them to understand and thus apply to other cases should they need it as apposed to simply doing it automatically in the background. |
Does STATUS = PRELAUNCH whether a fresh launch or reverting? |
I had forgotten about prelaunch, would have to test to see if it properly resets on a revert. But even then I would be reluctant to rely on it as there are all kinds of strange and wonderful bugs in parts of the API. For instance did you know it is possible to have a status of "landed" despite the fact your craft is not on the ground at all. |
Yes, in fact I have seen that status in KER when I was definitely not landed. Double take on that one |
Well I learned here that I need to audit my boot scripts. I didn't know they fired whenever the core bearing ship loaded in a scene. Harmless with most of what I've got so far I think. But I need to look at the self-destructing debris widget I built very closely, lol |
@mgalyean - There's a known bug (still not fixed) in KSP where if you bust an extendable solar panel so pieces of it lay on the ground, then take off again, the game will think you're still landed. (So it won't let you save the game or leave the scene since it thinks you are "moving across terrain" rather than flying.) The bug is caused by the fact that the bits of broken solar panel on the ground still count as being part of the vessel, so it thinks "part of the vessel is touching the ground". |
At the bottom of the quickstart tutorial it should really mention, much like it talks about how to write a program in a file, how to make a boot file. I was watching a twitch streamer today who went through the tutorial and still didn't know boot files were a thing.
I think it's a basic enough need (boot files) that it should be mentioned early on, during quickstart rather than having to find it later in the docs.
The text was updated successfully, but these errors were encountered: