From 3a6c627ff998df13b92b7342c212cec444cb6f06 Mon Sep 17 00:00:00 2001 From: isodev <114590000+iyazici00@users.noreply.github.com> Date: Fri, 4 Dec 2026 16:53:19 +0300 Subject: [PATCH] docs: align Unreal delivery guidance and known keys list with validator (#344) --- CONTRIBUTING.md | 10 +++++----- docs/unreal.md | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 655c4c31..5d1d883c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -53,23 +53,23 @@ To add a starter stack (one pick per need for a kind of game), follow [`stacks/R - `attribution_string`: the copy-paste credit line. Required when `attribution_required` is `true`; optional otherwise. Where the source's line is a template, mark each part the reader fills in with braces, as `"{title}" by Kevin MacLeod`; the site highlights `{…}` fields, and the copy buttons and CREDITS export tell the reader to fill them in. Other styles (`[Font name]`, ``, a bare `MM/YYYY`, `(sound page URL)`) are rejected (V35), since they would be copied into a game unmarked. - `publisher`: optional. Name the **rights-holding publisher**, never the host. Set it whenever that publisher has more than one catalog entry, so each entry page names the same publisher and the validator can check that the group agrees; setting it on a publisher that currently has only one entry is also fine and saves a backfill later. Do not set it to a generic host or distributor (GitHub, Hugging Face, itch.io, OpenGameArt, the Internet Archive, Google Fonts) or to a distributor that does not hold the rights. Distinguish sibling organisations that are genuinely different rights holders: `blender.md` (the application, Blender Foundation) carries no `publisher`, while the asset bundles under `studio.blender.org` carry `Blender Studio`. Kenney, Quaternius, KayKit, LuizMelo, 0x72, Blender Studio, Material Maker, Alif Type, GGBotNet and 3dmodelscc0 are the largest groups in use today; treat that as illustrative, not as the permitted set. - `subcategories`: lower-case kebab-case (`base-meshes`, `field-recordings`). Reuse a value already in the catalog before inventing one, and do not add a variant of an existing value that differs only in plural or spelling. Where both forms were in use, the more common one was kept (`characters`, `environment`, `interior`, `tileset`, `vectors`, `pixel`, `impulse-responses`, `base-meshes`). Retired spellings are listed in [`site/value-aliases.json`](site/value-aliases.json), which the validator enforces (V19); add a line there when you merge two values. Each category has a short list of allowed subcategories in [`site/config.json`](site/config.json) (`categories..subcategories`, V41); a narrower kind goes in `tags`, and a new subcategory is added to that list first. -- `formats`: the files you actually get. **File formats**, as commonly written: usually upper case (`PNG`, `FBX`, `JSON`, `VOX`), tool-specific ones as the tool writes them (`gdshader`, `tmx`, `ktx2`), and source languages (`C++`, `Python`, `JavaScript`). The key is required but the list may be empty, for a desktop tool whose files are not fixed or an aggregator whose files come in too many formats to list. -- `delivery` (optional, #97): how the thing reaches you, from the closed list in [`site/format-vocabulary.json`](site/format-vocabulary.json) `delivery`: `desktop-app`, `web-app`, `mobile-app`, `cli`, `library`, `npm-package`, `middleware`, `godot-addon`, `gdextension`, `godot-project`, `unreal-plugin`, `unreal-project`, `unity-package`, `blender-extension`. The engine values drive the Engine filter; the site's Delivery filter groups them. An app type written under `formats` is rejected with a pointer here (V20). Platforms (`windows`, `macos`, `ios`) and descriptions (`heightfield`, `examples`) are `tags`, not formats. The allowed values are the closed list in [`site/format-vocabulary.json`](site/format-vocabulary.json), which the validator enforces (V20): reuse a listed spelling, and add a genuinely new format there in the same change that first uses it. Its `groups` drive the site's Format filter, so a new format that belongs to a group (another glTF or font container) goes into that group too. A format outside every group is still searchable and shown on the card, but the Format filter cannot select it. +- `formats`: the files you actually get. **File formats**, as commonly written: usually upper case (`PNG`, `FBX`, `JSON`, `VOX`), tool-specific ones as the tool writes them (`gdshader`, `tmx`, `ktx2`), and source languages (`C++`, `Python`, `JavaScript`). The key is required but the list may be empty, for a desktop tool whose files are not fixed or an aggregator whose files come in too many formats to list. Platforms (`windows`, `macos`, `ios`) and descriptions (`heightfield`, `examples`) are `tags`, not formats. The allowed values are the closed list in [`site/format-vocabulary.json`](site/format-vocabulary.json), which the validator enforces (V20): reuse a listed spelling, and add a genuinely new format there in the same change that first uses it. Its `groups` drive the site's Format filter, so a new format that belongs to a group (another glTF or font container) goes into that group too. A format outside every group is still searchable and shown on the card, but the Format filter cannot select it. +- `delivery` (optional, #97): how the thing reaches you, from the closed list in [`site/format-vocabulary.json`](site/format-vocabulary.json) `delivery`: `desktop-app`, `web-app`, `mobile-app`, `cli`, `library`, `npm-package`, `middleware`, `godot-addon`, `gdextension`, `godot-project`, `unreal-plugin`, `unreal-project`, `unity-package`, `blender-extension`. The engine values drive the Engine filter; the site's Delivery filter groups them. An app type written under `formats` is rejected with a pointer here (V20). - `tags`: lower-case kebab-case words describing the content (`low-poly`, `modular`, `platformer`). Do not restate another field: the licence (`cc0`, `mit`, `ofl`, `open-source`, `royalty-free`), the credit requirement (`no-attribution`) or the entry's own `publisher` (`kenney`) are rejected (V19 via `site/value-aliases.json`, V21), because search and the filters read those fields directly and a copied tag drifts. A `varies` entry lists its licence mix in the body, not in tags. Licence or risk judgements (`freemium`, `per-file-license`, `games-ok`) are retired as tags too (#96). Search reads the entry text, so a tag that only repeats a word from the summary or Notes adds nothing; `npm run validate` prints the tags used by one entry, and the aim is to keep those under a fifth of all tags. - `ai-generated` tag: required when the source says any of its content is AI-generated (V37; the body sentence "some sounds are AI-generated" without the tag fails). Add the entry to the list in [`docs/ai-assets.md`](docs/ai-assets.md) in the same change; the validator checks that list too. - Frontmatter is one `key: value` per line; lists are `[a, b]` or indented `- item` lines. A key given twice is an error. Entry files may not contain emoji. - `grid_dimensions` / `camera_perspective` / `hardware_tags`: optional metadata for 2D and UI entries. `3d` and `characters` entries leave `camera_perspective` out: it describes a 2D camera, and those entries have none. - `maintenance`: optional, `archived` | `inactive` (V22). Set `archived` when the source repository is archived, and `inactive` when it has had no push for over three years, with a dated `- Maintenance:` line in Notes saying what you read. Leave it out otherwise. The weekly link check reports a GitHub source whose state no longer matches. - `engine_lock`: optional, `unreal` (V23). Set it only when the licence restricts use to products built with that engine, as Epic's "UE-Only Content" listings do, and quote that line in Evidence. The site shows a **UE only** badge. Leave it out for content that is merely *made for* an engine. -- `limits`: optional, one plain line of at most 120 characters with no closing full stop (V36), for a restriction the licence fields cannot carry: content that in practice only works in one engine without a licence lock, or a ban on redistributing source files. The site shows it on the card, in "At a glance" and in the page's search description, so quote the source for it in Evidence. An entry whose formats are all one engine's (`[Unreal]`, a `godot-addon`) already gets an "Engine" line without it. +- `limits`: optional, one plain line of at most 120 characters with no closing full stop (V36), for a restriction the licence fields cannot carry: content that in practice only works in one engine without a licence lock, or a ban on redistributing source files. The site shows it on the card, in "At a glance" and in the page's search description, so quote the source for it in Evidence. An entry whose delivery is all one engine's (`unreal-project`, `godot-addon`) already gets an "Engine" line without it. - `ue_versions`: optional, the Unreal Engine versions the source itself states, as `5.4`, `5.4-5.8` or `5.4+` (V23). Say in Notes where the range came from (README, `.uplugin`, release names, listing). Never infer it. -- Unreal plugins use `subcategories: [unreal, ...]` and `formats: [unreal-plugin]`; Unreal projects and content packs use `formats: [Unreal]`. The validator rejects a GPL or LGPL licence on either, because the Unreal Engine EULA forbids combining the engine with that code (see [`docs/unreal.md`](docs/unreal.md)). +- Unreal plugins use `subcategories: [unreal, ...]` and `delivery: [unreal-plugin]`; Unreal projects and content packs use `delivery: [unreal-project]`. The validator rejects a GPL or LGPL licence on either, because the Unreal Engine EULA forbids combining the engine with that code (see [`docs/unreal.md`](docs/unreal.md)). - `url`: an `https://` address (`http://` only where the source has no https). Other schemes are rejected. - `license_url` (optional, #144): the page your Evidence quotes the licence from, when it is not `url`: a terms page, a LICENSE file, a FAQ. Link it on that Evidence line; the validator checks it is there (V42). Left out, it defaults to `url`. The entry page shows it as "Licence text". - `added`: ISO date (`YYYY-MM-DD`) the entry joined the catalog. `npm run new-entry` fills it in; it never changes afterwards (V26: a real date, not in the future). The "new sources" feed and the home page's "New in the last 30 days" line key on it, so a re-verification sweep does not look like a wave of new entries. Moving an entry to another category keeps its date: `npm run check-added` (run in CI) fails when `added` is later than the file's first commit, following renames. - `verified`: ISO date (`YYYY-MM-DD`) of your last license check. It must be a real date, no later than tomorrow in UTC, and no newer than the newest date in `## Evidence` (V8): a new `verified` date needs a new dated Evidence line from the same check. Dates inside URLs do not count as Evidence dates. - `status`: `active` | `needs-review` | `per-item` | `deprecated`. A `per-item` entry is an aggregator whose licence is set per file or listing (#99): it needs `license: varies` and one `- Per item:` line in its Notes saying how to read each item's licence on that site (V40). Use it only when that is the whole question; anything else open stays `needs-review`. A `needs-review` entry needs a `- Review:` line in its Notes saying what is still unresolved, in one sentence (V39); it shows on the entry page and in the monthly re-verify issue, and goes once the entry is settled. A `deprecated` entry needs a `- Deprecated:` line in its body giving the reason (V9), and `npm run counts` afterwards, since deprecated entries leave the counts (V6). `active` means the licence, the commercial stance and the credit requirement are all settled: an `unknown` in `license`, `commercial` or `attribution_required` keeps an entry at `needs-review`. The validator enforces this (V14), and rejects `formats`, `subcategories` or `tags` values that differ only by case, punctuation or a trailing "s" from one already in use (V13). -- No other keys. An unknown key is rejected with the nearest allowed one (V33): `id`, `name`, `url`, `publisher`, `category`, `subcategories`, `license`, `license_spdx`, `commercial`, `attribution_required`, `attribution_string`, `formats`, `tags`, `added`, `verified`, `status`, `engine_lock`, `ue_versions`, `camera_perspective`, `grid_dimensions`, `maintenance`, `hardware_tags`, `preview` and `limits`. A typo such as `engine-lock` would otherwise drop the fact silently. Block-list items are indented under their key (` - item`), and every key needs a space after its colon. +- No other keys. An unknown key is rejected with the nearest allowed one (V33): `id`, `name`, `url`, `license_url`, `publisher`, `category`, `subcategories`, `license`, `license_spdx`, `commercial`, `attribution_required`, `attribution_string`, `formats`, `delivery`, `tags`, `added`, `verified`, `status`, `engine_lock`, `ue_versions`, `camera_perspective`, `grid_dimensions`, `maintenance`, `hardware_tags`, `preview` and `limits`. A typo such as `engine-lock` would otherwise drop the fact silently. Block-list items are indented under their key (` - item`), and every key needs a space after its colon. ## What CI runs diff --git a/docs/unreal.md b/docs/unreal.md index 5d612599..9dc20ab4 100644 --- a/docs/unreal.md +++ b/docs/unreal.md @@ -8,7 +8,7 @@ Unreal's free content changed a lot after the Unreal Marketplace became Fab in O - `engine_lock: unreal` marks a licence that only permits use in Unreal Engine-based products. Epic writes this on a Fab listing as "UE-Only Content - Licensed for Use Only with Unreal Engine-based Products". The site shows a **UE only** badge. An entry without it may still be *made for* Unreal; it just carries no engine restriction that we could read. - `ue_versions` is the engine range the source itself states (a Fab listing's "Unreal Engine versions" field, a README, a `.uplugin` or release names). Each entry's Notes say where it came from. It is not a range we tested. -- Unreal plugins are filed in `tools/` with the `unreal` subcategory and the `unreal-plugin` format. Unreal projects and content packs use the `Unreal` format. The site's Format filter has an **Unreal Engine** group covering both. +- Unreal plugins are filed in `tools/` with the `unreal` subcategory and `delivery: [unreal-plugin]`. Unreal projects and content packs use `delivery: [unreal-project]`. The site's Engine and Delivery filters cover both. ## The copyleft trap