Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] 为特定游戏版本添加自定义库(Add Custom Library to a Certain Game Instance) #3507

Open
Viola-Siemens opened this issue Dec 28, 2024 · 1 comment

Comments

@Viola-Siemens
Copy link

描述 | Description

如今想要给游戏版本添加 jar 库(-cp 的参数),只能通过手动修改版本 json 文件实现。
Currently, if you want to add a jar library to the game version (the parameter of -cp), you can only do it by manually modifying the version json file.

一些模组可能因为错误的打包,导致存在缺库的问题,无法通过重装游戏版本解决。这一点在 HMCL 崩溃报错交流群里时常遇到。
Some mods may have library problems due to incorrect packaging, which cannot be solved by reinstalling the game instance. This sometimes occurs in the official HMCL crash/error QQ group.

因而希望在高级设置中添加一个模块,能够让玩家可以在游戏版本的启动参数中将 jar 文件加入 -cp 的参数。
Therefore, I hope to add a module that allows players to add some jars to -cp parameter of the launch parameters of the game instance in the advanced settings screen.

原因 | Reason

一些模组可能因为错误的打包,导致存在缺库的问题,无法通过重装游戏版本解决。这一点在 HMCL 崩溃报错交流群里时常遇到。
Some mods may have library problems due to incorrect packaging, which cannot be solved by reinstalling the game instance. This sometimes occurs in the official HMCL crash/error QQ group.

如若感觉没有必要,也可以随时关掉这个 Issue。
You can close this issue whenever you think it unnecessary.

@renshengongji
Copy link

renshengongji commented Dec 29, 2024

有一个比较麻烦的方法,hmcl的高级选项中有个包装命令,你可以自己写个程序写里面去,在里面读取-cp的位置,然后加上你想要的lib,最后通过程序启动游戏(java推荐使用ProcessBuilder),至少我现在是这样启动游戏的,最好写成配置文件形式的,这样通用一点方便更改
PixPin_2024-12-29_16-40-10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants