dsh-game-material-master 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +35 -13
- package/README.md +34 -14
- package/lib/client.js +605 -27
- package/lib/config.js +24 -2
- package/lib/index.js +164 -3
- package/lib/links.js +4 -2
- package/lib/musicapi.js +7 -0
- package/lib/musicgen.js +106 -20
- package/lib/sfxapi.js +391 -0
- package/lib/sfxgen.js +819 -0
- package/lib/tools.js +189 -24
- package/lib/wire.js +67 -2
- package/package.json +7 -3
package/README.en.md
CHANGED
|
@@ -12,26 +12,25 @@ third-party service.
|
|
|
12
12
|
[](https://www.npmjs.com/package/dsh-game-material-master)
|
|
13
13
|
[](LICENSE)
|
|
14
14
|
|
|
15
|
-
> **🆕 What's new in 0.
|
|
16
|
-
> (
|
|
17
|
-
>
|
|
18
|
-
>
|
|
19
|
-
> backend for image-to-video; and full **DSH 0.2.1** support (`engines.dsh`, `--public-url` path prefix).
|
|
15
|
+
> **🆕 What's new in 0.9.0**: an eighth module, [**Sound effects**](#-sound-effects-volcengine-seed-audio)
|
|
16
|
+
> (Volcengine Seed-Audio: one prompt → sound effects / ambience / character voices, with an optional reference
|
|
17
|
+
> image or audio; every run is billed; up to 120 seconds). The 0.8.0 **music generation / compose mode**,
|
|
18
|
+
> map editor **Generate with AI / stamps**, **local ComfyUI** backend and **DSH 0.2.1** support remain.
|
|
20
19
|
> See the [release notes in AGENTS.md](https://github.com/universe-st/dsh-game-material-master/blob/main/AGENTS.md#已发布版本).
|
|
21
20
|
|
|
22
21
|

|
|
23
22
|
|
|
24
23
|
> **Up and running in 30 seconds**: `dsh plugin --profile web add dsh-game-material-master` → restart DSH →
|
|
25
|
-
> click "Game Material Master" in the sidebar → enter the
|
|
24
|
+
> click "Game Material Master" in the sidebar → enter the API keys you need (images / video; sound effects use a separate speech key) → create a project,
|
|
26
25
|
> upload your character sheet → click "Generate turn video" (the default path: the character rotates steadily
|
|
27
26
|
> in place for one full turn, then the eight directions are cut out automatically; switch the method in
|
|
28
27
|
> stage ① if you'd rather generate each direction separately).
|
|
29
28
|
>
|
|
30
|
-
> The sidebar entry also carries a **small chevron menu button**: click it to pop up the
|
|
29
|
+
> The sidebar entry also carries a **small chevron menu button**: click it to pop up the eight features and
|
|
31
30
|
> jump straight into the one you want. Features you do not use can be turned off in settings (see
|
|
32
31
|
> "Feature management").
|
|
33
32
|
|
|
34
|
-
All
|
|
33
|
+
All eight modules share the same "generate → review → re-run" workbench. Every stage can be **redone on its
|
|
35
34
|
own**, and every asset can be **approved item by item**. The "review mode" lets an agent approve each step
|
|
36
35
|
and move on automatically, or stop at every step and wait for your go-ahead.
|
|
37
36
|
|
|
@@ -43,6 +42,7 @@ and move on automatically, or stop at every step and wait for your go-ahead.
|
|
|
43
42
|
| **⑤ Map tile generation** | Isometric tiles → assemble a whole map | A tile pack (PNGs) + map PNG + layout JSON |
|
|
44
43
|
| **⑥ Map editor** (**fully local, zero cost**) | Pick a tileset → paint directly (rebuilt after AsLib's RPG Map Maker: one screen, icon-only, no jargon; three default layers — terrain / decor / buildings — that you can rename and reorder; a **marker layer**: one nameable marker per cell, drawn as a numbered circle; **Generate with AI** lives in the assets window: give a prompt, a name, a frame count, a method and a usage, and the plugin **opens a new chat** to generate it — it picks the tile type (plain / whole-cell / quadrant) from the prompt itself, asks the model for **one seamless tile** and assembles all 16 connections / 5 shape rows in code (so the tiles actually line up on the map). Animated assets use quadrant tiles (frames become variants, still auto-connecting) or plain tiles (flipbook), and each asset can be given its own playback speed in "Add asset" (otherwise it follows the global speed in Settings) plus a **clarity** mode for the 2K-to-32px downscale (area average / nearest / average + sharpen) , a **loop mode** (forward / reverse / ping-pong), and **stamps** (one picture stamping N x M cells at once - statues, murals, carpets - rotated with a right-click, green screen keyed to transparency, with per-cell walkability set at import), a **tile size** choice when creating a project (16 / 32 / 48 / 64 - pick 48 / 64 for sharper AI assets) and automatic trimming of the white border models like to add; whole-cell tiles are just 16 connection cases with no animation, so the dialog locks the frame count and the video model, then posts a link; click it and the image and its usage are already filled in on "Add asset") | PNG + save-file JSON (wrapping map, auto-tiling, animated tiles, markers); tick what to export and multiple files come as one ZIP download |
|
|
45
44
|
| **⑦ Music generation & editing** (Puyue AI) | An inspiration prompt or full lyrics → a new chat that is **not attached to any project**; the agent there reads the built-in creation guide, expands the prompt, chooses Suno / Mureka / MiniMax / ACE-Step and a mode, generates → back in the UI, trim / adjust gain / fade / normalize → save versions and export. Also **Compose mode**: analyse the idea, present a style/key/section/instrumentation plan, write MIDI with scoremill, render a local preview, revise version by version, then optionally hand it to Suno | MP3 / WAV / M4A (multiple outputs can be zipped); compose mode also exports a score bundle (MIDI / preview / plan / compose.py). The original is kept and every edit or score version is new |
|
|
45
|
+
| **⑧ Sound effects** (Volcengine Seed-Audio) | Describe the source / environment / intensity / duration → sound effects, ambience, UI sounds, creature roars or character voices; optionally 1 reference image or up to 3 reference audio clips (mutually exclusive); every run adds a take without overwriting earlier ones | WAV / MP3 / Ogg Opus; export one take or zip all. Up to 120 seconds per run; every generation is billed |
|
|
46
46
|
| ~~④ Rigged animation~~ | Part extraction → assembly → skeletal animation → Spine / DragonBones atlas | **Experimental, not covered in this document** |
|
|
47
47
|
|
|
48
48
|
> 💡 **Module ⑤ "Map tile generation" is built on one idea: geometry by code, content by AI.**
|
|
@@ -74,7 +74,7 @@ and move on automatically, or stop at every step and wait for your go-ahead.
|
|
|
74
74
|
> their variants are the frames. You can also generate random terrain, a maze or a continent in one go.
|
|
75
75
|
> **Not a single model call is made — so nothing is billed.**
|
|
76
76
|
|
|
77
|
-
> 🏷️ **Creating anything in any of the
|
|
77
|
+
> 🏷️ **Creating anything in any of the eight modules asks for a name first**: the field is pre-filled with the
|
|
78
78
|
> default (just press Enter to keep it), and cancelling creates nothing. Map projects can also be renamed later.
|
|
79
79
|
|
|
80
80
|
> ⚠️ **Module ④ "Rigged animation" is still experimental and not yet finished**: the quality of part extraction
|
|
@@ -305,9 +305,29 @@ Compose mode):
|
|
|
305
305
|
Composing, previewing and exporting are fully local and **do not consume Puyue AI credits**; only the final
|
|
306
306
|
Suno handoff is billed.
|
|
307
307
|
|
|
308
|
+
## ⑧ Sound effects (Volcengine Seed-Audio)
|
|
309
|
+
|
|
310
|
+
This module generates directly in the UI: describe the sound, choose a format and sample rate, then click
|
|
311
|
+
Generate (billed).
|
|
312
|
+
|
|
313
|
+
- **Write the prompt like a dubbing director's script**: source + environment + intensity/rhythm + approximate
|
|
314
|
+
duration, e.g. "metal impact in heavy rain, short and forceful, about 1 second, with a slight tail". Up to
|
|
315
|
+
**120 seconds** per run; the API has no duration parameter, so put the length in the prompt.
|
|
316
|
+
- **Optional references**: one reference image (image-to-audio) or up to three reference audio clips (each at
|
|
317
|
+
most 30 seconds / 10MB), never both. Reference audio is addressed as `@音频1…@音频3` in the prompt.
|
|
318
|
+
- **One take per run**: earlier takes are never overwritten; preview, export or zip them in the UI. Failures are
|
|
319
|
+
not retried automatically.
|
|
320
|
+
- **Default model** `seed-audio-1.0`, default output WAV / 24000Hz (switchable to MP3 / Ogg Opus and
|
|
321
|
+
16k / 24k / 32k / 44.1k / 48k).
|
|
322
|
+
- **The key is the speech console API key** (header `X-Api-Key`), **not** the Ark `ARK_API_KEY`; the
|
|
323
|
+
`seed-audio-1.0` model must be enabled in the speech console. "Test connection" really generates one very
|
|
324
|
+
short sound effect, which costs a small amount.
|
|
325
|
+
- Billing uses the returned `original_duration`; retries are billed again, so confirm with the user first.
|
|
326
|
+
- v1 does not edit audio locally (trim / fade / loudness); it only generates, previews, downloads and exports.
|
|
327
|
+
|
|
308
328
|
## Driving it from chat
|
|
309
329
|
|
|
310
|
-
**Every feature of all
|
|
330
|
+
**Every feature of all eight modules** (including the experimental rigged animation and map tiles) **is available through
|
|
311
331
|
chat**. The plugin registers the whole pipeline as `game_material_*` tools, so an agent can drive it forward,
|
|
312
332
|
wait, review, and also stop at each step for you to approve.
|
|
313
333
|
|
|
@@ -339,7 +359,7 @@ dsh plugin --profile web add /path/to/dsh-game-material-master
|
|
|
339
359
|
```
|
|
340
360
|
|
|
341
361
|
The package is published to npm: [dsh-game-material-master](https://www.npmjs.com/package/dsh-game-material-master)
|
|
342
|
-
(currently `0.
|
|
362
|
+
(currently `0.9.0`, `latest`). It has no runtime dependencies, so `dsh plugin add` is all you need.
|
|
343
363
|
|
|
344
364
|
**DSH version**: `>=0.2.0-rc.2 <0.3.0` (the `engines.dsh` field; since DSH 0.2.1 the plugin manager checks it first).
|
|
345
365
|
When a Web deployment uses `--public-url https://host/prefix/`, deep links and asset URLs include that path prefix.
|
|
@@ -379,6 +399,7 @@ installation tree.
|
|
|
379
399
|
| Default parameters | Cell width and height, frame count, pixel block size, keying threshold, and so on |
|
|
380
400
|
| Local ComfyUI (image-to-video) | Routes image-to-video through a local **ComfyUI** instead of MiniMax; "Test connection" is read-only and free |
|
|
381
401
|
| Music generation (Puyue AI) | Puyue AI API key, base URL, default music model and timeouts; "Test connection" reads one page of history and does not generate anything (no generation credits). Generation is billed by platform credits; the plugin does not collect payment |
|
|
402
|
+
| Sound effects (Volcengine Seed-Audio) | Speech console API key (not the Ark key), base URL, default model `seed-audio-1.0`, default format / sample rate and timeout; "Test connection" really generates one very short sound effect (small charge) |
|
|
382
403
|
| Feature management | Per-module switches: a disabled module disappears from the UI **and the agent cannot call it either** (see below) |
|
|
383
404
|
|
|
384
405
|
Keys are written only to `<DSH_HOME>/game-material-master/config.json` on your machine, and the UI always
|
|
@@ -474,7 +495,7 @@ the host side (the host has no access to the locale service), so the browser hal
|
|
|
474
495
|
along every time it reads a project or resets prompts.
|
|
475
496
|
|
|
476
497
|
Scope note: **localization covers the browser half's UI text and the built-in default prompts** — the workbench
|
|
477
|
-
title, the
|
|
498
|
+
title, the eight module tabs, every card's buttons and notice bars, dialogs, the settings page, the review
|
|
478
499
|
controls, and the default prompts. Two categories remain in Chinese, because DSH currently only exposes the
|
|
479
500
|
locale service to the browser half:
|
|
480
501
|
|
|
@@ -506,7 +527,8 @@ Everything in the UI that you can click, change or approve is bilingual.
|
|
|
506
527
|
├── rig-jobs/<id>/ rigged animation (experimental: sheet / parts / layout / rig / atlas)
|
|
507
528
|
├── tile-jobs/<id>/ map tiles (template / raw / cell / decor / map / export)
|
|
508
529
|
├── map-jobs/<id>/ map editor (project.json / map.json / tilesets / ai / preview / export)
|
|
509
|
-
|
|
530
|
+
├── music-jobs/<id>/ music generation & editing (songs / versions / peaks / tools / out)
|
|
531
|
+
└── sfx-jobs/<id>/ sound effects (refs / takes / out)
|
|
510
532
|
```
|
|
511
533
|
|
|
512
534
|
> Map tiles keep the **raw generation output** in `raw/`: after changing regularisation parameters such as
|
package/README.md
CHANGED
|
@@ -10,22 +10,22 @@
|
|
|
10
10
|
[](https://www.npmjs.com/package/dsh-game-material-master)
|
|
11
11
|
[](LICENSE)
|
|
12
12
|
|
|
13
|
-
> **🆕 0.
|
|
14
|
-
>
|
|
15
|
-
>
|
|
16
|
-
>
|
|
13
|
+
> **🆕 0.9.0 更新**:新增第八个模块 [**音效生成**](#-音效生成火山引擎-seed-audio)(火山引擎 Seed-Audio:
|
|
14
|
+
> 一句话描述 → 音效 / 环境音 / 角色配音,可带参考图或参考音频,每次生成真实计费,单次最长 120 秒)。
|
|
15
|
+
> 上一版 0.8.0 的 **音乐生成编辑 / 谱曲模式**、地图编辑器 **AI 生成素材 / 整图**、**本地 ComfyUI**
|
|
16
|
+
> 与 **DSH 0.2.1** 适配继续保留。
|
|
17
17
|
> 完整变更见 [AGENTS.md 发布记录](https://github.com/universe-st/dsh-game-material-master/blob/main/AGENTS.md#已发布版本)。
|
|
18
18
|
|
|
19
19
|

|
|
20
20
|
|
|
21
21
|
> **30 秒上手**:`dsh plugin --profile web add dsh-game-material-master` → 重启 DSH →
|
|
22
|
-
> 侧栏点「游戏素材大师」→
|
|
22
|
+
> 侧栏点「游戏素材大师」→ 设置里填好要用的 API Key(生图 / 视频;音效另填语音 Key)→ 新建项目、上传设定图 → 点「生成转圈视频」
|
|
23
23
|
>(默认路径:角色原地匀速转一圈,再自动截出八个方向;要逐方向生图就在阶段①切一下方式)。
|
|
24
24
|
>
|
|
25
|
-
>
|
|
25
|
+
> 侧栏那个入口上还有一个**小折角菜单按钮**:点它直接弹出八个功能,一步跳进要用的那个;
|
|
26
26
|
> 不用的功能可以在设置里关掉(见「功能管理」)。
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
八个模块共用同一套「生成 → 验收 → 重跑」工作台。每个阶段都能**单独重做**,每份产物都能
|
|
29
29
|
**逐项打「通过」**;「审核模式」可以选 agent 自动审完就往下走,也可以选每一步停下来等你点头。
|
|
30
30
|
|
|
31
31
|
| 模块 | 做什么 | 走完能拿到 |
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
| **⑤ 45°地图地块生成**(实验性) | 45° 等距地块 → 铺成整张地图 | 地块包(PNG)+ 地图 PNG + 布局 JSON |
|
|
37
37
|
| **⑥ 地图编辑器**(**全本地零计费**) | 选一张素材图 → 直接画(参照 AsLib 的 RPG Map Maker 重做:一屏、纯图标、零术语;默认「地理层 / 装饰层 / 建筑层」三层且可改名换序;**标记层**:每格放一个可命名的标记,画成圆圈里的数字;素材窗口里还有 **AI 生成素材**:填提示词 / 名字 / 帧数 / 方式 / 用法,插件会**自动开一个新对话**去生成 —— 用哪种素材(普通 / 整格 / 拼块)由它按提示词自动判断,只让模型画**一块无缝的砖**,16 种接法 / 5 种形状与断口收口都由插件用代码拼出来(这样拼到地图上才不会有缝)。会动的素材走「拼块」(帧数 = 变体,会自动连接)或「普通」(翻页图),每张素材还能在「新增素材」里单独设自己的播放速度(不设就跟设置里的全局速度走)、**清晰度**(2K 大图缩到 32px 格子时用面积平均 / 最近邻 / 平均+锐化,细节差很多)、**循环方式**(正放 / 倒放 / 来回);另有**整图**(一张画一次占 N×M 格:雕像 / 壁画 / 地毯,右键转 90°、绿幕自动抠成透明、导入时逐格点通行区域);新建项目还能选**一格多大**(16 / 32 / 48 / 64,想让 AI 素材更清楚就用 48 / 64),模型在四周留的白框会被自动裁掉;整格只有 16 种接法、没有动画,界面里会把帧数与视频模型锁住,回来点链接这张图与用法就填在「新增素材」里) | PNG + 存档 JSON(地图四周环绕、自动连接、动画地块、标记点);勾几项就导几项,多个产物自动打成一个 ZIP 下载 |
|
|
38
38
|
| **⑦ 音乐生成编辑**(谱乐 AI) | 灵感提示词或完整歌词 → 自动开一个**不挂靠项目**的新对话;对话里的 agent 读内置创作指南、扩写提示词、选 Suno / Mureka / MiniMax / ACE-Step 与模式并生成 → 回界面裁剪 / 调音量 / 淡入淡出 / 标准化 → 保存版本与导出。另有**谱曲模式**:先分析想法、给出曲风/调性/段落/配器方案,再用 scoremill 写 MIDI、本地渲染试听、逐版修改,满意后可选交给 Suno 生成正式版 | MP3 / WAV / M4A(多产物可打 zip);谱曲模式另有 MIDI / 试听 / 方案 / compose.py 的乐谱包。原曲保留,编辑与谱曲结果都是新版本 |
|
|
39
|
+
| **⑧ 音效生成**(火山引擎 Seed-Audio) | 一句话描述声源 / 环境 / 强度 / 时长 → 生成音效、环境音、UI 声、生物吼叫或角色配音;可带 1 张参考图或最多 3 条参考音频(两者互斥);每次生成新增一条 take,旧 take 不覆盖 | WAV / MP3 / Ogg Opus;可单条导出或全部打 zip。单次最长 120 秒;每次生成真实计费 |
|
|
39
40
|
| ~~④ 骨骼动画生成~~ | 拆件 → 装配 → 骨骼动画 → Spine / DragonBones 图集 | **实验性功能,本文不展示** |
|
|
40
41
|
|
|
41
42
|
> 💡 **模块⑤「45°地图地块生成」的核心思路是「几何交给代码,内容交给 AI」。**
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
> 还能一键生成随机地形 / 迷宫 / 大陆。
|
|
61
62
|
> **一次模型调用都没有,也就不花钱。**
|
|
62
63
|
|
|
63
|
-
> 🏷️
|
|
64
|
+
> 🏷️ **八个模块的新建都先问一个名字**:输入框里已经填好默认名(直接回车就用默认值),点取消则不会创建;
|
|
64
65
|
> 地图项目还能随时「重命名」。
|
|
65
66
|
|
|
66
67
|
> ⚠️ **模块④「骨骼动画生成」仍是实验性功能,尚未完善**:拆件质量取决于生图模型,自动装配与骨骼推导
|
|
@@ -246,9 +247,26 @@ flowchart LR
|
|
|
246
247
|
|
|
247
248
|
谱曲、试听、导出全部在本地完成,**不消耗谱乐 AI 积分**;只有最后交给 Suno 才计费。
|
|
248
249
|
|
|
250
|
+
## ⑧ 音效生成(火山引擎 Seed-Audio)
|
|
251
|
+
|
|
252
|
+
音效这一模块不派给对话,界面上直接生成:写一句「要什么声音」,选格式与采样率,点「生成(计费)」。
|
|
253
|
+
|
|
254
|
+
- **提示词当导演脚本写**:声源 + 环境 + 强度/节奏 + 大致时长。例如「暴雨中的金属撞击,短促有力,
|
|
255
|
+
约 1 秒,带一点尾音」。单次输出上限 **120 秒**;接口没有 duration 参数,时长只能写进提示词。
|
|
256
|
+
- **参考素材(可选)**:1 张参考图(图生音)或最多 3 条参考音频(每条 ≤30 秒 / ≤10MB),两者不能同时用;
|
|
257
|
+
参考音频在提示词里用 `@音频1…@音频3` 引用。
|
|
258
|
+
- **每次生成一条 take**:旧 take 永远保留,可以在界面里逐条试听 / 导出 / 打包;失败不会自动重试。
|
|
259
|
+
- **默认模型** `seed-audio-1.0`,默认输出 WAV / 24000Hz(可切 MP3 / Ogg Opus 与
|
|
260
|
+
16k / 24k / 32k / 44.1k / 48k)。
|
|
261
|
+
- **Key 是语音控制台的 API Key**(请求头 `X-Api-Key`),**不是**火山方舟的 `ARK_API_KEY`;
|
|
262
|
+
`seed-audio-1.0` 需要先在语音控制台开通。设置页的「测试连接」会真实生成一条极短音效,
|
|
263
|
+
会产生少量费用。
|
|
264
|
+
- 计费按返回的 `original_duration`;重试会再计费,失败/重试前请先确认。
|
|
265
|
+
- v1 不做本地剪辑(裁剪 / 淡入淡出 / 响度标准化),只做生成、试听、下载与导出。
|
|
266
|
+
|
|
249
267
|
## 用对话驱动
|
|
250
268
|
|
|
251
|
-
|
|
269
|
+
八个模块(含实验性的骨骼动画与地图地块)的**全部功能都能通过对话调用**。插件把整条流水线注册成
|
|
252
270
|
`game_material_*` 工具,agent 能自己推进、等待、审查,也可以在每一步停下来让你验收。
|
|
253
271
|
|
|
254
272
|
| 工具 | 作用 |
|
|
@@ -278,7 +296,7 @@ dsh plugin --profile web add /path/to/dsh-game-material-master
|
|
|
278
296
|
```
|
|
279
297
|
|
|
280
298
|
包已发布到 npm:[dsh-game-material-master](https://www.npmjs.com/package/dsh-game-material-master)
|
|
281
|
-
(当前 `0.
|
|
299
|
+
(当前 `0.9.0`,`latest`)。本包没有运行时依赖,`dsh plugin add` 拉下来即可用。
|
|
282
300
|
|
|
283
301
|
**DSH 版本**:`>=0.2.0-rc.2 <0.3.0`(`package.json` 的 `engines.dsh`;DSH 0.2.1 起插件管理器优先按它判断兼容性)。
|
|
284
302
|
Web 部署用 `--public-url https://host/prefix/` 时,深链接与产物地址会跟着补路径前缀。
|
|
@@ -314,7 +332,8 @@ Windows 注册表里的同名变量 → WinGet / Scoop / Chocolatey 与 `C:\ffmp
|
|
|
314
332
|
| 默认参数 | 单格宽高、抽帧张数、像素块边长、抠像阈值等 |
|
|
315
333
|
| 本地 ComfyUI(图生视频) | 勾选后图生视频改走**本机 ComfyUI**,替代 MiniMax;「测试连接」只读状态、免费 |
|
|
316
334
|
| 音乐生成(谱乐 AI) | 填谱乐 AI API Key、Base URL、默认音乐模型与超时;「测试连接」读一页历史,不产生生成费用。生成按平台积分计费,插件不代收 |
|
|
317
|
-
|
|
|
335
|
+
| 音效生成(火山引擎 Seed-Audio) | 填语音控制台 API Key(不是方舟 Key)、Base URL、默认模型 `seed-audio-1.0`、默认格式/采样率与超时;「测试连接」会真实生成一条极短音效(少量费用) |
|
|
336
|
+
| 功能管理 | 逐个开关八个模块:关掉的模块界面上不再出现,**对话里的 AI 也调不到**(见下) |
|
|
318
337
|
|
|
319
338
|
Key 只写入本机 `<DSH_HOME>/game-material-master/config.json`,界面回显始终脱敏。
|
|
320
339
|
**生图后端与模型是插件级设置,所有需要生图的模块共用**,切换后任务自动对齐新档位。
|
|
@@ -378,7 +397,7 @@ Key 只写入本机 `<DSH_HOME>/game-material-master/config.json`,界面回显
|
|
|
378
397
|
## 界面语言
|
|
379
398
|
|
|
380
399
|
**插件界面跟随 DSH 自身的语言设置**(设置 → 通用 → 语言),中文 / 英文都是一等公民,
|
|
381
|
-
|
|
400
|
+
切换**即时生效**、不用刷新页面:工作台标题、八个模块页签、每一张卡片的按钮、提示条、
|
|
382
401
|
弹窗与设置页全部跟着走。
|
|
383
402
|
|
|
384
403
|
实现上不猜也不复制 DSH 的语言状态,而是接 DSH 的 `locale` 服务
|
|
@@ -392,7 +411,7 @@ Key 只写入本机 `<DSH_HOME>/game-material-master/config.json`,界面回显
|
|
|
392
411
|
所以浏览器半区每次读项目、重置提示词时把当前语言一起带过去。
|
|
393
412
|
|
|
394
413
|
范围说明:**多语言覆盖的是浏览器半区的界面文案与内置默认提示词**——工作台标题、
|
|
395
|
-
|
|
414
|
+
八个模块页签、每一张卡片的按钮与提示条、弹窗、设置页、验收控件、默认提示词。
|
|
396
415
|
以下两类仍是中文,因为 DSH 目前只把 locale 服务提供给浏览器半区:
|
|
397
416
|
|
|
398
417
|
- **运行日志里由宿主写入的行**(「开始生成「南 · 正对镜头」」「…生成完成,用时 12.3 秒」等)
|
|
@@ -418,7 +437,8 @@ Key 只写入本机 `<DSH_HOME>/game-material-master/config.json`,界面回显
|
|
|
418
437
|
├── rig-jobs/<id>/ 骨骼动画(实验性:sheet / parts / layout / rig / atlas)
|
|
419
438
|
├── tile-jobs/<id>/ 地图地块(template / raw / cell / decor / map / export)
|
|
420
439
|
├── map-jobs/<id>/ 地图编辑器(project.json / map.json / tilesets / ai / preview / export)
|
|
421
|
-
|
|
440
|
+
├── music-jobs/<id>/ 音乐生成编辑(songs / versions / peaks / tools / out)
|
|
441
|
+
└── sfx-jobs/<id>/ 音效生成(refs / takes / out)
|
|
422
442
|
```
|
|
423
443
|
|
|
424
444
|
> 地图地块的 `raw/` 会**保留原始生成结果**:改了单元格尺寸之类的规整参数后,
|