Minecraft的疑難雜癥#3-Invalid id 4096 - maximum id range exceeded
這個問題也是有很多人提過,因此就把它擺出來統(tǒng)一解答。
按照慣例,先把崩潰報告貼出來,感謝在私信中發(fā)來這份崩潰報告的玩家w。
---- Minecraft Crash Report ----
// My bad.
Time: 2021-01-19 16:40:30 CST
Description: Initializing game
java.lang.RuntimeException: Invalid id 4096 - maximum id range exceeded.
? ? at net.minecraftforge.registries.ForgeRegistry.add(ForgeRegistry.java:295)
? ? at net.minecraftforge.registries.ForgeRegistry.add(ForgeRegistry.java:281)
? ? at net.minecraftforge.registries.ForgeRegistry.register(ForgeRegistry.java:113)
? ? at net.minecraftforge.registries.ForgeRegistry.registerAll(ForgeRegistry.java:154)
? ? at com.kashdeya.tinyprogressions.registry.InternalRegistry.onRegisterBlock(InternalRegistry.java:187)
? ? at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_893_InternalRegistry_onRegisterBlock_Register.invoke(.dynamic)
? ? at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
? ? at net.minecraftforge.fml.common.eventhandler.EventBus$1.invoke(EventBus.java:144)
? ? at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
? ? at net.minecraftforge.registries.GameData.fireRegistryEvents(GameData.java:845)
? ? at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:630)
? ? at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:252)
? ? at net.minecraft.client.Minecraft.init(Minecraft.java:467)
? ? at net.minecraft.client.Minecraft.run(Minecraft.java:3931)
? ? at net.minecraft.client.main.Main.main(SourceFile:123)
? ? at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
? ? at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
? ? 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:
---------------------------------------------------------------------------------------
-- System Details --
? Minecraft Version: 1.12.2
? Operating System: Windows 10 (amd64) version 10.0
? Java Version: 1.8.0_241, Oracle Corporation
? Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
? Memory: 8748163152 bytes (8342 MB) / 10485760000 bytes (10000 MB) up to 10485760000 bytes (10000 MB)
? JVM Flags: 11 total; -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=16M -XX:-UseAdaptiveSizePolicy -XX:-OmitStackTraceInFastThrow -Xmn128m -Xmx10000m -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump
? IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
? FML: MCP 9.42 Powered by Forge 14.23.5.2851 Optifine OptiFine_1.12.2_HD_U_F5 176 mods loaded, 176 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? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
? ? ? ?|:----- |:--------------------------------- |:------------------------ |:-------------------------------------------------- |:---------------------------------------- |
? ? ? ?| LCH? ?| minecraft? ? ? ? ? ? ? ? ? ? ? ? ?| 1.12.2? ? ? ? ? ? ? ? ? ?| minecraft.jar? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | None? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
? ? ? ?| LCH? ?| mcp? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| 9.42? ? ? ? ? ? ? ? ? ? ?| minecraft.jar? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | None? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
? ? ? ?| LCH? ?| FML? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| 8.0.99.99? ? ? ? ? ? ? ? | forge-1.12.2-14.23.5.2851.jar? ? ? ? ? ? ? ? ? ? ? | e3c3d50c7c986df74c645c0ac54639741c90a557 |
? ? ? ?| LCH? ?| forge? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| 14.23.5.2851? ? ? ? ? ? ?| forge-1.12.2-14.23.5.2851.jar? ? ? ? ? ? ? ? ? ? ? | e3c3d50c7c986df74c645c0ac54639741c90a557 |
? ? ? ?| LCH? ?| advancedrocketrycore? ? ? ? ? ? ? | 1? ? ? ? ? ? ? ? ? ? ? ? | minecraft.jar? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | None? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
? ? ? ?|都是LCH|? ? ? ? ... ...(略)
? ? ? ?| LCH? ?| teslacorelib_registries? ? ? ? ? ?| 1.0.16? ? ? ? ? ? ? ? ? ?| tesla-core-lib-1.12.2-1.0.16.jar? ? ? ? ? ? ? ? ? ?| None? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
? ? ? ?| LCH? ?| unidict? ? ? ? ? ? ? ? ? ? ? ? ? ?| 1.12.2-2.9.6? ? ? ? ? ? ?| UniDict-1.12.2-2.9.6.jar? ? ? ? ? ? ? ? ? ? ? ? ? ?| None? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
? Loaded coremods (and transformers): LoadingPlugin (Xaeros_Minimap_20.3.1_Forge_1.12.jar)
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? xaero.common.core.transformer.ChunkTransformer
? ? ? ? ? ? ? ? ? ? ? ? ... ...(略)
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? lumien.resourceloader.asm.ClassTransformer
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? SurgeLoadingPlugin (Surge-1.12.2-2.0.77.jar)
? GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 460.79' Renderer: 'GeForce GTX 1660/PCIe/SSE2'
? AE2 Version: stable rv6-stable-7 for Forge 14.23.5.2768
? Pulsar/tconstruct loaded Pulses: - TinkerCommons (Enabled/Forced)
? ? ? ? ? ? ? ? ? ? ? ? ... ...(略)
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?- theoneprobeIntegration (Enabled/Not Forced)
? List of loaded APIs: * actuallyadditionsapi (34) from ActuallyAdditions-1.12.2-r151-2.jar
? ? ? ? ? ? ? ? ? ? ? ?* ae2wtlib|API (1.0.34) from AE2WTLib-1.12.2-1.0.34.jar
? ? ? ? ? ? ? ? ? ? ? ? ... ...(略)
? ? ? ? ? ? ? ? ? ? ? ?* zerocore|API|multiblock|tier (1.10.2-0.0.2) from zerocore-1.12.2-0.1.2.8.jar
? ? ? ? ? ? ? ? ? ? ? ?* zerocore|API|multiblock|validation (1.10.2-0.0.2) from zerocore-1.12.2-0.1.2.8.jar
? RebornCore: Plugin Engine: 0
? ? ? ? ? ? ? RebornCore Version: 3.18.0
? ? ? ? ? ? ? Runtime Debofucsation 1
? ? ? ? ? ? ? RenderEngine: 1
? Ender IO: Found the following problem(s) with your installation (That does NOT mean that Ender IO caused the crash or was involved in it in any way. We add this information to help finding common problems, not as an invitation to post any crash you encounter to Ender IO's issue tracker. Always check the stack trace above to see which mod is most likely failing.):
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? * Optifine is installed. This is NOT supported.
? ? ? ? ? ? ? ? ? ? ? ? ? ? ?This may (look up the meaning of 'may' in the dictionary if you're not sure what it means) have caused the error. Try reproducing the crash WITHOUT this/these mod(s) before reporting it.
? ? ? ? ? ??
? ? ? ? ? ? !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
? ? ? ? ? ? !!!You are looking at the diagnostics information, not at the crash.? ? ? ?!!!
? ? ? ? ? ? !!!Scroll up until you see the line with '---- Minecraft Crash Report ----'!!!
? ? ? ? ? ? !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
? Suspected Mods: Tiny Progressions (tp)
? Launched Version: HMCL 3.3.172
? LWJGL: 2.9.4
? OpenGL: GeForce GTX 1660/PCIe/SSE2 GL version 4.6.0 NVIDIA 460.79, NVIDIA Corporation
? GL Caps: Using GL 1.3 multitexturing.
? ? ? ? ? ?Using GL 1.3 texture combiners.
? ? ? ? ? ?Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
? ? ? ? ? ?Shaders are available because OpenGL 2.1 is supported.
? ? ? ? ? ?VBOs are available because OpenGL 1.5 is supported.
? Using VBOs: Yes
? Is Modded: Definitely; Client brand changed to 'fml,forge'
? Type: Client (map_client.txt)
? Resource Packs: Minecraft-Mod-Language-Modpack.zip
? Current Language: 簡體中文 (中國)
? Profiler Position: N/A (disabled)
? CPU: 6x Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz
為節(jié)約空間刪減了部分字節(jié)
在Description下面的一行字我們可以看到:
Invalid id 4096 - maximum id range exceeded
(無效的id 4096-超出了最大id范圍)
Q:最大范圍是啥?
A:注冊的數(shù)量,簡單來說每一個物品或者方塊或者實體對應(yīng)著一個ID,模組添加進(jìn)去的物品或者方塊或者實體越多,自然需要注冊(或者說占用)的ID也就越多,所以這種情況通常發(fā)生在你裝了很多的模組的時候,又或者是安裝了像虛無世界這種大型模組后再安裝一些模組的時候。
Q:為啥會有最大范圍?
A:你想想小學(xué)知識(迫真),int整數(shù)占32位的時候最大值2147483647什么的,那這種也得有個最大上限吧,在說物品多了對你電腦也沒好處,不是么?
Q:怎么擴(kuò)大這個范圍?
A:安裝像JEID,NEID這類能夠拓寬/解除范圍限制的模組。不過請注意,這類模組往往會有一定的副作用(例如損壞存檔),要注意查看詳細(xì)信息,建議安裝了這類模組后就不要隨意將其刪除。
Q:除了安裝這種模組還有沒有... ... A:有,刪模組。
相關(guān)鏈接:
NEID官方下載地址:https://www.curseforge.com/minecraft/mc-mods/notenoughids
JEID官方下載地址(推薦):https://www.curseforge.com/minecraft/mc-mods/jeid
MC百科介紹:https://www.mcmod.cn/class/1443.html(NEID)/https://www.mcmod.cn/class/1389.html(JEID)