HMCL-dev / HMCL

A Minecraft Launcher which is multi-functional, cross-platform and popular
https://hmcl.huangyuhui.net
GNU General Public License v3.0
6.89k stars 676 forks source link

[Bug] 当系统用户名结尾带感叹号 (!) 时用 Authlib Injector 报错 #3288

Closed ZekerZhayard closed 2 weeks ago

ZekerZhayard commented 1 month ago

平台 | Platform

/

问题描述 | Problem Description

当系统用户名结尾带感叹号 (!) 时用 Authlib Injector 报错 https://github.com/yushijinhun/authlib-injector/blob/cf9248bdbf8459887d2862fde6c585f0341007b1/src/main/java/moe/yushi/authlibinjector/transform/support/YggdrasilKeyTransformUnit.java#L57

因为修改系统用户名比较麻烦,所以我觉得 HMCL 需要一些检测手段让部分文件不放在 %APPDATA% 里而是别的地方

启动器崩溃报告 / 启动器日志文件 | Launcher Crash Report / Launcher Log File

minecraft.log https://paste.ubuntu.com/p/WywMB3cNcG/ hmcl.log https://paste.ubuntu.com/p/mFty95khxf/

$146DFX~X C655AL0GFC{76

allMagicNB commented 1 month ago

每个 Bug 背后都有真实案例

zkitefly commented 3 weeks ago

有什么好地方可以放 Authlib Injector 的吗

zkitefly commented 2 weeks ago

可使用 JVM 参数 -Dhmcl.authlibinjector.location=<path> 来解决问题