- "background":
 
-                 { 
 
-                 "image" : "custommainmenu:textures/gui/3.png", 
 
-                 "mode" : "fill"
 
- }
背景完整的不是这样的妈?
复制代码
- "other":
 
-     {
 
 
-         
 
-         "background":
 
-         {
 
-            "image" : "custommainmenu:textures/gui/beijing.png",
 
-            "mode" : "fill"
 
-         }
 
- }
二哈大魔王 发表于 2020-2-26 15:54
背景完整的不是这样的妈?
我知道,我是在others项下写的background啊
MashKJo 发表于 2020-2-26 16:17
我知道,我是在others项下写的background啊
如果你改完删掉config里的配置 把改好的 丢进mod里面 让他生成 可以吗?
二哈大魔王 发表于 2020-2-26 16:27
如果你改完删掉config里的配置 把改好的 丢进mod里面 让他生成 可以吗?
删掉CMM的配置文件之后再让他生成就可以进游戏啊,但是一添加background项就崩端
MashKJo 发表于 2020-2-26 16:34
删掉CMM的配置文件之后再让他生成就可以进游戏啊,但是一添加background项就崩端 ...
我的意思是 他在/config/CustomMainMenu 这里不是有配置文件生成吗?把这个删掉,然后你改好的配置文件不是可以丢到mod里面吗?你懂我意思没。。
二哈大魔王 发表于 2020-2-26 17:00
我的意思是 他在/config/CustomMainMenu 这里不是有配置文件生成吗?把这个删掉,然后你改好的配置文件不 ...
懂了,但是把改好的放进去,又崩溃了。。。。。

 本帖最后由 二哈大魔王 于 2020-2-26 17:11 编辑 
| 
 | 
这是我配置文件 希望对你有帮助吧
二哈大魔王 发表于 2020-2-26 17:10
这是我配置文件 希望对你有帮助吧
用了这个还是不行啊 = =QWQ
老是崩端,快疯了= =
| ---- Minecraft Crash Report ---- // My bad. Time: 2020-02-26 17:18:30 GMT+08:00 Description: Initializing game net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Custom Main Menu (custommainmenu) Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Not a JSON Object: "images" at lumien.custommainmenu.CustomMainMenu.preInit(CustomMainMenu.java:71) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:637) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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.preinitializeMods(Loader.java:629) 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(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) Caused by: java.lang.IllegalStateException: Not a JSON Object: "images" at com.google.gson.JsonElement.getAsJsonObject(JsonElement.java:90) at lumien.custommainmenu.configuration.ConfigurationLoader.load(ConfigurationLoader.java:93) at lumien.custommainmenu.CustomMainMenu.preInit(CustomMainMenu.java:66) ... 40 more 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_181, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 165825456 bytes (158 MB) / 486539264 bytes (464 MB) up to 8438939648 bytes (8048 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 -Xmx8042m -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 18 mods loaded, 18 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.2847.jar | None | | LCH | forge | 14.23.5.2847 | forge-1.12.2-14.23.5.2847.jar | None | | LCH | foamfixcore | 7.7.4 | minecraft.jar | None | | LCH | voxelmap | 1.9.11 | forgemod_VoxelMap-1.9.11_for_1.12.2.jar | None | | LCH | jei | 4.14.4.264 | [JEI物品管理器]Just Enough Items-1.12.2-4.14.4.264.jar | None | | LCH | jeresources | 0.8.5.27 | [JEI扩展——资源显示]Just Enough Resources-1.12.2-0.8.5.27.jar | None | | LCH | inventorytweaks | 1.63+release.109.220f184 | [R键整理]Inventory Tweaks-1.12.2-1.63.jar | 55d2cd4f5f0961410bf7b91ef6c6bf00a766dcbe | | LCH | vanillafix | 1.0.10-SNAPSHOT | [原版修复]Vanilla Fix-1.12.21.0.10-99.jar | None | | LCH | foamfix | 0.10.10-1.12.2 | [泡沫修复]FoamFix-1.12.2-0.10.10.jar | None | | LCH | surge | 2.0.77 | [潮涌]Surge-1.12.2-2.0.77.jar | d476d1b22b218a10d845928d1665d45fce301b27 | | LCH | i18nmod | 1.12.2-1.0.7 | [自动汉化更新]I18nUpdateMod-1.12.2-1.0.7.jar | None | | LCE | custommainmenu | 2.0.9.1 | [自定义主菜单]Custom Main Menu-1.12.2-2.0.9.1.jar | None | | LC | fpsreducer | mc1.12.2-1.10.3 | [闲时限帧]FPS Reducer-1.12.2-1.10.3.jar | None | | LC | waila | 1.8.26 | [高亮信息显示]Hwyla-1.12.2-1.8.26-B41.jar | None | | LC | wailaharvestability | 1.1.12 | [高亮显示扩展——方块挖掘等级]Waila Harvestability-1.12.2-1.1.12.jar | None | | LC | resourceloader | 1.5.3 | Resource Loader-1.12.2-1.5.3.jar | d72e0dd57935b3e9476212aea0c0df352dd76291 | Loaded coremods (and transformers): SurgeLoadingPlugin ([潮涌]Surge-1.12.2-2.0.77.jar) LoadingPlugin (Resource Loader-1.12.2-1.5.3.jar) lumien.resourceloader.asm.ClassTransformer VanillaFixLoadingPlugin ([原版修复]Vanilla Fix-1.12.21.0.10-99.jar) Inventory Tweaks Coremod ([R键整理]Inventory Tweaks-1.12.2-1.63.jar) invtweaks.forge.asm.ContainerTransformer Do not report to Forge! (If you haven't disabled the FoamFix coremod, try disabling it in the config! Note that this bit of text will still appear.) ([泡沫修复]FoamFix-1.12.2-0.10.10.jar) pl.asie.foamfix.coremod.FoamFixTransformer GL info: ' Vendor: 'Intel' Version: '4.5.0 - Build 23.20.16.4849' Renderer: 'Intel(R) UHD Graphics 620' Suspected Mods: Custom Main Menu (custommainmenu) Launched Version: HMCL 3.2.150 LWJGL: 2.9.4 OpenGL: Intel(R) UHD Graphics 620 GL version 4.5.0 - Build 23.20.16.4849, 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-Modpack.zip Current Language: 简体中文 (中国) Profiler Position: N/A (disabled) CPU: 8x Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz | 
MashKJo 发表于 2020-2-26 17:19
用了这个还是不行啊 = =QWQ
老是崩端,快疯了= =
你图片有没有什么问题?换个图片试试?
二哈大魔王 发表于 2020-2-26 17:51
你图片有没有什么问题?换个图片试试?
格式就是.png的啊,尺寸难道有要求吗?
二哈大魔王 发表于 2020-2-26 17:51
你图片有没有什么问题?换个图片试试?
解决了,很玄学 = =
图片没有问题,是代码出了问题= =你的代码中custommainmenu出了问题,应该是mainmenu;然后我的代码第二个大括号后没有逗号。另外还要Resource Loader才行。
给你最佳吧。