From 72765f23b858b3ae95a566099c37c5a394fb3d9c Mon Sep 17 00:00:00 2001 From: BlueZTV <56860375+BlueZTV@users.noreply.github.com> Date: Sun, 28 Apr 2024 00:26:37 +0800 Subject: [PATCH] Create 76.md --- 76.md | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 76.md diff --git a/76.md b/76.md new file mode 100644 index 00000000..2e8b186d --- /dev/null +++ b/76.md @@ -0,0 +1,66 @@ +NIP-76 +====== + +Speedrunning Leaderboard Entry +------------------ + +`draft` `optional` + +This NIP defines event kind `7602` as an entry towards a Game's speedrunning leaderboard, specified via a `d` tag, e.g. a game's Steam App ID. +Each game's leaderboard has optional Categories, Variations, Platform, Level, Region and Versions to create alternate leaderboards for one game. + +```jsonc +{ + "kind": 7602, + "d", "", //E.g. Among Us' Steam App ID is 945360 + "tags": [ + ["c", "", ], //E.g. A%G (Any% Glitchless), AlAc (All Achievements) + ["v", "", ], //E.g. for Celeste AnyP (Any%), ARB (All Red berries), TE (True Ending) etc. + ["p", ""], //E.g. N64, EMU + ["reg", "<3 Letter ISO Country Code>"], //E.g. JPN, AUS + ["lvl", ""], //E.g. FG, W1L1, F3OS + ["rlt", "", ""], //Real Life Time, subtract Start from Stop to get actual time + ["igt", "", ""] //In Game Time + ], + "proof": "", + "created_at": "", + "pubkey": "", + "sig": "" +} +``` +Tags can be entered multiple times if required such as a game having multiple varieties under one category, e.g. Pizza Tower Full Game Any% has Playable Character and Glitches? varieties. + +An example of a potential Super Mario 64 120 Star N64 run submission. +```jsonc +{ + "kind": 7602, + "d", "SM64", + "tags": [ + ["c", "120S", "120 Star"], + ["p", "N64"], + ["reg", "JPN"], + ["rlt", "1587370820", "1587376601"], + ], + "proof": "https://www.twitch.tv/videos/2034126985", + "created_at": "1714228879", + "pubkey": "1a6ea253df444f434417bdcaf9d4aef75f00921965e1afd836da0ae9cd1a0e074cb3490bb4cc26ead75af", + "sig": "076b3405407f26b87ff9333fa336c1c6fbdfc27f2f" +} +``` + +## Reporting a submission + +[NIP-56](56.md) reports should be used to report runs. + +```jsonc +{ + "kind": 1984, + "tags": [ + ["e", , "doubt"], + ["p", ] + ], + "content": "", + ... +} +``` +Clients can decide whether or not to display a run based on the number of reports.