车万女仆档案(迁移)管理器maid_file_manager-fabric-1.20.1-1.7.2.jar
Curse Maven Snippet
What's new
1.7.2 (English)
Architecture cleanup wrap-up + migration interface extensions
New
MaidMigrationException— when a provider throws it, the message is shown to players verbatim; other exceptions only show "see server log".MigrationReporter— providers can report "succeeded but incomplete" (e.g. archive imported but 3 images are missing). Players see the success count plus the note instead of a failure.- Import results now include an "other mod data notes" section covering four cases: provider not registered / dependency mod missing / migration failed / unclassified exception. Previously these only went to the server log.
- Export side is no longer silent either: if a provider throws in
export(), players are told which data could not be carried.
Fixes
- "Export and remove" could delete maids whose .maid was never written. Files over the import quota were still sent and registered for deletion; the client silently dropped them on decode failure while the server removed the maid anyway. Over-quota files are now excluded, not sent, and not registered for deletion.
- Export-side quota check used the wrong unit: it compared compressed bytes against a decompressed 4 MiB quota. It now decompresses and reads with the same NbtAccounter as the import side.
/maidfile exportallwas always silent about missing add-on data.- Export-side notice was unreachable on the default path (only appeared with "export and remove").
MaidMigrationProvider's two-argimportDatawas still abstract, so providers implementing only the three-arg overload failed to compile. It now has a default implementation.
Compatibility
- .maid format stays v7, interoperable with 1.7.0 / 1.7.1.
- Network protocol version unchanged (4), no forced simultaneous upgrade.
- Existing MaidMigrationProvider method signatures unchanged; old providers need no changes.
- Language files: zh_tw / zh_hk / lzh / ja_jp now have exactly the same key set as Simplified Chinese, plus a build-time check to prevent regressions.
1.7.2(中文)
架构重构收尾 + 迁移接口扩展
新增
MaidMigrationException:provider 抛它时,异常 message 会原样显示给玩家;抛普通异常则只显示「原因见服务器日志」。MigrationReporter:provider 可报告「成功但有缺项」(例如归档导入了但少了 3 张图片),玩家看到的是成功计数 + 说明,而不是失败。- 导入结果新增「其他模组数据说明」一段,覆盖四种情况:provider 未注册 / 依赖模组未装 / 迁移失败 / 未分类异常。此前这些只写服务端日志。
- 导出侧同样不再静默:provider 在 export() 里抛异常时,导出结束会告诉玩家某段数据没带上。
修复
- 「导出并移除」可能删掉 .maid 从未写盘的女仆。超过导入配额的文件此前仍会发送并登记删除,客户端解码失败会静默丢弃,而服务端照样删女仆。现在超配额文件从本批剔除、不发送、也不登记删除。
- 导出侧配额校验口径错误:此前拿压缩后字节去比「解压后 4 MiB 配额」。现在解压后用同一个 NbtAccounter 读一遍,与导入侧完全同口径。
/maidfile exportall的附属数据缺失始终静默。- 导出侧提示在默认路径发不出(只在勾选「导出并移除」时才出现)。
MaidMigrationProvider的二参 importData 仍是抽象方法,只实现三参重载的接入方会编译失败。已改为带默认实现。
兼容性
- .maid 文件格式仍为 v7,与 1.7.0 / 1.7.1 互通。
- 网络协议版本不变(4),不强制双方同时升级。
- MaidMigrationProvider 既有方法签名未变,老 provider 无需改动。
- 语言文件 zh_tw / zh_hk / lzh / ja_jp 与简体键集完全一致,并新增构建期校验防止再漏。
This mod has no additional files

