Skip to content

Instantly share code, notes, and snippets.

@agoodman
agoodman / HexHead.craft
Created June 25, 2023 22:14
Deploys a bunch of drone craft with kOS controllers
This file has been truncated, but you can view the full file.
ship = HexHead
version = 1.12.5
description =
type = VAB
size = 5.35637474,6.10865784,5.35639668
steamPublishedFileId = 0
persistentId = 1234432640
rot = 0,0,0,0
missionFlag = Squad/Flags/default
vesselType = Debris
@agoodman
agoodman / DockADoodle.craft
Created June 4, 2023 23:24
Rendezvous script and test craft
ship = DockADoodle
version = 1.12.5
description =
type = VAB
size = 3.59117126,4.4277668,3.59117103
steamPublishedFileId = 0
persistentId = 4152099874
rot = 0,0,0,0
missionFlag = Squad/Flags/default
vesselType = Debris
@agoodman
agoodman / ClusterFireworksMk2.craft
Last active February 11, 2023 22:40
Craft file for UART kOS solution
This file has been truncated, but you can view the full file.
ship = ClusterFireworksMk2
version = 1.12.5
description =
type = VAB
size = 41.2381821,5.2385025,41.2381821
steamPublishedFileId = 0
persistentId = 278124211
rot = 0,0,0,0
missionFlag = Squad/Flags/default
vesselType = Debris
@agoodman
agoodman / client.ks
Created February 11, 2023 22:37
Client/server solution for kOS mod in Kerbal Space Program
set should_continue to true.
print "client starting".
set throttle to 0.
//wait random() * 3.
toggle ag1.
lock steering to up.
wait 0.025.
print "assigning ship name".
@agoodman
agoodman / AbsurdityMk2.craft
Created January 28, 2023 20:34
Fun examples of zero drag craft in Kerbal Space Program
ship = AbsurdityMk2
version = 1.12.4
description =
type = VAB
size = 27.2883072,11.2951927,30.3996925
steamPublishedFileId = 0
persistentId = 3634910452
rot = 0,0,0,0
missionFlag = Squad/Flags/default
vesselType = Debris
@agoodman
agoodman / EscapelessMk2.craft
Created January 15, 2023 19:40
Hypersonic Airliner for KSP
ship = EscapelessMk2
version = 1.12.4
description =
type = SPH
size = 13.5999975,7.07422638,23.9874897
steamPublishedFileId = 0
persistentId = 3103535373
rot = 0,0,0,0
missionFlag = Squad/Flags/default
vesselType = Debris
@agoodman
agoodman / hessian.py
Last active January 5, 2023 00:06
Hessian PDE solver
import numpy as np
from random import randrange
xact = np.array([4, 6, 2, -3, 3, -7, 8, -9, -0.4949])
p = np.ones(xact.size)
u = np.eye(p.size)
for k in range(p.size):
u[k] = np.zeros(p.size)
u[k][k] = 1
hnow = np.eye(p.size)
jnow = np.zeros(p.size)
@agoodman
agoodman / FatBoyMk2.craft
Created June 14, 2022 01:41
Craft file used by reusable orbital operations scripts
ship = FatBoyMk2
version = 1.12.3
description =
type = VAB
size = 6.56177616,36.626236,8.55856133
steamPublishedFileId = 0
persistentId = 4004953459
rot = 0,0,0,0
missionFlag = Squad/Flags/default
vesselType = Debris
@agoodman
agoodman / ship.ks
Created June 14, 2022 01:40
Second stage kOS script for reusable orbital operations
// SpaceX-style starship orbital ascent and mun transfer and landing
// by aubranium
//
// designed to be used with FatBoyMk2.craft
//
// hoverslam code borrowed from an unknown SpaceX engineer on the internet and modified
set runmode to 1.
clearscreen.
@agoodman
agoodman / booster.ks
Created June 14, 2022 01:35
First stage kOS script for reusable orbital operations
// SpaceX-style super heavy booster launch and land script
// by aubranium
//
// designed to be used with FatBoyMk2.craft
//
// hoverslam code borrowed from an unknown SpaceX engineer on the internet and modified
set runmode to 1.
clearscreen.