lumien231 / Custom-Main-Menu

A mod that allows you to modify the minecraft main menu
MIT License
67 stars 37 forks source link

minecraft crashes on loading #383

Open LostGameDev opened 4 years ago

LostGameDev commented 4 years ago

here is my crash report ---- Minecraft Crash Report ---- // Don't be sad, have a hug! <3

Time: 12/11/19 4:57 PM Description: Initializing game

java.lang.RuntimeException: com.google.gson.JsonSyntaxException: java.io.EOFException: End of input at line 110 column 2 at lumien.custommainmenu.CustomMainMenu.preInit(CustomMainMenu.java:72) 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:497) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) 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:497) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) 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:497) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) at net.minecraft.client.main.Main.main(SourceFile:148) 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:497) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) Caused by: com.google.gson.JsonSyntaxException: java.io.EOFException: End of input at line 110 column 2 at com.google.gson.internal.Streams.parse(Streams.java:54) at com.google.gson.JsonParser.parse(JsonParser.java:84) at lumien.custommainmenu.configuration.ConfigurationLoader.load(ConfigurationLoader.java:92) at lumien.custommainmenu.CustomMainMenu.preInit(CustomMainMenu.java:67) ... 37 more Caused by: java.io.EOFException: End of input at line 110 column 2 at com.google.gson.stream.JsonReader.nextNonWhitespace(JsonReader.java:1377) at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:471) at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666) at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) at com.google.gson.internal.Streams.parse(Streams.java:44) ... 40 more

A detailed walkthrough of the error, its code path and all known details is as follows:

-- Head -- Stacktrace: at lumien.custommainmenu.CustomMainMenu.preInit(CustomMainMenu.java:72) 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:497) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) 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:497) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) 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:497) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480)

-- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) at net.minecraft.client.main.Main.main(SourceFile:148) 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:497) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

-- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 128028488 bytes (122 MB) / 265990144 bytes (253 MB) up to 1060372480 bytes (1011 MB) JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1481 8 mods loaded, 8 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCH mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) UCH FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4.1481-1.7.10.jar) UCH Forge{10.13.4.1481} [Minecraft Forge] (forge-1.7.10-10.13.4.1481-1.7.10.jar) UCE CustomMainMenu{1.9.2} [Custom Main Menu] ((client)CustomMainMenu-MC1.7.10-1.9.2.jar) UCH ResourceLoader{1.3} [Resource Loader] ((client)ResourceLoader-MC1.7.10-1.3.jar) UCH mdxlib{1.0.0.46} [mdxlib] ([1.7.10-10.13.4.1614-1.7.10][1.0.0.46] mdxlib.jar) UCH avp{4.0.0.754} [AliensVsPredator] ([1.7.10-10.13.4.1614-1.7.10][4.0.0.754] aliensvspredator.jar) UCH AIRI{3.0.0-1.7.10} [AIRI] (_AIRI-1.7.10.jar) GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 436.15' Renderer: 'GeForce RTX 2070/PCIe/SSE2' Launched Version: 1.7.10-Forge10.13.4.1481-1.7.10 LWJGL: 2.9.1 OpenGL: GeForce RTX 2070/PCIe/SSE2 GL version 4.6.0 NVIDIA 436.15, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported.

Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)

heres my config { "images": { "title": { "image": "ehrensepicgaming:ehrensepicgamingcraft.png", "posX": -180, "posY": 30, "width": 372, "height": 64, "alignment": "top_center" }, "buttons": { "singleplayer": { "text": "menu.singleplayer", "posX": -100, "posY": -24, "alignment": "center", "width": 98, "height": 20, "action": { "type": "openGui", "gui": "singleplayer" } }, "multiplayer": { "text": "menu.multiplayer", "posX": 2, "posY": -24, "alignment": "center", "width": 98, "height": 20, "action": { "type": "openGui", "gui": "multiplayer" } }, "mods": { "text": "fml.menu.mods", "posX": -100, "posY": 0, "alignment": "center", "width": 200, "height": 20, "action": { "type": "openGui", "gui": "mods" } }, "options": { "text": "menu.options", "posX": -100, "posY": 24, "alignment": "center", "width": 98, "height": 20, "action": { "type": "openGui", "gui": "options" } }, "quit": { "text": "menu.quit", "posX": 2, "posY": 24, "alignment": "center", "width": 98, "height": 20, "action":{ "type":"quit" } }, "language": { "text": "", "posX": -22, "posY": 48, "alignment": "center", "width": 20, "height": 20, "action": { "type": "openGui", "gui": "language" } }, "refresh": { "text": "", "posX": 2, "posY": 48, "alignment": "center", "width": 20, "height": 20, "action": { "type": "refresh" } } }, "texts": { "mojang": { "text": "Copyright Mojang AB. Do not distribute!", "posX": -205, "posY": -10, "color": -1, "alignment": "bottom_right" }, "other": { "background": { "image": "ehrensepicgaming:background.png", "mode": "fill" } } } }

ROMVoid95 commented 4 years ago

Your missing a closing } at the end of the file. just add one more to the very end of the file.

