Jump to content

|URGENT| Eclipse Console Returns java.lang.RuntimeException upon Client Startup


LordOfTheBlocks_

Recommended Posts

Hello! I just started modding, and I've encountered a weird and VERY VERY annoying issue. For the first few hours my game would load fine, but at one point, it started crashing, and NO MATTER how much code I deleted or changed, the same crash occurred every time, even though I followed the modding tutorials to the LETTER. Here is the log: 

Spoiler

2017-08-28 17:17:50,023 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-08-28 17:17:50,027 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[17:17:50] [main/INFO] [GradleStart]: Extra: []
[17:17:50] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/caleb/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.1, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[17:17:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[17:17:50] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[17:17:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[17:17:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[17:17:50] [main/INFO] [FML]: Forge Mod Loader version 14.22.0.2463 for Minecraft 1.12.1 loading
[17:17:50] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_144, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_144
[17:17:50] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[17:17:50] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
[17:17:50] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
[17:17:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[17:17:50] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[17:17:50] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[17:17:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:17:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[17:17:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[17:17:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:17:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:17:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
2017-08-28 17:17:51,020 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-08-28 17:17:51,414 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-08-28 17:17:51,416 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[17:17:52] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[17:17:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[17:17:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[17:17:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[17:17:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[17:17:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[17:17:53] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[17:17:55] [main/INFO]: Setting user: Player400
[17:18:00] [main/WARN]: Skipping bad option: lastServer:
[17:18:00] [main/INFO]: LWJGL Version: 2.9.4
[17:18:03] [main/INFO] [FML]: -- System Details --
Details:
    Minecraft Version: 1.12.1
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_144, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 800479320 bytes (763 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: 
    Loaded coremods (and transformers): 
    GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 385.41' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2'
[17:18:03] [main/INFO] [FML]: MinecraftForge v14.22.0.2463 Initialized
[17:18:03] [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
[17:18:03] [main/INFO] [FML]: Replaced 1036 ore ingredients
[17:18:03] [main/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[17:18:03] [main/INFO] [FML]: Searching C:\MinecraftModding\MWAB\run\mods for mods
[17:18:05] [main/INFO] [FML]: Forge Mod Loader has identified 6 mods to load
[17:18:05] [main/ERROR] [FML]: Could not dispatch event: public void net.minecraftforge.fml.common.LoadController.buildModList(net.minecraftforge.fml.common.event.FMLLoadEvent) to java.lang.RuntimeException: An unexpected exception occurred constructing the custom resource pack for Madman With A Box
[17:18:05] [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 104234709 nanos
[17:18:05] [main/ERROR] [FML]: Could not dispatch event: public void net.minecraftforge.fml.common.LoadController.propogateStateMessage(net.minecraftforge.fml.common.event.FMLEvent) to java.lang.NullPointerException
[17:18:05] [main/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge
[17:18:05] [main/INFO] [FML]: Processing ObjectHolder annotations
[17:18:05] [main/INFO] [FML]: Found 1168 ObjectHolder annotations
[17:18:05] [main/INFO] [FML]: Identifying ItemStackHolder annotations
[17:18:05] [main/INFO] [FML]: Found 0 ItemStackHolder annotations
[17:18:05] [main/FATAL] [FML]: There is a severe problem with mwab - it appears not to have constructed correctly
[17:18:05] [main/ERROR] [FML]: Could not dispatch event: public void net.minecraftforge.fml.common.LoadController.propogateStateMessage(net.minecraftforge.fml.common.event.FMLEvent) to java.lang.NullPointerException
[17:18:05] [main/INFO] [FML]: Applying holder lookups
[17:18:05] [main/INFO] [FML]: Holder lookups applied
[17:18:05] [main/INFO] [FML]: Applying holder lookups
[17:18:05] [main/INFO] [FML]: Holder lookups applied
[17:18:05] [main/INFO] [FML]: Applying holder lookups
[17:18:05] [main/INFO] [FML]: Holder lookups applied
[17:18:05] [main/INFO] [FML]: Applying holder lookups
[17:18:05] [main/INFO] [FML]: Holder lookups applied
[17:18:05] [main/INFO] [FML]: Injecting itemstacks
[17:18:05] [main/INFO] [FML]: Itemstack injection complete
[17:18:05] [main/FATAL] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue
[17:18:05] [main/FATAL] [FML]: 
    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 |
    |:----- |:--------- |:------------- |:-------------------------------- |:--------- |
    | U     | minecraft | 1.12.1        | minecraft.jar                    | None      |
    | U     | mcp       | 9.19          | minecraft.jar                    | None      |
    | U     | FML       | 8.0.99.99     | forgeSrc-1.12.1-14.22.0.2463.jar | None      |
    | U     | forge     | 14.22.0.2463  | forgeSrc-1.12.1-14.22.0.2463.jar | None      |
    | U     | mwab      | 0.1 - MC 1.12 | bin                              | None      |
    |       | tm        | 0.1 - MC 1.12 | bin                              | None      |

[17:18:05] [main/FATAL] [FML]: The following problems were captured during this phase
[17:18:05] [main/ERROR] [FML]: Caught exception from mwab (java.lang.RuntimeException)
[17:18:05] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:630]: ---- Minecraft Crash Report ----
// Why did you do that?

Time: 8/28/17 5:18 PM
Description: There was a severe problem during mod loading that has caused the game to fail

net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from null (mwab)
Caused by: java.lang.RuntimeException
    at net.minecraftforge.fml.common.LoadController.buildModObjectList(LoadController.java:289)
    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:225)
    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:148)
    at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:604)
    at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:266)
    at net.minecraft.client.Minecraft.init(Minecraft.java:508)
    at net.minecraft.client.Minecraft.run(Minecraft.java:416)
    at net.minecraft.client.main.Main.main(Main.java:118)
    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)
    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.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
    at GradleStart.main(GradleStart.java:26)


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

-- System Details --
Details:
    Minecraft Version: 1.12.1
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_144, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 775299648 bytes (739 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP 9.41 Powered by Forge 14.22.0.2463 6 mods loaded, 5 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 |
    |:----- |:--------- |:------------- |:-------------------------------- |:--------- |
    | U     | minecraft | 1.12.1        | minecraft.jar                    | None      |
    | U     | mcp       | 9.19          | minecraft.jar                    | None      |
    | U     | FML       | 8.0.99.99     | forgeSrc-1.12.1-14.22.0.2463.jar | None      |
    | U     | forge     | 14.22.0.2463  | forgeSrc-1.12.1-14.22.0.2463.jar | None      |
    | U     | mwab      | 0.1 - MC 1.12 | bin                              | None      |
    |       | tm        | 0.1 - MC 1.12 | bin                              | None      |

    Loaded coremods (and transformers): 
    GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 385.41' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2'
[17:18:05] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:630]: #@!@# Game crashed! Crash report saved to: #@!@# C:\MinecraftModding\MWAB\run\.\crash-reports\crash-2017-08-28_17.18.05-client.txt
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
 

If anyone can debug this and fix this I would be ETERNALLY grateful. I have literally been hitting my head against the wall and other painful actions out of frustration, so please give me speedy suggestions! I just started modding and I don't want to get discouraged.

Link to comment
Share on other sites

Well, the error is definitely caused by "MWAB" which I guess is your Mod.  I'm guessing you're trying to use an object somewhere that isn't registered.  Or maybe you're trying to read something off a block that isn't instantiated yet, or something that's supposed to be there but isn't. It's hard to really debug without knowing the code. 

 

If you want to debug yourself, you can always add System.out.println's at certain points in your code, which should help you with seeing exactly what point of your code is throwing errors. Or you can try to post the code you're trying to execute in here, using the <> Symbol at the top of your editor which allows you to neatly paste code.

Link to comment
Share on other sites

10 minutes ago, oldcheese said:

Well, the error is definitely caused by "MWAB" which I guess is your Mod.  I'm guessing you're trying to use an object somewhere that isn't registered.  Or maybe you're trying to read something off a block that isn't instantiated yet, or something that's supposed to be there but isn't. It's hard to really debug without knowing the code. 

 

If you want to debug yourself, you can always add System.out.println's at certain points in your code, which should help you with seeing exactly what point of your code is throwing errors. Or you can try to post the code you're trying to execute in here, using the <> Symbol at the top of your editor which allows you to neatly paste code.

Ok, here is my code so far:

Order, Main Class, Reference, RegistryHandler, ItemInit, BlockInit, ClientProxy, CommonProxy, CustomBlock, CustomIngot, CustomOre

package ace.madmanwithabox;

import ace.madmanwithabox.proxy.CommonProxy;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

@Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION)

public class MadmanWithABox 
{
	
	@SidedProxy(clientSide = Reference.CLIENTPROXY, serverSide = Reference.COMMONPROXY)
	public static CommonProxy proxy;
	
	@EventHandler
	public static void preInit(FMLPreInitializationEvent event)
	{
		proxy.preInit(event);
	}
	
	@EventHandler
	public static void init(FMLInitializationEvent event)
	{
		proxy.init(event);
	}
	
	@EventHandler
	public static void postInit(FMLPostInitializationEvent event)
	{
		proxy.postInit(event);
	}

}
package ace.madmanwithabox;

public class Reference 
{
	public static final String MODID = "mwab";
	public static final String NAME = "Madman With A Box";
	public static final String VERSION = "0.1 - MC 1.12";
	
	public static final String CLIENTPROXY = "ace.madmanwithabox.proxy.ClientProxy";
	public static final String COMMONPROXY = "ace.madmanwithabox.proxy.CommonProxy";

}
package ace.madmanwithabox.handlers;

import ace.madmanwithabox.init.BlockInit;
import ace.madmanwithabox.init.ItemInit;

public class RegistryHandler 
{
	public static void Client()
	{
		ItemInit.register();
		BlockInit.registerRenders();
	}
	
	public static void Common()
	{
		ItemInit.init();
		BlockInit.init();
		BlockInit.register();
	}
	

}
package ace.madmanwithabox.init;

import ace.madmanwithabox.Reference;
import ace.madmanwithabox.init.items.CustomIngot;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.fml.common.registry.ForgeRegistries;

public class ItemInit 
{
	public static Item steel_ingot;
	
	public static void init()
	{
		steel_ingot = new CustomIngot("steel_ingot");
		
	}
	
	public static void register()
	{
		registerItem(steel_ingot);
	}
	
	public static void registerItem(Item item)
	{
		ForgeRegistries.ITEMS.register(item);
		Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, 
		new ModelResourceLocation(Reference.MODID + ":" + item.getUnlocalizedName().substring(5), "inventory"));
	}
}
package ace.madmanwithabox.init;

import ace.madmanwithabox.Reference;
import ace.madmanwithabox.init.blocks.CustomOre;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraftforge.fml.common.registry.ForgeRegistries;

public class BlockInit 
{
	public static Block steel_ore;
	
	public static void init()
	{
		steel_ore = new CustomOre("steel_ore", 2.0F, 4.0F, 2);
		
	}
	
	public static void register()
	{
		registerBlock(steel_ore);
	}

	public static void registerBlock(Block block)
	{
		ForgeRegistries.BLOCKS.register(block);
		block.setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
		ItemBlock item = new ItemBlock(block);
		item.setRegistryName(block.getRegistryName());
		ForgeRegistries.ITEMS.register(item);
	}
	
	public static void registerRenders()
	{
		registerRender(steel_ore);
	}
	
	public static void registerRender(Block block)
	{
		Minecraft.getMinecraft().getRenderItem().getItemModelMesher()
		.register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(Reference.MODID + ":" + 
		block.getUnlocalizedName().substring(5)));
	}
}
package ace.madmanwithabox.proxy;

import ace.madmanwithabox.handlers.RegistryHandler;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

public class ClientProxy extends CommonProxy
{	
	public void preInit(FMLPreInitializationEvent event)
	{
		super.preInit(event);
	}

	public void init(FMLInitializationEvent event)
	{
		super.init(event);
		RegistryHandler.Client();
	}

	public void postInit(FMLPostInitializationEvent event)
	{
		super.postInit(event);
	}


}
package ace.madmanwithabox.proxy;

import ace.madmanwithabox.handlers.RegistryHandler;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

public class CommonProxy 
{
	public void preInit(FMLPreInitializationEvent event)
	{
		RegistryHandler.Common();
	}
	
	public void init(FMLInitializationEvent event)
	{
		
	}
	
	public void postInit(FMLPostInitializationEvent event)
	{
		
	}

}
package ace.madmanwithabox.init.blocks;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;

public class CustomBlock extends Block 
{
	public CustomBlock(String name, float hardness, float resistance)
	{
		super(Material.ROCK);
		setUnlocalizedName(name);
		setRegistryName(name);
		setHardness(hardness);
		setResistance(resistance);
		
		
	}

}
package ace.madmanwithabox.init.items;

import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;

public class CustomIngot extends Item 
{
	public CustomIngot(String name)
	{
		setUnlocalizedName(name);
		setRegistryName(name);
		setCreativeTab(CreativeTabs.MISC);
	}

}

v

package ace.madmanwithabox.init.blocks;

public class CustomOre extends CustomBlock 
{
	public CustomOre(String name, float hardness, float resistance, int harvestLevel)
	{
		super(name, hardness, resistance);
		setHarvestLevel("pickaxe", harvestLevel);
	}

}

I hope you can make sense of this!!

Thanks! :)

Link to comment
Share on other sites

I explained how to debug this to someone else a while ago:

 

On 28/07/2017 at 5:29 AM, Choonster said:

It looks like several exceptions occurred, but due to where they were thrown the name and message were logged without the stacktrace or cause. This makes it very difficult to see what the problem is by looking at the log.

 

The "Could not dispatch event" message is logged by the anonymous SubscriberExceptionHandler class created in the LoadController constructor. Set a breakpoint in the handleException method of the anonymous class and look at the Throwable argument and its cause in the debugger when the breakpoint is hit. This should explain what the problem is.

  • Like 1

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

3 hours ago, Choonster said:

I explained how to debug this to someone else a while ago:

 

Thank you so much for your reply! Unfortunately, I can't make sense of what you're trying to say! :( I can see the "Could not dispatch event" in my crash report, but nowhere (with ctrl + F) can I find "handleException", and it's not in my code either. Do you maybe have a fix for the issue, or were you helping me find what was wrong (because I still don't know what's wrong with my code)? Funny thing I tested, when I complete a whole new workspace, and setup the most basic code, no items/blocks/anything, then I ran MC. It worked, but I noticed that there were only 4 mods loaded. Turns out in my main class I had a semicolon at the end of my @Mod string, so it's not a item or block that's crashing my game, it's the simple presence of my mod!! This is incredibly frustrating! Any ideas???

Link to comment
Share on other sites

1 hour ago, LordOfTheBlocks_ said:

Thank you so much for your reply! Unfortunately, I can't make sense of what you're trying to say! :( I can see the "Could not dispatch event" in my crash report, but nowhere (with ctrl + F) can I find "handleException", and it's not in my code either. Do you maybe have a fix for the issue, or were you helping me find what was wrong (because I still don't know what's wrong with my code)? Funny thing I tested, when I complete a whole new workspace, and setup the most basic code, no items/blocks/anything, then I ran MC. It worked, but I noticed that there were only 4 mods loaded. Turns out in my main class I had a semicolon at the end of my @Mod string, so it's not a item or block that's crashing my game, it's the simple presence of my mod!! This is incredibly frustrating! Any ideas???

 

The class you need to set a breakpoint in is a part of FML, not a part of your code.

 

Open the LoadController class, navigate to the constructor, set a breakpoint in the handleException method of the anonymous class and then run Minecraft in debug mode.

 

When the breakpoint is hit, look at the value of the Throwable argument of the method to see where it was thrown from.

Edited by Choonster
Fixed grammar.
  • Like 2

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

20 minutes ago, Choonster said:

 

The class you need to set a breakpoint in is a part of FML, not a part of your code.

 

Open the LoadController class, navigate to the constructor and then set a breakpoint in the handleException method of the anonymous class and then run Minecraft in debug mode.

 

When the breakpoint is hit, look at the value of the Throwable argument of the method to see where it was thrown from.

Wow, ok, I don't quite understand that (I've had 1 day of modding experience) but I get the gist of what you're saying, I'll try it out. 

Thanks!

Link to comment
Share on other sites

On 8/29/2017 at 10:53 AM, Choonster said:

 

The class you need to set a breakpoint in is a part of FML, not a part of your code.

 

Open the LoadController class, navigate to the constructor, set a breakpoint in the handleException method of the anonymous class and then run Minecraft in debug mode.

 

When the breakpoint is hit, look at the value of the Throwable argument of the method to see where it was thrown from.

Edit: just realized you said the error is not in my code!! I looked around for anything that says "LoadController" in Eclipse, but can't find anything and Google hasn't helped either. Where do I go to put in that breakpoint method, and what is the exact code for that? (Sorry, I know VERY little java)

Again thank you so much for your help, I really hope I can get this mod on it's feet so my friends and I can mess around with it. :)

Edited by LordOfTheBlocks_
Link to comment
Share on other sites

22 minutes ago, LordOfTheBlocks_ said:

Edit: just realized you said the error is not in my code!! I looked around for anything that says "LoadController" in Eclipse, but can't find anything and Google hasn't helped either. Where do I go to put in that breakpoint method, and what is the exact code for that? (Sorry, I know VERY little java)

Again thank you so much for your help, I really hope I can get this mod on it's feet so my friends and I can mess around with it. :)

 

To open a class by name, use Navigate > Class (Ctrl-N) in IDEA or Navigate > Go To > Type... in Eclipse.

  • Like 1

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

1 hour ago, Choonster said:

 

To open a class by name, use Navigate > Class (Ctrl-N) in IDEA or Navigate > Go To > Type... in Eclipse.

Alrighty, I have done as you have said and here is my new error log: 

Spoiler

2017-08-30 12:54:28,178 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-08-30 12:54:28,182 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[12:54:28] [main/INFO] [GradleStart]: Extra: []
[12:54:28] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/caleb/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[12:54:28] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[12:54:28] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[12:54:28] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[12:54:28] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[12:54:28] [main/INFO] [FML]: Forge Mod Loader version 14.21.1.2387 for Minecraft 1.12 loading
[12:54:28] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_144, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_144
[12:54:28] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[12:54:28] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[12:54:28] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[12:54:28] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[12:54:28] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:54:28] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[12:54:28] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[12:54:28] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:54:28] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:54:28] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
2017-08-30 12:54:28,855 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-08-30 12:54:29,313 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-08-30 12:54:29,315 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[12:54:29] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[12:54:30] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[12:54:30] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[12:54:30] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[12:54:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[12:54:31] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[12:54:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[12:54:31] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[12:54:32] [main/INFO]: Setting user: Player170
[12:54:38] [main/INFO]: LWJGL Version: 2.9.4
[12:54:41] [main/INFO] [FML]: -- System Details --
Details:
    Minecraft Version: 1.12
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_144, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 815760704 bytes (777 MB) / 1006108672 bytes (959 MB) up to 1006108672 bytes (959 MB)
    JVM Flags: 2 total; -Xmx1024M -Xms1024M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: 
    Loaded coremods (and transformers): 
    GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 385.28' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2'
[12:54:41] [main/INFO] [FML]: MinecraftForge v14.21.1.2387 Initialized
[12:54:41] [main/INFO] [FML]: Replaced 921 ore ingredients
[12:54:41] [main/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[12:54:41] [main/INFO] [FML]: Searching C:\MinecraftModding\MWAB 1.12\run\mods for mods
[12:54:43] [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 72324985 nanos
[12:54:43] [main/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[12:54:43] [main/ERROR] [FML]: An unexpected exception occurred constructing the custom resource pack for Madman With A Box
com.google.gson.JsonParseException: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 6 column 6 path $.pack.pack_format
    at net.minecraft.client.resources.AbstractResourcePack.readMetadata(AbstractResourcePack.java:81) ~[AbstractResourcePack.class:?]
    at net.minecraft.client.resources.AbstractResourcePack.getPackMetadata(AbstractResourcePack.java:66) ~[AbstractResourcePack.class:?]
    at net.minecraftforge.fml.client.FMLClientHandler.addModAsResource(FMLClientHandler.java:654) [FMLClientHandler.class:?]
    at net.minecraftforge.fml.common.FMLCommonHandler.addModToResourcePack(FMLCommonHandler.java:542) [FMLCommonHandler.class:?]
    at net.minecraftforge.fml.common.LoadController.buildModList(LoadController.java:129) [LoadController.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_144]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_144]
    at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) [guava-21.0.jar:?]
    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) [guava-21.0.jar:?]
    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) [guava-21.0.jar:?]
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) [guava-21.0.jar:?]
    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) [guava-21.0.jar:?]
    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) [guava-21.0.jar:?]
    at com.google.common.eventbus.EventBus.post(EventBus.java:217) [guava-21.0.jar:?]
    at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:337) [LoadController.class:?]
    at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:546) [Loader.class:?]
    at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:227) [FMLClientHandler.class:?]
    at net.minecraft.client.Minecraft.init(Minecraft.java:508) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:416) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_144]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_144]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_144]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_144]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:26) [start/:?]
Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 6 column 6 path $.pack.pack_format
    at com.google.gson.internal.Streams.parse(Streams.java:60) ~[Streams.class:?]
    at com.google.gson.JsonParser.parse(JsonParser.java:84) ~[JsonParser.class:?]
    at com.google.gson.JsonParser.parse(JsonParser.java:59) ~[JsonParser.class:?]
    at net.minecraft.client.resources.AbstractResourcePack.readMetadata(AbstractResourcePack.java:77) ~[AbstractResourcePack.class:?]
    ... 33 more
Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 6 column 6 path $.pack.pack_format
    at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1559) ~[JsonReader.class:?]
    at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:505) ~[JsonReader.class:?]
    at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:414) ~[JsonReader.class:?]
    at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:738) ~[TypeAdapters$29.class:?]
    at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:739) ~[TypeAdapters$29.class:?]
    at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:714) ~[TypeAdapters$29.class:?]
    at com.google.gson.internal.Streams.parse(Streams.java:48) ~[Streams.class:?]
    at com.google.gson.JsonParser.parse(JsonParser.java:84) ~[JsonParser.class:?]
    at com.google.gson.JsonParser.parse(JsonParser.java:59) ~[JsonParser.class:?]
    at net.minecraft.client.resources.AbstractResourcePack.readMetadata(AbstractResourcePack.java:77) ~[AbstractResourcePack.class:?]
    ... 33 more
