This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{_ 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)} |
OlderNewer