One thing that helped me when receiving json formatting errors was using a quick online validator or add-on for Notepad++ https://jsonformatter.curiousconcept.com/

LostGameDev commented 4 years ago

still crashes on loading here is my crash report ---- Minecraft Crash Report ---- // Shall we play a game?

Time: 16/11/19 5:30 PM Description: Initializing game

java.lang.RuntimeException: java.lang.NullPointerException at lumien.custommainmenu.CustomMainMenu.preInit(CustomMainMenu.java:72) 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:497) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) 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:497) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) 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:497) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) at net.minecraft.client.main.Main.main(SourceFile:148) 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:497) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) Caused by: java.lang.NullPointerException at lumien.custommainmenu.configuration.GuiConfig.loadButtons(GuiConfig.java:297) at lumien.custommainmenu.configuration.GuiConfig.load(GuiConfig.java:102) at lumien.custommainmenu.configuration.ConfigurationLoader.load(ConfigurationLoader.java:95) at lumien.custommainmenu.CustomMainMenu.preInit(CustomMainMenu.java:67) ... 37 more

A detailed walkthrough of the error, its code path and all known details is as follows:

-- Head -- Stacktrace: at lumien.custommainmenu.CustomMainMenu.preInit(CustomMainMenu.java:72) 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:497) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) 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:497) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) 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:497) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480)

-- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) at net.minecraft.client.main.Main.main(SourceFile:148) 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:497) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

-- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 128702120 bytes (122 MB) / 285106176 bytes (271 MB) up to 1060372480 bytes (1011 MB) JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1481 7 mods loaded, 7 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCH mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) UCH FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4.1481-1.7.10.jar) UCH Forge{10.13.4.1481} [Minecraft Forge] (forge-1.7.10-10.13.4.1481-1.7.10.jar) UCE CustomMainMenu{1.9.2} [Custom Main Menu] ((client)CustomMainMenu-MC1.7.10-1.9.2.jar) UCH ResourceLoader{1.3} [Resource Loader] ((client)ResourceLoader-MC1.7.10-1.3.jar) UCH bspkrsCore{6.16} [bspkrsCore] ([1.7.10]bspkrsCore-universal-6.16.jar) UCH Baubles{1.0.1.10} [Baubles] (Baubles-1.7.10-1.0.1.10.jar) GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 436.15' Renderer: 'GeForce RTX 2070/PCIe/SSE2' Launched Version: 1.7.10-Forge10.13.4.1481-1.7.10 LWJGL: 2.9.1 OpenGL: GeForce RTX 2070/PCIe/SSE2 GL version 4.6.0 NVIDIA 436.15, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported.

Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: [faithful64pack-v1.4.0.zip, CodeCrafted Custom - 1.11+.zip]
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)

here is my config { "images": { "title": { "image": "ehrensepicgaming:ehrensepicgamingcraft.png", "posX": -180, "posY": 30, "width": 372, "height": 64, "alignment": "top_center" }, "buttons": { "singleplayer": { "text": "menu.singleplayer", "posX": -100, "posY": -24, "alignment": "center", "width": 98, "height": 20, "action": { "type": "openGui", "gui": "singleplayer" } }, "multiplayer": { "text": "menu.multiplayer", "posX": 2, "posY": -24, "alignment": "center", "width": 98, "height": 20, "action": { "type": "openGui", "gui": "multiplayer" } }, "mods": { "text": "fml.menu.mods", "posX": -100, "posY": 0, "alignment": "center", "width": 200, "height": 20, "action": { "type": "openGui", "gui": "mods" } }, "options": { "text": "menu.options", "posX": -100, "posY": 24, "alignment": "center", "width": 98, "height": 20, "action": { "type": "openGui", "gui": "options" } }, "quit": { "text": "menu.quit", "posX": 2, "posY": 24, "alignment": "center", "width": 98, "height": 20, "action":{ "type":"quit" } }, "language": { "text": "", "posX": -22, "posY": 48, "alignment": "center", "width": 20, "height": 20, "action": { "type": "openGui", "gui": "language" } }, "refresh": { "text": "", "posX": 2, "posY": 48, "alignment": "center", "width": 20, "height": 20, "action": { "type": "refresh" } } }, "texts": { "mojang": { "text": "Copyright Mojang AB. Do not distribute!", "posX": -205, "posY": -10, "color": -1, "alignment": "bottom_right" }, "other": { "background": { "image": "ehrensepicgaming:background.png", "mode": "fill" } } } } }

