Skip to content

Instantly share code, notes, and snippets.

View DeltaDizzy's full-sized avatar

DeltaDizzy DeltaDizzy

View GitHub Profile
@Kopernicus:AFTER[Kopernicus]
{
Body
{
name = DizzyDelta
cacheFile = DeltaDizzy/Planets_n_Moons/Cache/DizzyDelta.bin
Template
{
name = Eve
using Discord.Commands;
using Discord.WebSocket;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Reflection;
using System.Threading.Tasks;
namespace DeltaBot
{
public class CommandHandler
//Convert Propellium and Oxium to LqdHydrogen and Oxidizer
OMNICONVERTER
{
templateTags = lab
TechRequired = advScienceTech
ConverterName = Hydron Recoverer
description = Convert Propellium into LqdHydrogen
StartActionName = Start Recovery
StopActionName = Stop Recovery
Autoshutdown = false
When placing decals and the KSC:
x=-rsin(lat-90)cos(lon)
y=rcos(lat-90)
z=-rsin(lat-90)*cos(lon)
r = planet radius + altitude ASL
@DeltaDizzy
DeltaDizzy / BDB_LH2->Propellium.cfg
Last active September 12, 2019 05:20
Convert Bluedog Design Bureau from LqdHydrogen to Propellium if any WBI mods are installed
//Modify Hydrolox engines to use Propellium and correct the ratios accordingly
@PART[bluedog_Centaur*,bluedog_Titan*]:HAS[@MODULE[ModuleEnginesFX]]:HAS[@PROPELLANT[LqdHydrogen]]:NEEDS[Bluedog_DB,WildBlueIndustries/ClassicStockResources]
{
@MODULE[ModuleEnginesFX]
{
@PROPELLANT[LqdHydrogen]
{
@name = Propellium
@ratio = 10
}
@DeltaDizzy
DeltaDizzy / BH_RationalResources.cfg
Last active September 21, 2019 14:53
RR templates for Beyond Home
// Anger
+PLANETARY_RESOURCE:HAS[#Tag[SrfRock]]:NEEDS[RationalResources]
{
@PlanetName = Anger
@Tag = Applied
}
// Ansia
+PLANETARY_RESOURCE:HAS[#Tag[SrfRockMetal]]:NEEDS[RationalResources]
{
//===================Planets and Major Moons======================
//Crons
+PLANETARY_RESOURCE:HAS[#Tag[SrfRockIce]]:NEEDS[RealisticResources]
{
@PlanetName = Crons
@Tag = Applied
}
+PLANETARY_RESOURCE:HAS[#Tag[AtmIceNitrogen]]:NEEDS[RealisticResources]
{
@PlanetName = Crons
CUSTOM_KSP_SETTINGS
{
usePropellium = true
baseHomeworldDayLength = 47390
sdDayLengthRescale = 1.25
trueHomeworldDayLength = #$baseHomeworldDayLength$
@trueHomeworldDayLength *= #$sdDayLengthRescale$
}
@PART[bluedog_MOL_Hab]:NEEDS[CommunityTechTree]
{
@techRequired = spaceExploration
}
@PART[bluedog_MOL_Lab]:NEEDS[CommunityTechTree
{
@techRequired = advSpaceExploration
}
using System;
using UnityEngine;
namespace HowManySeconds
{
[KSPAddon(KSPAddon.Startup.MainMenu, true)]
public class HMSConfig : MonoBehaviour
{
private static ConfigNode hmsnode;
private static Double _duration;