欢迎光临散文网 会员登陆 & 注册

Minecraft的疑难杂症#3-Invalid id 4096 - maximum id range exceeded

2021-01-23 14:21 作者:北葵Starry  | 我要投稿

这个问题也是有很多人提过,因此就把它摆出来统一解答。

按照惯例,先把崩溃报告贴出来,感谢在私信中发来这份崩溃报告的玩家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

为节约空间删减了部分字节

在Description下面的一行字我们可以看到:

Invalid id 4096 - maximum id range exceeded

(无效的id 4096-超出了最大id范围)

Q:最大范围是啥?

A:注册的数量,简单来说每一个物品或者方块或者实体对应着一个ID,模组添加进去的物品或者方块或者实体越多,自然需要注册(或者说占用)的ID也就越多,所以这种情况通常发生在你装了很多的模组的时候,又或者是安装了像虚无世界这种大型模组后再安装一些模组的时候。


Q:为啥会有最大范围?

A:你想想小学知识(迫真),int整数占32位的时候最大值2147483647什么的,那这种也得有个最大上限吧,在说物品多了对你电脑也没好处,不是么?


Q:怎么扩大这个范围?

A:安装像JEID,NEID这类能够拓宽/解除范围限制的模组。不过请注意,这类模组往往会有一定的副作用(例如损坏存档),要注意查看详细信息,建议安装了这类模组后就不要随意将其删除。


Q:除了安装这种模组还有没有... ... A:有,删模组。


相关链接:

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)

Minecraft的疑难杂症#3-Invalid id 4096 - maximum id range exceeded的评论 (共 条)

分享到微博请遵守国家法律