Giter Club home page Giter Club logo

Comments (12)

burningtnt avatar burningtnt commented on July 21, 2024 2

如果你需要诊断,可以查看 latest.log,会输出游戏 ID。
我个人认为这个功能没啥必要 ———— 不过本着 HMCL 不是一人做主的原则,我不会关闭这个 Issue

from hmcl.

YELANDAOKONG avatar YELANDAOKONG commented on July 21, 2024 1

但是我们俩测试的时候并不是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.

HomoobyDX avatar HomoobyDX commented on July 21, 2024

当事人日志(安装forge后)https://mclo.gs/suPGkK2
当事人日志(未安装forge时)https://mclo.gs/jV9Tqle

from hmcl.

burningtnt avatar burningtnt commented on July 21, 2024

加入服务器时会提示 Invalid characters in the username. 这一证据即可解决你说的“崩溃”

from hmcl.

YELANDAOKONG avatar YELANDAOKONG commented on July 21, 2024

可以在添加离线用户时就进行检测,如果不合法就弹窗提示

from hmcl.

3gf8jv4dv avatar 3gf8jv4dv commented on July 21, 2024

可以在添加离线用户时就进行检测,如果不合法就弹窗提示

Some skin sites (such as LittleSkin) also allow users to create player names that are illegal for the original game.

from hmcl.

HomoobyDX avatar HomoobyDX commented on July 21, 2024

但是我们俩测试的时候并不是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.

burningtnt avatar burningtnt commented on July 21, 2024

但是我们俩测试的时候并不是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.

CTGWHWL avatar CTGWHWL commented on July 21, 2024

但是我们俩测试的时候并不是用户名中的无效字符,而是错误发送数据包 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.

HomoobyDX avatar HomoobyDX commented on July 21, 2024

上面的日志信息中,出现“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.

wifi-left avatar wifi-left commented on July 21, 2024

我在想,不应该在启动的位置写。
应该在添加离线登录的地方写。
加个翻译键就好,还不麻烦。

from hmcl.

burningtnt avatar burningtnt commented on July 21, 2024

应该在添加离线登录的地方写。

嗯。已经有了

from hmcl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.