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

开启版本隔离时,导出的启动脚本未使用版本隔离后的启动路径 #5417

Open
1 task done
Harveykang opened this issue Jan 14, 2025 · 0 comments
Open
1 task done
Labels
· Bug 新提交 需要社区初步确认其有效的新提交

Comments

@Harveykang
Copy link

Harveykang commented Jan 14, 2025

检查项

描述

开启版本隔离时,使用导出的启动脚本启动游戏,logs、以及部分模组的配置文件被放在“.minecraft”下
脚本中未使用版本隔离后的启动路径

image

比如“modernfix” 模组需要在游戏启动早期读取它的mixin设置,在代码中使用了类似new File("./config/xxx")的写法

fabric相比forge有更多模组使用相对路径定位配置文件,现象相同

用启动器直接启动不会有上述问题

重现步骤

  1. 启用版本隔离
  2. 添加某些模组,比如“modernfix”
  3. 导出启动脚本并用脚本启动游戏
  4. 可在“.minecraft”下找到“logs”目录
    如果加了“modernfix”,可在“.minecraft/config/”下找到“modernfix-mixins.properties”

日志与附件

@Harveykang Harveykang added · Bug 新提交 需要社区初步确认其有效的新提交 labels Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
· Bug 新提交 需要社区初步确认其有效的新提交
Projects
None yet
Development

No branches or pull requests

1 participant