LostGameDev commented 4 years ago

still crashes here is my crash report ---- Minecraft Crash Report ---- // Shall we play a game?

Time: 16/11/19 5:30 PM Description: Initializing game

java.lang.RuntimeException: java.lang.NullPointerException at lumien.custommainmenu.CustomMainMenu.preInit(CustomMainMenu.java:72) 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:497) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) 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:497) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) 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:497) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) at net.minecraft.client.main.Main.main(SourceFile:148) 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:497) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) Caused by: java.lang.NullPointerException at lumien.custommainmenu.configuration.GuiConfig.loadButtons(GuiConfig.java:297) at lumien.custommainmenu.configuration.GuiConfig.load(GuiConfig.java:102) at lumien.custommainmenu.configuration.ConfigurationLoader.load(ConfigurationLoader.java:95) at lumien.custommainmenu.CustomMainMenu.preInit(CustomMainMenu.java:67) ... 37 more

A detailed walkthrough of the error, its code path and all known details is as follows:

-- Head -- Stacktrace: at lumien.custommainmenu.CustomMainMenu.preInit(CustomMainMenu.java:72) 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:497) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) 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:497) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) 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:497) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480)

-- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) at net.minecraft.client.main.Main.main(SourceFile:148) 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:497) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

-- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 128702120 bytes (122 MB) / 285106176 bytes (271 MB) up to 1060372480 bytes (1011 MB) JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1481 7 mods loaded, 7 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCH mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) UCH FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4.1481-1.7.10.jar) UCH Forge{10.13.4.1481} [Minecraft Forge] (forge-1.7.10-10.13.4.1481-1.7.10.jar) UCE CustomMainMenu{1.9.2} [Custom Main Menu] ((client)CustomMainMenu-MC1.7.10-1.9.2.jar) UCH ResourceLoader{1.3} [Resource Loader] ((client)ResourceLoader-MC1.7.10-1.3.jar) UCH bspkrsCore{6.16} [bspkrsCore] ([1.7.10]bspkrsCore-universal-6.16.jar) UCH Baubles{1.0.1.10} [Baubles] (Baubles-1.7.10-1.0.1.10.jar) GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 436.15' Renderer: 'GeForce RTX 2070/PCIe/SSE2' Launched Version: 1.7.10-Forge10.13.4.1481-1.7.10 LWJGL: 2.9.1 OpenGL: GeForce RTX 2070/PCIe/SSE2 GL version 4.6.0 NVIDIA 436.15, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported.

Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: [faithful64pack-v1.4.0.zip, CodeCrafted Custom - 1.11+.zip]
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)

here is my config { "images": { "title": { "image": "ehrensepicgaming:ehrensepicgamingcraft.png", "posX": -180, "posY": 30, "width": 372, "height": 64, "alignment": "top_center" }, "buttons": { "singleplayer": { "text": "menu.singleplayer", "posX": -100, "posY": -24, "alignment": "center", "width": 98, "height": 20, "action": { "type": "openGui", "gui": "singleplayer" } }, "multiplayer": { "text": "menu.multiplayer", "posX": 2, "posY": -24, "alignment": "center", "width": 98, "height": 20, "action": { "type": "openGui", "gui": "multiplayer" } }, "mods": { "text": "fml.menu.mods", "posX": -100, "posY": 0, "alignment": "center", "width": 200, "height": 20, "action": { "type": "openGui", "gui": "mods" } }, "options": { "text": "menu.options", "posX": -100, "posY": 24, "alignment": "center", "width": 98, "height": 20, "action": { "type": "openGui", "gui": "options" } }, "quit": { "text": "menu.quit", "posX": 2, "posY": 24, "alignment": "center", "width": 98, "height": 20, "action":{ "type":"quit" } }, "language": { "text": "", "posX": -22, "posY": 48, "alignment": "center", "width": 20, "height": 20, "action": { "type": "openGui", "gui": "language" } }, "refresh": { "text": "", "posX": 2, "posY": 48, "alignment": "center", "width": 20, "height": 20, "action": { "type": "refresh" } } }, "texts": { "mojang": { "text": "Copyright Mojang AB. Do not distribute!", "posX": -205, "posY": -10, "color": -1, "alignment": "bottom_right" }, "other": { "background": { "image": "ehrensepicgaming:background.png", "mode": "fill" } } } } }

