Astra is a mission control framework for KSP to facilitate fully automated missions and operations. Also hoping to learn a bit about control theory in the process.
[X] Script or Ansible or etc. Out Packer Script provisioner(getting long and unweildy)
[X] Base VM Image(Packer) [14/14]
[X] Change KSP version from 1.9.1 to 1.8.1 in SpaceX Pack craft files
[X] Add vehicles to Astra game save VAB
[X] Figure out how to get a systemd --user instance running on Astra user
[X] Systemd user service to start game
added systemd service/linger config, but may need to set XDGRUNTIMEDIR var in the systemd task as shown here.
[X] Figure something out w/ firewall
I think leaving the image as is, and opening the kRPC Ports via a TF provisioner combined w/ the HTTP Datasource(to get ifconfig.me data) will be a good solution
Might need to hop into a graphical run to get the minimal base + mods setup
[X] AutoLoadGame.conf
[X] settings.cfg
[X] krpc-settings.cfg
[X] AutoLoadGame - Now supports specifying SFS files
[X] POC kRPC - connection over Internet successful, responses receieved
[X] Install KSP 1.7.3 1.8.1 from S3
[X] File provision packer/files/*
[X] Automate game-archiver
[X] Choose kRPC client language - C++
[X] VLC/Xvfb workflow for graphical debugging and SFS building
[X] Debug RO Install, problems w/ Kopernicus?
TODO Stage 2 - Data(and Project Automation) [1/3]
[ ] Restructure project
Split Components into own repos [3/5]
[X] Game
[X] Image builder
[ ] Ansible Pull ALL game assets(mods) from s3
Canceling splitting out ansible, I think it is fairly tightly coupled with the image anyway, will always want to test both togehter. Am still moving all assets to s3 however.
[ ] Save ALL game assets locally, in s3, as a release asset in github, and tar’d to google drive
[ ] Will need something like FMRS implemented via kRPC
[-] Starlink(s) [0/0]
[-] Long running, real time ops [0/0]
TODO Stage 5 - Stream Real Time Ops [0/0]
TODO Backlog/As Needed [0/2]
[ ] If TCP latency becomes a problem, try implementing a kRPC unix socket comm. protocol
[ ] Need to implement an automated Xvfb workflow using screenshots to debug Automation
There are module load errors in KSP.log, not sure if its preventing AutoLoadGame from doing its thing, or if that is related to the Changelog startup dialog in KSP Main Menu. KSP 1.8.1 Works great
Why are we stuck at the Change Log dialog on KSP Start? A bit annoying but appears to be inconsequential for my automation purposes.
ksp settings.cfg:
SHOWWHATSNEWDIALOG = False
Version 1.7.3 was not honoring settings.cfg, lets see if 1.8.1 works Still not honored in 1.8.1 but again, appears inconsequential
[ ] Split Project into multiple repos [0/3]
[ ] Terraform [0/2]
[ ] Modules
[ ] Plans
[ ] Packer Base Image
[ ] Astractl
KSP Mod Requirements
AutoLoadGame - by Allista, allows creating a configuration file in your saves dir that will automatically load the specified sfs file upong game start.
kRPC - kRPC allows you to control Kerbal Space Program from scripts running outside of the game.
Realism Overhaul - Its not certain this will place nice with kRPC, however realistic(ish?) control theory is really the purpose of this project so we will proceed with it until/unless we encounter problems.
kOS - kOS might be useful for some simpler tasks where we don’t want the full power of kRPC. Might use, might not. We’ll see.