Skip to content

Instantly share code, notes, and snippets.

@ChuckSavage
ChuckSavage / StoneDusterRunIfOverValue.cs
Created November 10, 2018 11:30
Space Engineers - Stone Duster mod, script to control stone amounts
// Written by steam handle "Dune__" aka Chuck Savage
// - Gist link: https://gist.github.com/ChuckSavage/fd5777417b802bf59a07a60688f84a94
// Feel free to use and modify. It'd be great if you list any
// changes here on this gist page so I can keep this up to date if they are important changes.
// Todo: handle multiple stone dusters. I'm not sure how to go about finding the type "Stone Duster" that
// the mod has listed for itself.
// Some code borrowed from the Space Engineers Visual Script Builder - http://dco.pe/vsb/
// Set name of Stone Duster to this name, or change this name to your stone duster's name
@ChuckSavage
ChuckSavage / pirate_raiders.cs
Created December 6, 2018 10:36
Space Engineers Pirate Raiders Script Modification
// Script written by Rich_27, Designed by Splitsie
// Modified by Dune to check for no antenna, and to echo antenna name & radius
// CHANGE ME: Name of the antenna responsible for spawning drones in the pirate base
const string ANTENNA_NAME = "Antenna name";
// CHANGE ME: The time interval between antenna increments, in seconds
const float TIME_INTERVAL = 120.0f;
// CHANGE ME: The minimum and maximum antenna distances
@ChuckSavage
ChuckSavage / NaturalStringComparer.cs
Last active January 27, 2022 19:33
Natural string comparer for files too
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
namespace SeaRisenLib2.Text;
@ChuckSavage
ChuckSavage / CScode.xaml.cs
Created March 19, 2022 17:47
play symbol for video files
<UserControl xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:SeaRisen.SFFv2"
xmlns:c="clr-namespace:SeaRisen.SFFv2.Converters"
xmlns:misc="clr-namespace:SeaRisen.SFFv2.Misc"
xmlns:zoom="clr-namespace:ZoomAndPan;assembly=ZoomAndPan"
xmlns:settings="clr-namespace:SeaRisen.SFFv2.Files.Xml"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:imaging="clr-namespace:SeaRisenLib2.Imaging;assembly=SeaRisenLib2"