Repository navigation
Conversation
|
这里不需要说“查看其他版本的游戏日志”啊,你直接说这里是“游戏版本”不就行了吗? |
感觉 “游戏版本” 也不太好,应该是 “模组版本” 吧? |
不是模组啊,资源包也可以检查更新的,光影包也有计划做 |
|
你确定这样不会oom吗,我记得 tnt 之前专门把这一堆候选给删掉了,因为会爆内存 以及你为什么要把 remoteVersions 和 remoteVersions.get(0) 都存在 AddonUpdate 里面呢?只存列表不就行了吗? |
当时看 glavo 似乎说错了,写的太快没想太多 🤣 |
“截至最新版本的所有变化” 如何?我暂时没想到其他的 |
直接“其他版本”行不行?或者“选择版本”? 要不顺便做一个让用户自己选择更新到什么版本得了,把“更新日志”那一列改成“其他版本”? 这样 targetVersion 字段也就可以省略了 |
这样就放心了。之前可能是modrinth更新会把更新日志直接拉下来然后就爆炸了,现在延后加载就好了 另外现在这么实现是不是只能看到 mr/cf 一方的版本啊?是否要把两个渠道的所有版本都显示出来,按发布时间排序? |
我觉得可以 😃 |
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
When the user selects another target version, the listener updates targetVersionObject and reloads the changelog, but this URL loader is invoked only once during dialog construction. Consequently, the enabled mods.url hyperlink continues opening the initially selected version's page while the table and eventual update point to the newly selected version.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9fcb77e67e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cc50e63e7a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| RemoteAddon.Version currentVersion = object.targetVersionObject.get(); | ||
| if (currentVersion != null && !currentVersion.versionId().equals(version.versionId())) { | ||
| // Version changed while loading, discard this result. Why's there no 'Task.interrupt()' | ||
| return; |
There was a problem hiding this comment.
Supersede requests instead of comparing only version IDs
When the user selects A → B → A before the first A changelog request completes, both A callbacks pass this version-ID check, so the older request can finish last and overwrite the newer request’s loading/error state—for example, a late failure can hide a successfully rendered changelog behind the retry state. Fresh evidence in this revision is that the stale-result guard identifies only the selected version, not the individual request; track a request generation/task identity so only the most recently started request may update the pane.
Useful? React with 👍 / 👎.
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@Glavo 这个有什么问题吗?点击 “查看” 可以选择模组的某个版本。 |
Co-authored-by: deepseek-v4.1-flash
apparently you can't use `Bindings.createStringBinding` because it will read value eagerly, causing subtitle to always be one step short
2385b73 to
99ea62b
Compare
|
按照改版之后的代码库重新写了一次,再做了一次测试: 2026-10-17.182258.mp4以及,感觉这里条目的边距似乎比其他地方大不少 |
在超大型整合包里真的会炸,请优化。 未来我们会进一步降低 HMCL 的 -Xmx 设置以降低占用 |
看来只能保留一个版本名到更新日志的 map 了啊,没办法实现自选版本来更新了 不过我觉得有点奇怪,毕竟他声称 59 个 mod 只占用 1MB,那得多少个 mod 才能爆内存啊 |
有无证明或者实例,我是想不到怎么个炸法。 另外我让ai做了个极端的模拟计算,看不出多大的oom风险: 模拟计算,点击展开
不妨假设有1000个模组,每个有100个更加新的版本(说实话我觉得平均下来有10个都顶天了,但是反正是极端),模组自身的数据按照下表设定:
为了方便,按照只有一种类型计算。 在1000模组*100更新的情况下,内存占用大约是126MB: 如果正常一点,1000模组*10更新,那就只有区区14MB: |
Upstream HMCL HMCL-dev#6194 HMCL-dev#6860 HMCL-dev#6947 HMCL-dev#6747 HMCL-dev#6806 HMCL-dev#6407 HMCL-dev#6869 HMCL-dev#6825. Adapt JFXPopup and mod update logic to preserve existing fork features; retain crash diagnostics. Java CI and Check Codes passed; JAR/EXE/SH/DEB and nonempty credentials verified.
# Conflicts: # HMCL/src/main/java/org/jackhuang/hmcl/ui/instances/AddonUpdatesPage.java
|
有无更新?“超大型整合包里真的会炸”这个说法的例子,或者PR什么时候有合并的可能?8月挂到11月了已经 |
# Conflicts: # HMCL/src/main/java/org/jackhuang/hmcl/ui/instances/AddonUpdatesPage.java # HMCL/src/main/resources/assets/lang/I18N_zh_Hant.properties



以下演示稍显过时了,现在在选择框里选择版本可以改变实际会更新到的目标版本,文本也有变化。
得益于检查更新时已经收集过所有比当前更加新的模组版本了,最复杂的部分可以跳过,只考虑实现一个界面。
2026-08-26.223311.mp4
语言文件和第一个提交由AI生成。
fixes #6686