[12:54:43] [main/ERROR] [FML]: Could not dispatch event: public void net.minecraftforge.fml.common.LoadController.buildModList(net.minecraftforge.fml.common.event.FMLLoadEvent) to com.google.gson.JsonParseException: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 6 column 6 path $.pack.pack_format
[12:54:43] [main/ERROR] [FML]: Could not dispatch event: public void net.minecraftforge.fml.common.LoadController.propogateStateMessage(net.minecraftforge.fml.common.event.FMLEvent) to java.lang.NullPointerException
[12:54:43] [main/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge
[12:54:44] [main/INFO] [FML]: Processing ObjectHolder annotations
[12:54:44] [main/INFO] [FML]: Found 1168 ObjectHolder annotations
[12:54:44] [main/INFO] [FML]: Identifying ItemStackHolder annotations
[12:54:44] [main/INFO] [FML]: Found 0 ItemStackHolder annotations
[12:54:44] [main/FATAL] [FML]: There is a severe problem with mwab - it appears not to have constructed correctly
[12:54:44] [main/ERROR] [FML]: Could not dispatch event: public void net.minecraftforge.fml.common.LoadController.propogateStateMessage(net.minecraftforge.fml.common.event.FMLEvent) to java.lang.NullPointerException
[12:54:44] [main/INFO] [FML]: Applying holder lookups
[12:54:44] [main/INFO] [FML]: Holder lookups applied
[12:54:44] [main/INFO] [FML]: Applying holder lookups
[12:54:44] [main/INFO] [FML]: Holder lookups applied
[12:54:44] [main/INFO] [FML]: Applying holder lookups
[12:54:44] [main/INFO] [FML]: Holder lookups applied
[12:54:44] [main/INFO] [FML]: Applying holder lookups
[12:54:44] [main/INFO] [FML]: Holder lookups applied
[12:54:44] [main/INFO] [FML]: Injecting itemstacks
[12:54:44] [main/INFO] [FML]: Itemstack injection complete
[12:54:44] [main/FATAL] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue
[12:54:44] [main/FATAL] [FML]: 
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    U    minecraft{1.12} [Minecraft] (minecraft.jar) 
    U    mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
    U    FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.12-14.21.1.2387.jar) 
    U    forge{14.21.1.2387} [Minecraft Forge] (forgeSrc-1.12-14.21.1.2387.jar) 
    U    mwab{0.1 - MC 1.12} [Madman With A Box] (bin) 
