Minecraft的疑難雜癥#2022/02/04-PCL2導(dǎo)致Name and ID cannot both be blank
最近好多人問(wèn)啊,私信里三分之二都在問(wèn)這個(gè)。

正文開(kāi)始:

// I bet Cylons wouldn't have this problem.
Time: 2/20/22 11:03 AM
Description: Updating screen events
java.lang.IllegalArgumentException: Name and ID cannot both be blank
at com.mojang.authlib.GameProfile.<init>(GameProfile.java:26)
at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:186)
at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:173)
at net.minecraft.client.Minecraft.func_71371_a(Minecraft.java:2421)
[省略...]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Client thread
Stacktrace:
at com.mojang.authlib.GameProfile.<init>(GameProfile.java:26)
at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:186)
at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:173)
at net.minecraft.client.Minecraft.func_71371_a(Minecraft.java:2421)
at net.minecraft.client.gui.GuiCreateWorld.func_146284_a(GuiCreateWorld.java:224)
[省略...]
-- Affected screen --
Details:
Screen name: com.bloodnbonesgaming.loadingscreens.client.gui.override.GuiWorkingOverride
Stacktrace:
at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1759)
[省略...]
-- System Details --
Details:
Minecraft Version: 1.12.2
[省略...]
FML: MCP 9.42 Powered by Forge 14.23.5.2860 169 mods loaded, 169 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
| State? | ID? ? ? ? ? ? ? ? ? ? ? ? ? | Version? ? ? ? ? ? ? | Source? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| Signature? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
|:------ |:--------------------------- |:-------------------- |:------------------------------------------------------------ |:---------------------------------------- |
| LCHIJA | minecraft? ? ? ? ? ? ? ? ? ?| 1.12.2? ? ? ? ? ? ? ?| minecraft.jar? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | None? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
| LCHIJA | mcp? ? ? ? ? ? ? ? ? ? ? ? ?| 9.42? ? ? ? ? ? ? ? ?| minecraft.jar? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | None? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
[省略...]
| LCHIJA | librarianliblate? ? ? ? ? ? | 4.22? ? ? ? ? ? ? ? ?| librarianlib-1.12.2-4.22.jar? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| None? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
Loaded coremods (and transformers):?
[省略...]
- InspirationsShared (Enabled/Forced)
[省略...]
RLTweaker Error Report:?
Launched Version: RLCraft
LWJGL: 2.9.4
OpenGL: GeForce GTX 1650/PCIe/SSE2 GL version 4.6.0 NVIDIA 457.49, NVIDIA Corporation
GL Caps: Using GL 1.3 multitexturing.
[省略...]
CPU: 12x Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
為節(jié)約空間修改了部分字節(jié)
? ? ? ? ? ? ??
一開(kāi)始我上網(wǎng)查,結(jié)果嘛,貌似是跟玩家在服務(wù)器之類(lèi)的地方的驗(yàn)證出錯(cuò)會(huì)出現(xiàn),慢慢地就想到了是UUID的問(wèn)題。但貌似還不能解決問(wèn)題,網(wǎng)上也有人說(shuō)得用其它的啟動(dòng)器啟動(dòng)才可,這才解決問(wèn)題。
然后小粉絲問(wèn)能不能解決下拔刀劍認(rèn)不了主的問(wèn)題,我試著去把PCL2生成的UUID插到HMCL啟動(dòng)器,嗚呼,同樣的問(wèn)題出現(xiàn)了。這下我知道UUID是真的問(wèn)題所在。
在萬(wàn)能的百科群群友的幫助下,找到了原因。PCL2傳入mojang賬號(hào)API的uuid不規(guī)范,以前可以通過(guò)檢驗(yàn),但現(xiàn)在mojang更新了API,通過(guò)不了了。
解決方案:(解決方案無(wú)先后排序)
1.更換除PCL2外的其他啟動(dòng)器。
2.PCL2作者已經(jīng)更新了新版本,更新PCL2啟動(dòng)器到最新版本。
這里鏈一個(gè)PCL2作者的官宣:

要注意的是,PCL開(kāi)發(fā)者說(shuō)更新新版本會(huì)讓背包清除,本人沒(méi)有嘗試過(guò),但據(jù)我的小小經(jīng)驗(yàn),在單人存檔內(nèi)背包*應(yīng)該不會(huì)*被清除,但在服務(wù)器中有*極大可能性*會(huì)被清除。
同時(shí)由于使用了新的UUID,像拔刀劍、寶可夢(mèng)模組中有UUID判斷認(rèn)主機(jī)制的模組會(huì)比較麻煩,可能需要像NBTexplorer這類(lèi)軟件來(lái)修改回現(xiàn)有的UUID。(拔刀劍貌似放一次在地上再撿起來(lái)就好了?)