# Content, assets, and modding ## Content shipped with the game Authored gameplay data lives under `data/ascii/` as UTF-8 JSON copied from the ASCII project. The game reads it through `ContentLoader` and `ContentCatalog` at startup. Supported files are deliberately explicit: | Location | Loaded catalog | | --- | --- | | `items.json`, `enemies.json`, `spells.json`, `achievements.json`, `factions.json`, `loot_tables.json`, `npcs.json`, `traps.json` | Definitions of that named family | | `dialogues/*.json` | Dialogue definitions | | `quests/*.json` | Quest definitions | | `events/*.json` | Narrative/world-event definitions | `hero_classes.json`, `races.json`, `perks.json`, `recipes.json`, and `titles.json` are preserved source data. They are consumed by their specific game systems where available but are not generic `ContentCatalog` families. The loader retains a diagnostic for unreadable JSON, a missing `id`, or duplicate supported IDs; it does not silently replace duplicate definitions. ## Supported modding workflow This repository does not provide a runtime mod browser, load order, dependency resolver, code modding API, or guarantee a stable schema. Treat content changes as a source mod/fork: 1. Create a branch or copy of the source checkout. 2. Edit an existing supported JSON file or add a correctly shaped JSON file to `dialogues/`, `quests/`, or `events/`. 3. Give each supported definition a non-empty unique string `id` within its family. Keep IDs stable after publishing: saves and references use them. 4. Validate JSON syntax and start the project from source. 5. Run the relevant test suite and then `./scripts/verify.sh` before distributing your build. 6. Re-export desktop artifacts with the G5 build scripts rather than editing a `.pck` or executable in place. For a minimal item addition, add an object compatible with the nearby entries in `data/ascii/items.json`, including an `id`. For dialogue, quest, and event additions, copy the structure of a neighboring single-definition file. Existing content is the authoritative schema reference because the port intentionally preserves ASCII definitions rather than introducing a second content format. Do not assume every preserved field creates a new behavior. Unsupported content families and unimplemented rules remain data for later port work. Validate a changed item, quest, event, enemy, or dialogue in a real run before release. ### Save compatibility Changing or deleting IDs can make existing save data invalid, incomplete, or semantically different. Back up `user://saves` before testing a mod. Current saves use versioned JSON, and the loader reports unsupported ASCII-migration keys rather than claiming they were kept. There is no automatic migration system for third-party content schema changes. ### Optional audio customization Audio is optional and is intentionally constrained. The game only plays typed `AudioStream` resources registered in `user://audio/audio_import_manifest.tres`; arbitrary files in a folder are neither scanned nor decoded. A safe setup tool or source change must import audio through Godot, create an `AudioImportManifest`, and register only the documented ambience contexts and SFX event names. See [PLAYING.md](PLAYING.md#audio-optional) for those names and silent fallback behavior. ## Assets and credits All shipped binary art is listed in [`assets/ASSET_REGISTRY.md`](../assets/ASSET_REGISTRY.md). The seven unmodified 32×32 dungeon sprites are from the **Dungeon Crawl Stone Soup Full** tile pack and are licensed **CC0 1.0**. The license text is included at [`assets/dcss/LICENSE-CC0-1.0.txt`](../assets/dcss/LICENSE-CC0-1.0.txt). Attribution is not required by CC0; the registry credits the pack voluntarily and records each source path. No audio assets ship with the project. Generated screenshots and build output are intentionally untracked (`artifacts/` and `build/`). Preserve licenses and record provenance for every new binary asset or third-party data set you add. ## Packaging modified content A source mod must be exported with the same Godot version and matching export templates used for the base build: ```bash ./scripts/build-linux.sh ./scripts/build-windows.sh ``` Linux exports are smoke-launched under X11. Windows exports are file-manifest validated on Linux only; test modified Windows builds on a Windows system before claiming runtime support. The generated Windows manifest lists every distribution file in `build/windows/` so package them together. ## Intentional limits - No in-game mod discovery, mod menu, hot reload, or compatibility promise exists. - Altering scripts, scenes, save serialization, or action routing is code development, not supported data-only modding. - Runtime content loaded from downloaded arbitrary paths is intentionally unsupported. - The project remains a compact prototype: a reached stair exit does not generate a next level, and some parity actions are registered before their complete gameplay rules exist.