Repository navigation
Conversation
合并 Hansimov/ra2-explorer 的 47 个提交(v0.14.0 ~ v0.16.0)到 master。 冲突以上游实现为准,本地改动适配其上: - api.ts:采用上游 CountryFacet,并保留本地新增的 music 媒体类型 - App.tsx:改用上游按单位记忆的玩家色选择(已涵盖逐单位重置语义); 声音文本列表恢复上游的紧凑标签/整行分块布局与 canUseCompactTextTag - styles.css:声音文本列表采用上游样式 - semantic.py:缓存标识取 v24 以同时失效两侧缓存;localized 判定并入本地的 CJK 兜底,同时保留上游的 localized_text_origin / translated_text 追踪
音频:详情页新增进度条,可拖动跳转并显示已播/总时长。 视频:详情页与卡片在转码前先显示封面帧(FFmpeg 抽一帧,走派生缓存), 播放按钮改为浮在画面上的圆形图标。 语音:补充数据的译文回填原先只覆盖已有 transcript 条目的 file id, 导致游戏自带原文但无条目的语音显示不出译文;现在回填覆盖全部语音, 实测缺译文的语音由 191 条降到 49 条。 图像:单位调色板把索引 204-239 填成洋红占位,地形与界面 SHP 用到 这些索引时会被渲染成大片洋红;现在无明确调色板用途时按画面命中的 占位索引在候选内择优,抽样 250 个 SHP 中受影响的从 74 个降到 2 个。 其他:收紧侧栏资料库标题的上间距。
封面不再固定取第 1 秒:依次尝试 1/2/4/6/8 秒,抽出的帧若近乎全黑 (亮度不足 16 的像素超过 98%)就继续加深;全部偏暗或视频比所有 定位点都短时,回退到不定位的第一帧,保证超短视频也有封面。 封面缓存标识升级为 poster-v2,旧的纯黑封面会自动重新生成。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TLDR: 更好的兼容了 macOS 和 Steam 版 Ra2,并正确的解析和展示更多数量和种类的资源。顺便把 UI 一致性提升了。
这次带来了什么
以前在 macOS 打开本地游戏目录(Steam 渠道《红色警戒 2 + 尤里的复仇》),大多数单位看不到模型、很多语音显示「未解析」,声音分类的数字也对不上。现在这些内容基本都能正常浏览了,并且多出几类可以直接翻阅的资源。
Feature
Fix
Before / After
验证
实测:所有资源类型抽样打开均正常显示或播放,格式解析、搜索与排序无异常;自动化测试与代码检查通过。
26.09.04 update:
TL;DR: 这次更新修了几个翻资料库时最容易碰到的体验问题:
条语音明明已经有整理好的中文翻译,界面上“译文”一栏却是空的,现在全部正常。
张受影响,修复后只剩 2 张还有一点点残留。
以前预览区黑乎乎的只有一个按钮,现在会先显示第一帧当封面,按钮也简化成浮在画面上的圆形播放键。