From fe0a89f4453a66216a01acdfbbecd2cbff504fe1 Mon Sep 17 00:00:00 2001 From: Christopher Monsanto Date: Tue, 25 Aug 2026 18:01:06 -0400 Subject: [PATCH] Publish the gen 5 type labels for the forum src/_uncategorized/{canonical,noncanonical}/ui/types/gen5 has held these since 2021 -- Stellar since 2024 -- and nothing has ever built them. The only build that ever published type labels at all took gen 4's, into PS, and it went with the PS build in a919602c. They ship the way forumsprites does: stamped copies in the served tree and a manifest beside them, no links mirror, because the reader looks a name up rather than composing a path. The two source directories publish into one. Which of them a label came from says whether the games drew it in this style, which is a fact about the picture and not about the reader: Fairy and Stellar are types the forum renders like any other, and gen 5 simply never labelled them. Unknown is held back. The one build that published it renamed it to `???`, which is PS's name for the type; what the forum calls it is for the forum to say, and it can be added under that name when there is one. 20 published names, each a stamped file, and one manifest beside them. The sources ship verbatim -- a label is already the picture, at 32x12 and a couple hundred bytes -- so the set has no rules of its own. Co-Authored-By: Claude Opus 5 (1M context) --- smogon.build.ts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/smogon.build.ts b/smogon.build.ts index e2ed7f28..75cbc1c4 100644 --- a/smogon.build.ts +++ b/smogon.build.ts @@ -244,6 +244,34 @@ deploy(async ctx => { manifest.write('__meta/forumsprites/manifest.json'); }); +// sprites/types/gen5/: the Black & White type labels, for the forum, which +// looks one up rather than composing a path, so the set rides no links mirror +// -- forumsprites, the other set the forum reads, doesn't either. +// +// The two source directories publish into one. Which of them a label came from +// says whether the games drew it in this style, which is a fact about the +// picture and not about the reader: Fairy and Stellar are types the forum +// renders like any other, and gen 5 simply never labelled them. +// +// They ship verbatim. A label is already the picture, at 32x12 and a couple +// hundred bytes, so there is nothing for a rule to do to one. + +deploy(async ctx => { + let manifest = new Manifest(ctx, TREE); + for (let canon of ['canonical', 'noncanonical']) { + for (let f of await ctx.list(`src/_uncategorized/${canon}/ui/types/gen5`)) { + // Held back: the only build that ever published this one renamed it + // to `???`, which is PS's name for the type. What the forum calls it + // is for the forum to say. + if (f.name === 'Unknown') { + continue; + } + await manifest.copy(f, {dir: 'types/gen5'}, spritedata.encode(f.name)); + } + } + manifest.write('__meta/types/gen5/manifest.json'); +}); + // Forum auto avatars: the gen 5 animations on a uniform 96x96 box, which is // what XenForo's avatar container is. It scales an to fill, so a sprite // published at its own aspect would arrive stretched; the box is the games' own