[12:54:44] [main/FATAL] [FML]: The following problems were captured during this phase
[12:54:44] [main/ERROR] [FML]: Caught exception from mwab (java.lang.RuntimeException)
[12:54:44] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: ---- Minecraft Crash Report ----
// Don't be sad. I'll do better next time, I promise!

Time: 8/30/17 12:54 PM
Description: There was a severe problem during mod loading that has caused the game to fail

net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from null (mwab)
Caused by: java.lang.RuntimeException
    at net.minecraftforge.fml.common.LoadController.buildModObjectList(LoadController.java:288)
    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:224)
    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:147)
    at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:604)
    at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:266)
    at net.minecraft.client.Minecraft.init(Minecraft.java:508)
    at net.minecraft.client.Minecraft.run(Minecraft.java:416)
    at net.minecraft.client.main.Main.main(Main.java:118)
    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)
    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.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
    at GradleStart.main(GradleStart.java:26)


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

-- System Details --
Details:
    Minecraft Version: 1.12
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_144, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 730048304 bytes (696 MB) / 996671488 bytes (950 MB) up to 996671488 bytes (950 MB)
    JVM Flags: 2 total; -Xmx1024M -Xms1024M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP 9.40 Powered by Forge 14.21.1.2387 5 mods loaded, 5 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    U    minecraft{1.12} [Minecraft] (minecraft.jar) 
    U    mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
    U    FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.12-14.21.1.2387.jar) 
    U    forge{14.21.1.2387} [Minecraft Forge] (forgeSrc-1.12-14.21.1.2387.jar) 
    U    mwab{0.1 - MC 1.12} [Madman With A Box] (bin) 
    Loaded coremods (and transformers): 
    GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 385.28' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2'
