Skip to content

Instantly share code, notes, and snippets.

View slippycheeze's full-sized avatar

Daniel Pittman slippycheeze

View GitHub Profile
public class PrintUnlockableTechTrees: cmk.NMS.Script.QueryClass {
protected override void Execute() {
var Unlockable = Game.ExtractMbin<GcUnlockableTrees>("METADATA/REALITY/TABLES/UNLOCKABLEITEMTREES.MBIN");
foreach (var tree in Enum.GetValues<UnlockableItemTreeEnum>()) {
Log.AddHeading(Enum.GetName<UnlockableItemTreeEnum>(tree));
PrintTree(Unlockable.Trees[(int)tree]);
}
}
string Translate(string id) => Game.FindLanguageData(id)?.Text ?? id;
// ==UserScript==
// @name Elite Dangerous: old forum URL redirector - frontier.co.uk
// @namespace rimspace.net
// @match *://forums.frontier.co.uk/showthread.php/*
// @grant none
// @run-at document-start
// @version 1.0
// @author Daniel Pittman <daniel@rimspace.net>
// @description when you land on an old forum URL, instead redirect to the "modern" equivalent.
// does not try and rewrite the URL before you hit the 404 page, though.
@slippycheeze
slippycheeze / EDDI-message-received.cottle
Last active April 11, 2023 10:17
EDDI message received script update
{_ is this a duplicate of the previous value? _}
{set duplicate to [
"source": event.source = state.sc_last_message_source,
"from": event.from = state.sc_last_message_from,
"message": event.message = state.sc_last_message_message
]}
{SetState('sc_last_message_source', event.source)}
{SetState('sc_last_message_from', event.from)}
{SetState('sc_last_message_message', event.message)}