Skip to content

Instantly share code, notes, and snippets.

@numberlesstim
numberlesstim / Tick
Created November 10, 2024 03:39
KSP Craftfile
This file has been truncated, but you can view the full file.
ship = Tick
version = 1.12.5
description =
type = VAB
size = 10.937252,45.1593933,10.9372511
steamPublishedFileId = 0
persistentId = 3749542745
rot = 0,0,0,0
missionFlag = Squad/Flags/flag_nbl_tim
vesselType = Debris
@numberlesstim
numberlesstim / Rutan.craft
Created August 23, 2024 21:35
KSP craftfile
ship = Rutan
version = 1.12.5
description =
type = SPH
size = 10.8103037,3.6997242,9.0127449
steamPublishedFileId = 0
persistentId = 3899793721
rot = 0,0,0,0
missionFlag = Squad/Flags/flag_nbl_tim
vesselType = Debris
@numberlesstim
numberlesstim / 5 Blobs
Created August 20, 2024 19:38
KSP craftfile
This file has been truncated, but you can view the full file.
ship = 5 Blops
version = 1.12.5
description =
type = VAB
size = 11.0221176,58.5364304,11.0221863
steamPublishedFileId = 0
persistentId = 2047584266
rot = 0,0,0,0
missionFlag = Squad/Flags/flag_nbl_tim
vesselType = Debris
@numberlesstim
numberlesstim / CubeGate
Created August 18, 2024 22:59
KSP craftile
This file has been truncated, but you can view the full file.
ship = CubeGate
version = 1.12.5
description =
type = VAB
size = 52.9827271,70.4890366,17.5295601
steamPublishedFileId = 0
persistentId = 2030770961
rot = 0,0,0,0
missionFlag = Squad/Flags/flag_nbl_tim
vesselType = Debris
@numberlesstim
numberlesstim / Tri-Gate.craft
Last active August 18, 2024 18:48
KSP craftfile
ship = Tri-Gate
version = 1.12.5
description =
type = VAB
size = 19.9358826,47.8538437,17.9356804
steamPublishedFileId = 0
persistentId = 3631922712
rot = 0,0,0,0
missionFlag = Squad/Flags/flag_nbl_tim
vesselType = Debris
@numberlesstim
numberlesstim / Whiskers.craft
Created August 14, 2024 17:34
KSP craftfile for Whiskers, a KAL-overclocked TVTOL Spaceplane
ship = Whiskers
version = 1.12.5
description =
type = SPH
size = 10.7010574,14.8677235,10.2014036
steamPublishedFileId = 0
persistentId = 2567082287
rot = 0,0,0,0
missionFlag = Squad/Flags/default
vesselType = Debris
//gist 7e40dbd1c3512804e30844397ff80add
parameter param is -1.
local craftnames is list().
if param <> -1 {
if param:isType("String") craftnames:add(param).
else if param:isType("List") set craftnames to param.
else if param:hassuffix("ship") {
for el in param:ship:elements {
//gist 3b1620f874436a5110eac147cc159ef2
odometer on.
set data to lex().
set data:totDist to 0.
set data:minDist to 1.
set data:last to lex("altitude", altitude, "gp", ship:geoposition).
if exists("1:/odometer.json") set data to readjson("1:/odometer.json").
//gist c32f2b01e638c61cd4649a905e1dba1b
parameter _deltaTime is 60.
local tx is -1.
local tb is "none".
if orbit:hasnextpatch {
set tx to time:seconds + eta:transition + _deltaTime.
set tb to orbit:nextpatch:body:name.
}
//gist 91e4eca5b58a405f8a2476902a6f6be4
// This version is only good for docklandings. For anything else use gist 7944e97619657cea4a3af77cf9500c6a instead.
// Assumes stable and circular (ap - pe < 500) orbit
// Set guidanceactive to false and vacLocLanderFinished to true, if you want to take over during landing
if not (defined tgt) {
if hastarget AND target:body = body AND (target:status = "landed" OR target:status = "splashed") {
set tgt to target:geoposition.