Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name simpleplanes.com tweaks
// @version 0.2
// @include http://simpleplanes.com/*
// @include https://simpleplanes.com/*
// @include http://www.simpleplanes.com/*
// @include https://www.simpleplanes.com/*
// @author WNP78
// ==/UserScript==
using System;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
namespace WNP78
{
public static class ReflectionUtils
{
public static string ToArrayString(this Array a)
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
public class TerrainGenerator : MonoBehaviour
{
#region Parameters
public float PosScale = 0.25f;
@WNP78
WNP78 / massEdit.py
Last active February 4, 2021 23:54
import sys,os
def tryFindSpDir():
if sys.platform.startswith("win"):
p = os.path.abspath(os.path.join(os.getenv("APPDATA"),"..\\LocalLow\Jundroo\SimplePlanes\AircraftDesigns")) + "\\"
if os.path.isdir(p): return p
elif sys.platform.startswith("darwin"): # MacOS - not tested
p = os.path.abspath("~/Library/Application Support/Jundroo/SimplePlanes/AircraftDesigns") + "/"
if os.path.isdir(p): return p
return input("SP aircraft directory> ") # failed to auto detect