Closed Inkerf closed 4 years ago
奇怪,汉化包里没有这个 mod 啊... 不过估计和汉化包还是有一定关系
破案了
OreDictionary.registerOre("block" + block.getLocalizedName().substring(0, block.getLocalizedName().length() - 6), block);
这里原作者做了一件很神奇的事:直接偷懒用从本地化后的文本中去掉最后 6 个字符,然后再在前面加上block
,一点都不考虑本地化问题
而尴尬的是用到这个方法的key
有两个,齐刷刷的撞key了...
https://github.com/CFPAOrg/Minecraft-Mod-Language-Package/blob/432c79060070d9b3dbe942f7d1694ef0e741bad2/project/assets/progressivecore/lang/zh_cn.lang#L217
https://github.com/CFPAOrg/Minecraft-Mod-Language-Package/blob/432c79060070d9b3dbe942f7d1694ef0e741bad2/project/assets/progressivecore/lang/zh_cn.lang#L220
可以看到,这两个(实际上所有重key的)翻译都不足 6 个字符,根本截取不了,就报错了...
这个不是我们可以解决的问题了,况且就算substring能截取出来,加入矿辞的时候中文大概率过不去→_→
已经在 cscotplay/basicnetherores#10 提交了问题
更新:原作者已经在版本1.12.2-1.0.5修复了此问题,可以尝试用该版本测试
1.12.2
的翻译; Minecraft Tekxit整合包 1.12.2 0.972版本,可以再Technic启动器上下到,整合包在中国好像名气不太大(?) 安装了材质包后无法启动 崩溃报告如下 (显示是什么下界矿物模组的冲突) 删除材质包后可正常启动 不知道这个mod包不包括在资源包的翻译范畴,但是打上之后确实崩溃了。抱着试一试的心态写下了问题报告,就是告知一下吧(^o^)/第一次写问题报告,不知道规矩,请多包涵。
---- Minecraft Crash Report ---- // You're mean.
Time: 2020-04-13 18:20:49 CST Description: Initializing game
net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Basic Nether Ores (bno) Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -4 at java.lang.String.substring(Unknown Source) at cscot.basicnetherores.registries.OreDictionaryRegistry.registerDictionaryBlocks(OreDictionaryRegistry.java:36) at cscot.basicnetherores.util.handler.RegistryHandler.initRegistries(RegistryHandler.java:114) at cscot.basicnetherores.BasicNetherOres.init(BasicNetherOres.java:42) 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.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:637) at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) at com.google.common.eventbus.EventBus.post(EventBus.java:217) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:219) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:197) 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 com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) at com.google.common.eventbus.EventBus.post(EventBus.java:217) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:136) at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:749) at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:336) at net.minecraft.client.Minecraft.init(Minecraft.java:535) 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_73, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 3042523480 bytes (2901 MB) / 5368709120 bytes (5120 MB) up to 5368709120 bytes (5120 MB) JVM Flags: 5 total; -Xms5120m -Xmx5120m -XX:+UseG1GC -XX:MaxGCPauseMillis=4 -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.2847 138 mods loaded, 138 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
Loaded coremods (and transformers): CTMCorePlugin (CTM-MC1.12.2-1.0.1.30.jar) team.chisel.ctm.client.asm.CTMTransformer ForgelinPlugin (Forgelin-1.8.4.jar)
GL info: ' Vendor: 'Intel' Version: '4.3.0 - Build 20.19.15.4835' Renderer: 'Intel(R) Iris(TM) Pro Graphics 5200' OpenModsLib class transformers: [llama_null_fix:FINISHED],[horse_base_null_fix:FINISHED],[pre_world_render_hook:FINISHED],[player_render_hook:FINISHED],[horse_null_fix:FINISHED] Pulsar/natura loaded Pulses: - NaturaCommons (Enabled/Forced)
NaturaWorld (Enabled/Not Forced) AE2 Version: stable rv6-stable-7 for Forge 14.23.5.2768 Pulsar/tconstruct loaded Pulses: - TinkerCommons (Enabled/Forced)
quarkIntegration (Enabled/Not Forced) Ender IO: No known problems detected.
Suspected Mods: Basic Nether Ores (bno) Launched Version: 1.12.2-forge1.12.2-14.23.5.2847 LWJGL: 2.9.4 OpenGL: Intel(R) Iris(TM) Pro Graphics 5200 GL version 4.3.0 - Build 20.19.15.4835, Intel 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-Package-2.2.85.zip Current Language: 简体中文 (中国) Profiler Position: N/A (disabled) CPU: 4x Intel(R) Core(TM) i5-4570R CPU @ 2.70GHz