HMCL-dev / HMCL-dev/HMCL

[Feature] 添加模组元信息编辑与模组依赖管理功能

Open
#4,657 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
10.1k
Forks
934
Avg merge
1d 5h
Merged PRs (30d)
82

Description

概述 | Summary

添加模组元信息编辑与模组依赖管理功能

原因 | Reason
  1. 当前HCML对模组元信息的识别仍不准确,个人认为与其继续优化识别算法倒不如添加编辑模组元信息的功能,让玩家能够自己添加已安装模组的元信息。
  2. 目前几乎我已知所有的MC启动器都没有管理模组依赖的功能,个人认为此功能能大幅提升玩家在模组管理这一方面的体验。
详情 | Description
元信息编辑

元信息在这里指:模组英文缩略名(如:JEI)、模组中文名(如:JEI物品管理器)、模组英文全称(如:Just Enough Items)、模组版本、模组功能简述、模组相关链接(如:MC百科页面)等信息。
允许玩家使用元信息自定义在模组管理页面中显示的名称。

模组依赖管理

可以指定已安装模组的前置模组与依赖此模组的模组。
在禁用某模组时自动禁用依赖该模组的模组,且支持嵌套,即C的前置为B,B的前置为A,在禁用A时B和C也会被禁用,删除模组时同样如此。
可以根据已设定的模组依赖关系生成树状图,以便更直观的展示各模组之间的依赖关系,在树状图中同样可以对模组进行禁用、删除、修改依赖关系等操作。
在树状图中修改依赖关系的操作我的个人建议是通过拖拽实现,即在A上右键并拖拽至B后松开,就是为A和B添加依赖关系:A为B的前置,图上AB之间添加有向连线箭头指向B

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing mod management interface and how HMCL currently identifies installed mod metadata. Then trace how mod enable, disable, and deletion actions are handled before deciding where dependency editing and graph interactions would fit. Done means the requested metadata editing, dependency propagation, and dependency graph behavior are defined and implemented consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.