Jump to content

KOs AutoRun, with contract configurator?


Twitchi

Recommended Posts

Hey guys,

In my quest to get a contract experience I can call awesome I am making contract configurator contracts that spawn in vehicles with kos scripts to do all manner of thing.. Obviously I want these behaviors running without the player having to swap over and run the commands themselves but cannot seam to locate any method for Autorunning scripts in kos

Any one more experienced know of a way to make this happen..

Link to comment
Share on other sites

For people playing along at home (and future google searches) I have found a section on boot files in KOS

https://ksp-kos.github.io/KOS/general/volumes.html#boot

It appears to be exactly what I am looking for.. would defiantly be if I was not loading the vessel via contract.. the wiki states that when you leave the VAB\SPH your vessel is in a prelaunch status and I am not sure if this is the same for vessels spawn in contract..

testing continues

Appended :
So I can indeed set a boot file to be used.. but for it to start running the vessel needs to enter a prelaunch status,
(I believe this to be a ksp native variable and not KOS specific, but this is speculation based on finding an enum breakdown in the vessel section of the api)
but unfortunately when spawning a vessel via a contract there appears to be no time spent in the prelaunch stage and the script does not run.. tho it is defiantly there loaded
I am now looking at the craft file of the vessel in case I can find some way to launch in prelaunch.. I see lots of empty events{} but am finding very little documentation.. maybe I can run the script from there?

Edited by Twitchi
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...