dsh-game-material-master 0.10.0 → 0.10.1
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 +4 -2
- package/README.md +3 -1
- package/lib/isogen.js +4 -0
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -21,7 +21,9 @@ third-party service.
|
|
|
21
21
|
> A new **optional ToAPIs asynchronous image / video backend** lands via
|
|
22
22
|
> [PR #7](https://github.com/universe-st/dsh-game-material-master/pull/7) — thanks
|
|
23
23
|
> [@ToAPIs-2025](https://github.com/ToAPIs-2025). The 0.9.x **sound-effect generator** (Seed-Audio) and its
|
|
24
|
-
> network-retry fixes remain.
|
|
24
|
+
> network-retry fixes remain. **0.10.1** fixes a crash in the isometric editor's one-click
|
|
25
|
+
> **continent** generation (the height-field midpoint pass wrote to a cell that does not exist).
|
|
26
|
+
> See the
|
|
25
27
|
> [release notes in AGENTS.md](https://github.com/universe-st/dsh-game-material-master/blob/main/AGENTS.md#已发布版本).
|
|
26
28
|
|
|
27
29
|

|
|
@@ -379,7 +381,7 @@ dsh plugin --profile web add /path/to/dsh-game-material-master
|
|
|
379
381
|
```
|
|
380
382
|
|
|
381
383
|
The package is published to npm: [dsh-game-material-master](https://www.npmjs.com/package/dsh-game-material-master)
|
|
382
|
-
(currently `0.10.
|
|
384
|
+
(currently `0.10.1`, `latest`). It has no runtime dependencies, so `dsh plugin add` is all you need.
|
|
383
385
|
|
|
384
386
|
**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).
|
|
385
387
|
When a Web deployment uses `--public-url https://host/prefix/`, deep links and asset URLs include that path prefix.
|
package/README.md
CHANGED
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
> 新增**可选 ToAPIs 异步图片 / 视频后端**(感谢 [PR #7](https://github.com/universe-st/dsh-game-material-master/pull/7),
|
|
18
18
|
> 来自 [@ToAPIs-2025](https://github.com/ToAPIs-2025))。
|
|
19
19
|
> 0.9.x 的 **音效生成**(Seed-Audio)与网络重试修复继续保留。
|
|
20
|
+
>
|
|
21
|
+
> **0.10.1 修复**:45° 地图编辑器「一键生成 → 大陆」不再崩溃(高度场中点插值写到了不存在的格子上)。
|
|
20
22
|
> 完整变更见 [AGENTS.md 发布记录](https://github.com/universe-st/dsh-game-material-master/blob/main/AGENTS.md#已发布版本)。
|
|
21
23
|
|
|
22
24
|

|
|
@@ -313,7 +315,7 @@ dsh plugin --profile web add /path/to/dsh-game-material-master
|
|
|
313
315
|
```
|
|
314
316
|
|
|
315
317
|
包已发布到 npm:[dsh-game-material-master](https://www.npmjs.com/package/dsh-game-material-master)
|
|
316
|
-
(当前 `0.10.
|
|
318
|
+
(当前 `0.10.1`,`latest`)。本包没有运行时依赖,`dsh plugin add` 拉下来即可用。
|
|
317
319
|
|
|
318
320
|
**DSH 版本**:`>=0.2.0-rc.2 <0.3.0`(`package.json` 的 `engines.dsh`;DSH 0.2.1 起插件管理器优先按它判断兼容性)。
|
|
319
321
|
Web 部署用 `--public-url https://host/prefix/` 时,深链接与产物地址会跟着补路径前缀。
|
package/lib/isogen.js
CHANGED
|
@@ -1236,6 +1236,10 @@ export async function runIsoGenerate(projectId, options) {
|
|
|
1236
1236
|
grid[r][c] = neighbors.reduce((sum, value) => sum + value, 0) / neighbors.length + (rng() - 0.5) * 0.08;
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
|
+
// step = 1 时「中点」落在半格上(grid[8.5] 不存在,旧代码在这里直接抛
|
|
1240
|
+
// TypeError);而 step = 1 的第一段已经把每个格子插值完了,这一段本来就不需要。
|
|
1241
|
+
if (step < 2)
|
|
1242
|
+
continue;
|
|
1239
1243
|
for (let r = 0; r < size; r += step * 2) {
|
|
1240
1244
|
for (let c = 0; c < size; c += step * 2) {
|
|
1241
1245
|
if (r + step < size && c + step < size) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-game-material-master",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "游戏素材大师:DSH 插件,包含八方向图生成、图片生成、序列帧生成、45° 地图编辑器、俯视地图编辑器、音乐生成编辑、音效生成七个正式模块,以及实验性的骨骼动画生成。对话工具面只注册一个 game_material(按需读手册);45° 与俯视两套地图编辑器全本地零计费(等距 2:1 / A2 自动连接 / 多格物件 / 动画 / 标记 / 环绕 / 一键生成 / AI 生成素材回链导入);音乐接谱乐 AI(灵感或歌词 → 新对话生成 → 回界面裁剪导出,另有本地谱曲模式);音效接火山引擎 Seed-Audio。生图默认火山方舟 Seedream,也可选自定义三家协议或 ToAPIs 异步接口;图生视频默认 MiniMax,也可选本机 ComfyUI 或 ToAPIs;抠像 / 抽帧 / 合成 / 音乐后期全部在本机完成。界面与内置提示词支持中 / 英。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|