Repository navigation
v2.12.0
简体中文
新功能
- CLI 新增
inspect/trace只读诊断命令:Bundle 内省与跨包引用追踪,输出包含path_id;支持缓存落盘、自身 CAB、local-only模式。- 这两个命令可作为 AI Agent 调试 / 逆向用的工具
- Spine 渲染功能可选 SpineViewer(原有功能)与 Spine2Dump(新加入)二选一。
- GUI 设置中可配置渲染后端
- CLI 的
report/batch-preview/install新增--spine-renderer选项 - 实测 Spine2Dump 在批量执行时速度更快,但尺寸可能不完全一致,难以控制
- CLI 新增
install命令(mod 安装),与 GUI 同步 mod update支持 Font 字体资源更新。Font 类 mod 由 BA-Font-Replacer 生成- 新增
references.py跨 bundle 指针解析模块、轻量 CAB 名解析与 CAB 跨包定位;CAB 包扫描策略优化(同组优先扫描) - DropZone 显示文本改为
name (core)的格式。例如霞泽美游 (CH0145_spr)
重构 / 内部
- 代码结构拆分:
core.py→core/包(extraction / introspect / mod_install / mod_update / packing / preview / report)utils.py→utils/子模块(about / common / crc / image / paths);Bundle.py资产操作拆分至asset.py;naming.py恢复零依赖apply_asset返回值重构:missing_anims移入返回值
- 依赖拆分为可选 extras:GUI(ttkbootstrap / tkinterdnd2)与 CLI(typed-argument-parser)独立安装,便于其他用户导入本项目作为库使用,并新增
py.typed - CLI 帮助信息改用
GroupedHelpFormatter分组展示
English
New Features
- CLI adds
inspect/traceread-only diagnostic commands: bundle introspection and cross-package reference tracing, withpath_idin the output; supports cache persistence, own CAB, andlocal-onlymode.- These two commands can be used as debugging / reverse-engineering tools for AI Agents
- Spine rendering now supports SpineViewer (existing) and Spine2Dump (new) — choose either one.
- The render backend is configurable in the GUI settings
- The
report/batch-preview/installCLI commands add a--spine-rendereroption - In practice Spine2Dump is faster in batch execution, but the output size may differ and is hard to control
- CLI adds the
installcommand (mod installation), keeping pace with the GUI mod updatenow supports Font asset updates. Font mods are generated by BA-Font-Replacer- Adds the
references.pycross-bundle pointer parsing module, lightweight CAB name parsing and cross-package CAB locating; CAB scanning strategy optimized (same-group priority scan) - DropZone display text changed to the
name (core)format, e.g.Kasumizawa Miyu (CH0145_spr)
Refactoring / Internal
- Code structure split:
core.py→core/package (extraction / introspect / mod_install / mod_update / packing / preview / report)utils.py→utils/submodules (about / common / crc / image / paths)- Bundle asset operations split into
asset.py naming.pyrestored to zero dependencies
apply_assetreturn value refactored:missing_animsmoved into the return value- Dependencies split into optional extras: GUI (ttkbootstrap / tkinterdnd2) and CLI (typed-argument-parser) can be installed independently, making it easier for others to import this project as a library, with
py.typedadded - CLI help text now displayed in groups via
GroupedHelpFormatter
Full Changelog: v2.11.3...v2.12.0