[12:54:44] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: #@!@# Game crashed! Crash report saved to: #@!@# C:\MinecraftModding\MWAB 1.12\run\.\crash-reports\crash-2017-08-30_12.54.44-client.txt
 

I see something in there about not being able to load the custom resource pack and another thing with the JSON file. "Line 6 column 6" I will look into that. Tell me if I'm missing something and how to fix it :) 

Thanks!!

Link to comment
Share on other sites

24 minutes ago, LordOfTheBlocks_ said:

Alrighty, I have done as you have said and here is my new error log: 

 

I didn't ask you to post the new log, since setting the breakpoint won't actually change fix the problem; it will merely allow you to identify it. This new log has the same errors as the previous one.

 

Please do this:

On 30/08/2017 at 1:53 AM, Choonster said:

When the breakpoint is hit, look at the value of the Throwable argument of the method to see where it was thrown from.

 

Edited by Choonster

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

2 hours ago, LordOfTheBlocks_ said:

Sorry, I know VERY little java

Yikes! See the forum rules (like the part that says "This is not a Java school...). Do yourself a favor and go learn enough Java so you are  never tempted to offer that excuse again. You should arrive here comfortable enough with Java and Eclipse (or other chosen IDE) so that you're up to learning Forge in the programming jargon that volunteers are using. If any of the words or concepts are mysterious to you, then you should go out of your way to Google and read before asking for more effort to explain prerequisites.

  • Like 1

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Link to comment
Share on other sites

42 minutes ago, Choonster said:

 

I didn't ask you to post the new log, since setting the breakpoint won't actually change fix the problem; it will merely allow you to identify it. This new log has the same errors as the previous one.

 

Please do this:

 

I'm sorry I'm not sure what you mean by "when the breakpoint is hit". Is the value of the Throwable argument in the log or in the class? This is what is in the LoadController class: 

Spoiler

 public LoadController(Loader loader)
    {
        this.loader = loader;
        this.masterChannel = new EventBus(new SubscriberExceptionHandler()
        {
            @Override
            public void handleException(Throwable exception, SubscriberExceptionContext context)
            {
                FMLLog.log.error("Could not dispatch event: {} to {}", context.getSubscriberMethod(), exception);
            }
        });
        this.masterChannel.register(this);

        state = LoaderState.NOINIT;
        packageOwners = ArrayListMultimap.create();

    }

Also this:

Spoiler

Entry<String, Throwable> toThrow = null;
            FMLLog.log.fatal("Fatal errors were detected during the transition from {} to {}. Loading cannot continue", oldState, desiredState);

I set a breakpoint for the line FMLLog.log.error.....

But I'm not sure what to look for

Edited by LordOfTheBlocks_
Link to comment
Share on other sites

3 minutes ago, jeffryfisher said:

Yikes! See the forum rules (like the part that says "This is not a Java school...). Do yourself a favor and go learn enough Java so you are  never tempted to offer that excuse again. You should arrive here comfortable enough with Java and Eclipse (or other chosen IDE) so that you're up to learning Forge in the programming jargon that volunteers are using. If any of the words or concepts are mysterious to you, then you should go out of your way to Google and read before asking for more effort to explain prerequisites.

Oh, I'm sorry! I didn't know that I had to know Java beforehand, it's just that my programming class doesn't start for a week and I doubt we will start off with Java. Any suggestions on where to go and learn the Java fundamentals? I want to get better, but I'm also very frustrated at my program not working, since it's supposedly not even my mod that's causing the error, but something with Forge or Eclipse or who knows....

Link to comment
Share on other sites

13 hours ago, LordOfTheBlocks_ said:

I'm sorry I'm not sure what you mean by "when the breakpoint is hit". Is the value of the Throwable argument in the log or in the class? This is what is in the LoadController class: 

 

As jeffryfisher said, you need to read up on how Java and IDEs work. Oracle have a set of official Java tutorials here that might help. Your IDE should have some documentation on how its debugger works.

 

When you set a breakpoint on a line, you're telling the IDE to pause execution of the code once it reaches that line (and optionally meets some arbitrary conditions, but you don't need them here). This allows you to inspect things like arguments, local variables and fields and execute code in the context of the line it's paused at. Breakpoints are only hit when the program (Minecraft) is running in debug mode.

 

When the breakpoint is hit, you should be able to hover over the Throwable argument of the method in the anonymous class (the one you set the breakpoint in) and look at its value. Alternatively, there should be a window that shows you the values of various arguments, local variables and fields in the current context.

 

In this case, it's probably easier to change the breakpoint so it doesn't suspend (pause) execution and instead tell it to log the Throwable using FML's Logger when it's hit (i.e. call Logger#error(String, Throwable) on FMLLog.log) , this will print the full stacktrace to the log.

  • Like 1

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

Some of the issues with your mod is that you are trying to register everything incorrectly:

  1. You are only registering them on the client
  2. You are registering them in init, not using the Register<Item> event
  3. You are only registering the textures, not the blocks themselves on the client
  4. Why, why, WHY are you using proxies just to call methods in other classes? Your project is a mess, just calling 1 method which simply calls another and another... Your Main class does nothing except call methods inside the proxies, which in turn mostly do nothing (you have the proxy do something on pre-init on the client, init on both and nothing else)! This makes everything almost unreadable.

LEARN JAVA. Then, come back and start from scratch, follow the example of other (well written) mods, and ask for help with forge modding issues when you need it.

One of the most important things to learn is how to understand your errors, learn to read and understand the stack trace, you shouldn't need to ask others what the problem is (Although in this case, as Choonster pointed out, you can't see the stacktrace for the actual error without setting a breakpoint).

  • Like 1
Link to comment
Share on other sites

On 8/30/2017 at 11:40 AM, LordOfTheBlocks_ said:

my programming class doesn't start for a week

Patience young padawan, all will be revealed in its time. Learn programming first, in any language. If you want to learn more than is in the course syllabus, then go to your professor and request extra reading, online tutorials, personal instruction, guidance to the right follow-up course (including independent study) etc.

 

Speaking of guidance, that's what guidance counselors are for. Both professors and counselors should be thrilled to see a student latch onto an internal motivation, so you have a high probability of receiving advanced, possibly off-catalog instruction... but you need to pursue it. If you're burning my tax dollars, please get my money's worth by making my volunteer work here easier.

  • Like 1

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Link to comment
Share on other sites

8 hours ago, Alpvax said:

Some of the issues with your mod is that you are trying to register everything incorrectly:

  1. You are only registering them on the client
  2. You are registering them in init, not using the Register<Item> event
  3. You are only registering the textures, not the blocks themselves on the client
  4. Why, why, WHY are you using proxies just to call methods in other classes? Your project is a mess, just calling 1 method which simply calls another and another... Your Main class does nothing except call methods inside the proxies, which in turn mostly do nothing (you have the proxy do something on pre-init on the client, init on both and nothing else)! This makes everything almost unreadable.

LEARN JAVA. Then, come back and start from scratch, follow the example of other (well written) mods, and ask for help with forge modding issues when you need it.

One of the most important things to learn is how to understand your errors, learn to read and understand the stack trace, you shouldn't need to ask others what the problem is (Although in this case, as Choonster pointed out, you can't see the stacktrace for the actual error without setting a breakpoint).

Well, thank you very much for this advice! I wrote my code based off of a YouTube Modding Tutorial, which would explain the ridiculous messiness. I guess this mod is gonna be put on halt until I know more Java and more about Forge. I'm gonna try to mess around with the code and try to do everything you all said, but if I can't figure it out, then I'll have to just wait until my brain is a little wiser in the area of code. 

 

56 minutes ago, jeffryfisher said:

Patience young padawan, all will be revealed in its time. Learn programming first, in any language. If you want to learn more than is in the course syllabus, then go to your professor and request extra reading, online tutorials, personal instruction, guidance to the right follow-up course (including independent study) etc.

 

Speaking of guidance, that's what guidance counselors are for. Both professors and counselors should be thrilled to see a student latch onto an internal motivation, so you have a high probability of receiving advanced, possibly off-catalog instruction... but you need to pursue it. If you're burning my tax dollars, please get my money's worth by making my volunteer work here easier.

And thank you, sir, for your comment! I will definitely go out of my way to learn more from this coding class. As for your tax dollars, I'm not sure if they go towards dual-credit college students, but I will nonetheless make your volunteering worth the while!

 

Thank you all!

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.