kreezxil commented 4 years ago

First Glance Thoughts

9 times out of 10 your crash is happening because of malformed JSON the tool at https://jsoneditoronline.org/ can help you to find it. Paste your config file and it'll immediately tell you what upon while line the problem is located.

Common json errors are mismatched {}[] and missing quotes usually these " and commas or too many commas looking like this ','

Analysis

First your pretty printed code using ``` code here ```

{
  "images": {
    "title": {
      "image": "ehrensepicgaming:ehrensepicgamingcraft.png",
      "posX": -180,
      "posY": 30,
      "width": 372,
      "height": 64,
      "alignment": "top_center"
    },
    "buttons": {
      "singleplayer": {
        "text": "menu.singleplayer",
        "posX": -100,
        "posY": -24,
        "alignment": "center",
        "width": 98,
        "height": 20,
        "action": {
          "type": "openGui",
          "gui": "singleplayer"
        }
      },
      "multiplayer": {
        "text": "menu.multiplayer",
        "posX": 2,
        "posY": -24,
        "alignment": "center",
        "width": 98,
        "height": 20,
        "action": {
          "type": "openGui",
          "gui": "multiplayer"
        }
      },
      "mods": {
        "text": "fml.menu.mods",
        "posX": -100,
        "posY": 0,
        "alignment": "center",
        "width": 200,
        "height": 20,
        "action": {
          "type": "openGui",
          "gui": "mods"
        }
      },
      "options": {
        "text": "menu.options",
        "posX": -100,
        "posY": 24,
        "alignment": "center",
        "width": 98,
        "height": 20,
        "action": {
          "type": "openGui",
          "gui": "options"
        }
      },
      "quit": {
        "text": "menu.quit",
        "posX": 2,
        "posY": 24,
        "alignment": "center",
        "width": 98,
        "height": 20,
        "action": {
          "type": "quit"
        }
      },
      "language": {
        "text": "",
        "posX": -22,
        "posY": 48,
        "alignment": "center",
        "width": 20,
        "height": 20,
        "action": {
          "type": "openGui",
          "gui": "language"
        }
      },
      "refresh": {
        "text": "",
        "posX": 2,
        "posY": 48,
        "alignment": "center",
        "width": 20,
        "height": 20,
        "action": {
          "type": "refresh"
        }
      }
    },
    "texts": {
      "mojang": {
        "text": "Copyright Mojang AB. Do not distribute!",
        "posX": -205,
        "posY": -10,
        "color": -1,
        "alignment": "bottom_right"
      },
      "other": {
        "background": {
          "image": "ehrensepicgaming:background.png",
          "mode": "fill"
        }
      }
    }
  }
}

You can add syntax hiliting (colorization) by putting the file-type after the first three back ticks like this

```json

The online json editor showed that your config is syntactically correct which leads me to believe that your resource folder is not setup up right.

Make sure you have this structure setup under your pack folder. the triple back ticks preserve formatting too

<pack folder>
|
|- config
|- mods
|- resources
     |-ehrensepicgaming
           |-ehrensepicgamingcraft.png
           |-background.png

Suggestion

Don't use long complicated names, even if they make sense to you, your fingers can disobey your brain and type other stuff when things are too long. Try changing ehrensepicgaming to eeg, you're only doing it for the resources folder and the config. change the ehrensepicgamingcraft.png to title.png, it helps if assets are named what they are in essence, like is it a title?

Feel free to use one of my packs as an example to help you out.

For instance World of Dragons has a pretty intense custom main menu with lots of buttons redefined etc.

Modern Industry, I use CMM a little bit differently here.

So that's two packs with configs and resources folders that are not found in the examples that should help you out considerably.

The Mod author is deep in exams, I wonder what he's taking ...

hint for readability, to maintain formatting.

enclose the pasted raw text in trip back ticks (to the left of the 1 key). Put a set on one line then the text and then a set on the last line. The issue will look a million times better and might get a response because readability will have increased loads.

alternatively use a pasting service like https://pastebin.com, https://paste.ee, https://hastebin.com, https://paste.ubuntu.com, or even https://gist.github.com and after submitting there you get a new url, copy that and put it here.