Comments (12)
如果你需要诊断,可以查看 latest.log,会输出游戏 ID。
我个人认为这个功能没啥必要 ———— 不过本着 HMCL 不是一人做主的原则,我不会关闭这个 Issue
from hmcl.
但是我们俩测试的时候并不是Invalid characters in the username,而是Error sending packet serverbound/minecraft:hello io.netty.handler.codec.EncoderException: Failed to encode packet 'serverbound/minecraft:hello'。不知道为什么提示不是第一个 报错来源:汉医堂某位26字符的ID,并且带了空格 我在远程测试的以后1.20.6只会报错第二个,是在界面提示的,而不是第一个。我把版本换成1.20.1就提示第一个没提示第二个了。 以及,我和issue提出者测了三种情况 ID超出26格不带空格:第二种 ID未超过26格不带空格:正常 ID未超过26格带空格:直接提示连接终止,不会在客户端页面提示任何信息 ID超过26格带空格:第二种 我们技术有限不清楚为什么会这样,烧师傅能不能指点一下(顺带加一个启动检测ID不合法提示,像友商那样)
在你之前给出的日志信息中,出现“Error sending packet serverbound/minecraft:hello”是因为异常
Caused by: io.netty.handler.codec.EncoderException: String too big (was 26 characters, max 16)
所以还是字符串太长的问题。
from hmcl.
当事人日志(安装forge后)https://mclo.gs/suPGkK2
当事人日志(未安装forge时)https://mclo.gs/jV9Tqle
from hmcl.
加入服务器时会提示 Invalid characters in the username. 这一证据即可解决你说的“崩溃”
from hmcl.
可以在添加离线用户时就进行检测,如果不合法就弹窗提示
from hmcl.
可以在添加离线用户时就进行检测,如果不合法就弹窗提示
Some skin sites (such as LittleSkin) also allow users to create player names that are illegal for the original game.
from hmcl.
但是我们俩测试的时候并不是Invalid characters in the username,而是Error sending packet serverbound/minecraft:hello
io.netty.handler.codec.EncoderException: Failed to encode packet 'serverbound/minecraft:hello'。不知道为什么提示不是第一个
报错来源:汉医堂某位26字符的ID,并且带了空格
我在远程测试的以后1.20.6只会报错第二个,是在界面提示的,而不是第一个。我把版本换成1.20.1就提示第一个没提示第二个了。
以及,我和issue提出者测了三种情况
ID超出26格不带空格:第二种
ID未超过26格不带空格:正常
ID未超过26格带空格:直接提示连接终止,不会在客户端页面提示任何信息
ID超过26格带空格:第二种
我们技术有限不清楚为什么会这样,烧师傅能不能指点一下(顺带加一个启动检测ID不合法提示,像友商那样)
from hmcl.
但是我们俩测试的时候并不是Invalid characters in the username,而是Error sending packet serverbound/minecraft:hello io.netty.handler.codec.EncoderException: Failed to encode packet 'serverbound/minecraft:hello'。不知道为什么提示不是第一个 报错来源:汉医堂某位26字符的ID,并且带了空格 我在远程测试的以后1.20.6只会报错第二个,是在界面提示的,而不是第一个。我把版本换成1.20.1就提示第一个没提示第二个了。 以及,我和issue提出者测了三种情况 ID超出26格不带空格:第二种 ID未超过26格不带空格:正常 ID未超过26格带空格:直接提示连接终止,不会在客户端页面提示任何信息 ID超过26格带空格:第二种 我们技术有限不清楚为什么会这样,烧师傅能不能指点一下(顺带加一个启动检测ID不合法提示,像友商那样)
请提供完整的 debug.log。
此外,如果你需要诊断,可以查看 latest.log,会输出游戏 ID
from hmcl.
但是我们俩测试的时候并不是用户名中的无效字符,而是错误发送数据包 serverbound/minecraft:hello io.netty.handler.codec.EncoderException: Failed to encode packet 'serverbound/minecraft:hello'。不知道为什么提示不是第一个 报错来源:汉医堂某位26字符的ID,并且带了空格 我在远程测试的以后1.20.6只会报错 第二天,是在界面提示的,而不是第一个。我把版本换成1.20.1就提示第一个没提示第二天了。 以及,我和问题提出者测了三种情况 ID超出26格不带空格:第二种 ID未超过26格不带空格:正常 ID未超过26格带空格:直接提示连接终止,不会在客户端页面提示任何信息 ID超过26格带空格:第二种 我们技术有限仲裁为什么会这样,烧师傅能不能指点一下(顺带加一个启动检测ID不合法提示,像友商那样)
请提供完整的 debug.log。
此外,如果你需要诊断,可以查看latest.log,会输出游戏ID
debug.log如何直接弄出来 任务管理器手动杀进程出来的可以吗
from hmcl.
上面的日志信息中,出现“Error sending packet serverbound/minecraft:hello”是因为异常 Caused by: io.netty.handler.codec.EncoderException: String too big (was 26 characters, max 16)
所以还是字符串太长的问题。
当时不知道这个字符超长是什么原因导致的,降级才发现是用户名不合规,回头看HMCL就发现他的ID很长并且带空格了,于是就有了1.20.1报错无效用户名,1.20.6报字符过长(说实话我第一次没搞懂这个String too big是指的什么)
from hmcl.
我在想,不应该在启动的位置写。
应该在添加离线登录的地方写。
加个翻译键就好,还不麻烦。
from hmcl.
应该在添加离线登录的地方写。
嗯。已经有了
from hmcl.
Related Issues (20)
- [Bug] 无法启动hmcl 3.5.8 HOT 2
- [Feature] 非法用户名警告增加5秒后关闭 HOT 5
- [新功能建议] 更新 mod 时可将旧版 mod 进行备份 HOT 7
- [Bug] HMCL在arch中的字体错误 HOT 5
- [Feature] 游戏-下载-游戏内容-模组 搜索筛选可以以Mod Loader作为条件
- [Bug] HMCL获取到的libEffekseerNativeForJava.so 缺乏符号 HOT 8
- [Feature] 把游戏崩溃后的“请不要将本界面截图给他人”换成红色字体 HOT 4
- [Bug] HOT 1
- [Bug] Windows Defender auto delete binary file [WindowsDefender会对3.5.8稳定版报告木马并自动删除] HOT 2
- [Bug] 无法删除世界文件
- 应尝试适配macOS退出信号 HOT 5
- [Bug] 停止启动游戏时崩溃 HOT 1
- 自动选择Java改善-忽略错误Java HOT 1
- [Bug] 将fabric模组更新为版本更高的neoforge模组,即使已有高版本fabric版 HOT 1
- [Feature] 为Raspberry Pi等ARM64设备提供支持 HOT 3
- [Bug] 在KDE中无法启动Minecraft,而在Hyprland(Wayland)中可以正常启动Minecraft HOT 8
- [Feature] 自定义本地模组列表中的模组备注
- 关于HMCL报毒的问题讨论[Bug] HOT 1
- [Bug] HMCL无法正常地检测模组属于什么 HOT 1
- [Bug] liteloader显示与forge不兼容
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hmcl.