Skip to content

Instantly share code, notes, and snippets.

@cake-pie
cake-pie / CelestialBodyColors.txt
Created May 15, 2019 17:59
CelestialBodyColors
Moho: RGBA(0.933, 0.714, 0.533)
Eve: RGB(0.424, 0.125, 0.894)
Gilly: RGB(0.635, 0.494, 0.431)
Kerbin: RGB(0.541, 0.792, 0.761)
The Mun: RGB(0.612, 0.627, 0.706)
Minmus: RGB(0.557, 0.455, 0.627)
Duna: RGB(0.639, 0.247, 0.157)
Ike: RGB(0.522, 0.541, 0.604)
Dres: RGB(0.353, 0.267, 0.196)
Jool: RGB(0.329, 0.522, 0.075)
@cake-pie
cake-pie / MM-2.3.2.txt
Last active May 5, 2019 07:48
Module Manager loading mechanism
2.3.2
As far as I can tell, this is the first version with actually working LoadingSytem-based implementation
Commit: https://github.com/sarbian/ModuleManager/commit/e5fb42b96a85d50eaea2b22560a31fe3041539d8
MMPatchLoader : LoadingSystem // hardcode queued after GameDatabase
Awake
https://github.com/sarbian/ModuleManager/blob/5a55cc507039a875273de2b44c793b4ba611898a/moduleManager.cs#L90-L95
- MMPatchLoader loader = aGameObject.AddComponent<MMPatchLoader>();
- list.Insert(1, loader); // GameDatabase was 0
@cake-pie
cake-pie / HarmonyUser.cs
Created April 18, 2019 16:02
Multiple copies of Harmony in GameData of Kerbal Space Program
using System.Reflection;
using UnityEngine;
using Harmony;
namespace harmonytest
{
[KSPAddon(KSPAddon.Startup.MainMenu, true)]
public class HarmonyUser : MonoBehaviour
{
internal bool firstrun = true;
@cake-pie
cake-pie / wheels legs parachutes
Created April 18, 2019 10:11
wheels legs parachutes
Firespitter FSwheel
https://github.com/snjo/Firespitter/blob/master/Firespitter/wheel/FSwheel.cs
BDAnimationModules FSwheel
https://github.com/BahamutoD/BDAnimationModules/blob/master/BDAnimationModules/FSwheel/FSBDwheel.cs
BDAnimationModules BDAdjustableLandingGear.cs
https://github.com/BahamutoD/BDAnimationModules/blob/master/BDAnimationModules/BDAdjustableLandingGear.cs
---
@cake-pie
cake-pie / airstair2m.cfg
Created April 22, 2018 04:21
No-Firespitter patch for Hawkspeed Airstairs 0.8.1 on KSP 1.4+
PART
{
name = airstair2m
module = Part
author = cake>pie
mesh = airstair2m.mu
scale = 1
node_stack_fore = 0.0, 0.75, 0.0, 0.0, 1.0, 0.0, 2