Galgame generator: give it a script document plus character/background/BGM/animation assets in the workspace (img_human/, img_bg/, audio/, img_cg/) and it builds a playable visual-novel web page with configurable save slots (`[存档 N]`, default 9), speaker-following sprites with multi-pose variant switching (`[表情]`), opening/ending/CG animations (`[op]`/`[ed]`/`[cg]`), BGM play/stop/volume control, and if-line branching.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:baisama-cloud/dsh-galgame-generator
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Version: 0.4.1
A Galgame (visual novel) generator for DeepSeek Harness (DSH). Give it a script document plus character/background/BGM assets and it builds a playable visual-novel web page.
Features
- Script parser: characters / backgrounds / dialogue / narration / choices / jumps / endings / variables & if-lines (
[if 好感度 >= 1] … [else] … [endif]) - Speaker-following sprites: the current speaker's portrait shows, narration hides everyone, 0.35s fade (no flicker);
[show name]/[hide name]lock explicitly - Multi-pose characters:
名字·表情: 文件.pngdefines variant sprites;[表情 名字 表情名]switches them in-script (saved with the save data) - BGM control:
[bgm file.mp3]play (loop),[bgm off]/[bgm stop]stop,[bgm file.mp3 0.5]volume - Animations & CG:
[op]opening,[ed]ending,[cg]CG illustration animations (img_cg/, gif / svg / mp4 / webm / avi) - Configurable save slots:
[存档 N]sets the count (1–20, default 9); progress, sprites, expressions, background, BGM and variables are saved - Player: typewriter, auto/skip, backlog, endings; also exports a self-contained
<title>.galgame.htmlthat runs by double-click - Custom title screen: optional
## 开始界面section in the script (bg/music/show-characters/layoutspriteoravatar); leaving it out keeps the default title look - Model tools:
galgame_scan(scan assets) andgalgame_build(parse & build)
Asset convention (workspace root)
| What | Where |
|---|---|
| Script document | workspace root, any .md / .txt (e.g. 夏日回忆.md) |
| Character sprites | img_human/ |
| Background images | img_bg/ |
| BGM audio | audio/ |
| Opening/ending/CG animation | img_cg/ |
| Title-screen art (title bg / title music) | img_ui/ (optional, e.g. img_ui/title.png) |
See README.zh.md for the script format quick reference and installation steps.
🎬 Galgame Generation Mode
After install and a page refresh, the plugin also registers a 「Galgame 生成模式」 agent preset in DSH. Pick it in the new-session preset chip (or set it as default under Settings → Agent Presets). Sessions in this mode get an injected persona that tells the model to auto-run galgame_scan then galgame_build when you simply say "generate", so you only need to place the assets and say 生成. The preset is a full copy of standard with the generation-guidance persona added; you can tweak ~/.dsh/.agent-presets/galgame/ to customize it.
Install
pnpm pack
# copy dsh-galgame-generator-*.tgz into your web profile, e.g. under ~/.dsh/profiles/web:
# pnpm add ../path/to/dsh-galgame-generator-0.4.1.tgz
# then restart `dsh web`.
License
MIT
Links
More in this category
PC2005-cloud/dsh-pet#dsh-pet★ 983
Desktop pet for the DSH Web UI with 25 transparent animations, screen wandering, click reactions and drag, plus a reproducible asset-generation pipeline.
Nagi-ovo/dsh-ads★ 646
Parody ads in 2005-Chinese-web style: sidebar banners, in-chat feeds, corner popups, and a close button whose hit area is smaller than it looks. All fictional.
vlln/whale-girl★ 341
Desktop pet (QQ-pet style): floats in the corner, draggable, feedable, playable.
a86582751/dsh-nexttavern★ 136
Roleplay workspace for DeepSeek Harness: import SillyTavern/TauriTavern character cards or author one from scratch through an interactive flow; turn a long TXT novel into a playable card with either an intensive or a coarse reading pass; the main agent consults worldbooks on demand, and prose is read in a dedicated tavern reader tab; explore multiple worldlines inside one conversation (regenerate, edit-and-send, explicit clone); scoped style presets with 16 built-in styles, a character agent cluster, a standalone decision card, and card or novel export; long stories hold together through a frozen settings prefix, a hard-cut context window, traceable director notes and keyword/semantic/hybrid recall, with embeddings either online or fully local. Targets Harness 0.1.2-alpha.3 and applies its documented compatibility patches.
yyh-001/dsh-meme★ 125
Chat meme stickers: text-only send, mood auto-send, QQ/WeChat-style picker, auto-learn, custom packs.
Sutera-Diffusus/dsh-whale-musume★ 108
A whale-girl desktop pet for the DeepSeek Harness Web UI: pat-to-raise growth, work-state poses per tool type, 494 dialogue lines, 30 achievements, a growth diary, drag physics, theme sync and an accessibility mode. Chat-keyword sensing and API-balance care ship off and are opt-in; an optional weather mood calls Open-Meteo only after you name a city. No telemetry.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.