Repository navigation
简体中文
Note
注意:本版本尚未适配日服最新版本。
由于日服最新版本已升级至 Unity 6,本次先将此前已完成的更新内容单独发布。
本次更新为 Mod 安装确认带来贴图相似度对比,并修复了 Spine2Dump 后端下动画差异检测的相关问题;打包与解包流程也有若干改进。
新功能
- Mod 安装确认弹窗新增贴图相似度显示:预览区展示相似度、MSE 与尺寸,下拉切换预览对时同步刷新;文件列表中的贴图也会在「内容有变化」后附带相似度
- 尺寸不同但宽高比接近时(渲染 trim 导致),会裁掉透明边并缩放到同一尺寸再比较,结果中标注「缩放后比较」;比例差异过大或仅一侧有图时只给出提示
- 资源打包的「溢出」新增 alpha 阈值设置(0–32,默认 5):alpha 不超过该值的像素按透明处理,由周边像素扩散覆盖颜色,用于消除线性过滤与 mipmap 产生的黑边
- 报告、异常检查、批量渲染预览图三个工具对话框新增「游戏资源目录」选项:可临时指定本次操作的来源目录,仅本次生效、不写入配置,默认沿用当前游戏目录
Bug 修复
- 修复使用 Spine2Dump 后端时,Mod 安装 / 更新无法检测动画数量的问题
- 修复资源打包的动画差异检测误用目标 bundle 的 atlas,导致 mod 重排图集后 Spine2Dump 加载即原生崩溃(0xC0000005)且失败被静默吞掉的问题。现在来源 skel 固定配对 mod 自带的 atlas,查询失败会输出明确的「动画差异检测失败」警告
- 修复解包输出残留上次文件的问题:解包前会先清空目标文件夹,避免图集部件减少后留下孤立的 png
优化与重构
- 贴图一致性判定由逐字节比较改为 MSE 容差判定(阈值 20,透明像素的 RGB 噪声不计入),避免压缩纹理解码噪声被误判为不同而重复写入
- 重构 Mod 安装的目标搜索逻辑:改用与批量更新相同的指纹匹配,不再预先按日期筛选候选,跨日期版本也能命中正确目标
- 提取通用批量执行工具
run_batch,统一 Mod 安装 / 更新 / 预览的并行执行与进度更新 - 重构设置项依赖管理与控件状态同步逻辑,「溢出阈值」等依赖项会随对应开关可靠启用或禁用
- 非 release 构建的窗口标题会附带短 commit hash,便于定位开发版本
English
Note
Note: this version is not yet adapted to the latest JP server version.
Since the latest JP server version has upgraded to Unity 6, this release publishes the updates completed so far on their own.
This release adds texture similarity comparison to the Mod install confirmation dialog, fixes animation difference detection with the Spine2Dump backend, and includes several packing and extraction improvements.
New Features
- The Mod install confirmation dialog now shows texture similarity: the preview area displays similarity, MSE and dimensions, refreshed when switching preview pairs; texture entries in the file list show similarity after "Content changed"
- When sizes differ but aspect ratios are close (caused by render trim), transparent edges are cropped and both sides are scaled to the same size before comparison, marked as "compared after scaling"; overly different ratios or one-sided images only show a hint
- A new alpha threshold option (0–32, default 5) for "Bleed" in asset packing: pixels with alpha not exceeding the value are treated as transparent and filled by spreading from surrounding pixels, removing black edges caused by linear filtering and mipmaps
- Report, Abnormal Check and Batch Render Previews dialogs now share a unified "Game Resource Directory" option: temporarily specify the source directory for this operation only, without saving to config; defaults to the current game directory
Bug Fixes
- Fixed animation count detection failing in Mod install / update when using the Spine2Dump backend
- Fixed animation difference detection in asset packing using the wrong atlas, which made Spine2Dump crash natively (0xC0000005) on load after a mod reordered its atlas and swallowed the failure silently. Source skels are now always paired with the mod's own atlas, and failures emit an explicit "animation difference detection failed" warning
- Fixed stale files remaining in extraction output: the target folder is now cleared before extraction, preventing orphaned pngs after atlas parts are reduced
Improvements & Refactoring
- Texture consistency check switched from byte-by-byte comparison to MSE tolerance (threshold 20, transparent pixels' RGB noise excluded), preventing compressed texture noise from being misjudged as different and rewritten
- Refactored Mod install target search to use the same fingerprint matching as batch update, no longer pre-filtering candidates by date, so targets across dated versions can be matched
- Extracted a shared
run_batchhelper to unify parallel execution and progress reporting for Mod install / update / preview - Refactored settings dependency management and widget state syncing; dependent options such as the bleed threshold now enable/disable reliably with their toggles
- Non-release builds now append a short commit hash to the window title for easier build identification
Full Changelog: v2.12.1...v2.13.0