Jump to content

Recommended Posts

Posted

Whenever I launch my mod, it closes at Pre Init phase 2 and shows this:

 

2017-11-10 16:35:32,307 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-11-10 16:35:32,310 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[16:35:32] [main/INFO] [GradleStart]: Extra: []
[16:35:32] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/liamt/.gradle/caches/minecraft/assets, --assetIndex, 1.11, --accessToken{REDACTED}, --version, 1.11.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[16:35:32] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[16:35:32] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[16:35:32] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[16:35:32] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[16:35:33] [main/INFO] [FML]: Forge Mod Loader version 13.20.1.2530 for Minecraft 1.11.2 loading
[16:35:33] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_131, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_131
[16:35:33] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[16:35:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[16:35:33] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[16:35:33] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[16:35:33] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:35:33] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[16:35:33] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[16:35:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:35:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:35:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
2017-11-10 16:35:34,953 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-11-10 16:35:35,097 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-11-10 16:35:35,101 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[16:35:35] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[16:35:46] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[16:35:46] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[16:35:46] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[16:35:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[16:35:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[16:35:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[16:35:50] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[16:35:55] [Client thread/INFO]: Setting user: Player634
[16:36:11] [Client thread/WARN]: Skipping bad option: lastServer:
[16:36:11] [Client thread/INFO]: LWJGL Version: 2.9.4
[16:36:15] [Client thread/INFO] [FML]: -- System Details --
Details:
    Minecraft Version: 1.11.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_131, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 923765848 bytes (880 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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: 'Intel' Version: '4.4.0 - Build 21.20.16.4526' Renderer: 'Intel(R) HD Graphics 520'
[16:36:15] [Client thread/INFO] [FML]: MinecraftForge v13.20.1.2530 Initialized
[16:36:15] [Client thread/INFO] [FML]: Replaced 232 ore recipes
[16:36:16] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[16:36:16] [Client thread/INFO] [FML]: Searching C:\Users\liamt\Desktop\More Food Mod\run\mods for mods
[16:36:18] [Thread-6/INFO] [FML]: Using sync timing. 200 frames of Display.update took 385244359 nanos
[16:36:22] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[16:36:24] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, ymf] at CLIENT
[16:36:24] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, ymf] at SERVER
[16:36:26] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:More Foods Mod
[16:36:27] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[16:36:27] [Client thread/INFO] [FML]: Found 1093 ObjectHolder annotations
[16:36:27] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[16:36:27] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[16:36:27] [Client thread/INFO] [FML]: Applying holder lookups
[16:36:27] [Client thread/INFO] [FML]: Holder lookups applied
[16:36:27] [Client thread/INFO] [FML]: Applying holder lookups
[16:36:27] [Client thread/INFO] [FML]: Holder lookups applied
[16:36:27] [Client thread/INFO] [FML]: Applying holder lookups
[16:36:27] [Client thread/INFO] [FML]: Holder lookups applied
[16:36:28] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[16:36:28] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[16:36:28] [Client thread/INFO] [FML]: Applying holder lookups
[16:36:28] [Client thread/INFO] [FML]: Holder lookups applied
[16:36:28] [Client thread/INFO] [FML]: Injecting itemstacks
[16:36:28] [Client thread/INFO] [FML]: Itemstack injection complete
[16:36:28] [Client thread/FATAL] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue
[16:36:28] [Client thread/FATAL] [FML]: 
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UCH    minecraft{1.11.2} [Minecraft] (minecraft.jar) 
    UCH    mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
    UCH    FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.11.2-13.20.1.2530.jar) 
    UCH    forge{13.20.1.2530} [Minecraft Forge] (forgeSrc-1.11.2-13.20.1.2530.jar) 
    UCE    ymf{1.0} [More Foods Mod] (bin) 
[16:36:28] [Client thread/FATAL] [FML]: The following problems were captured during this phase
[16:36:28] [Client thread/ERROR] [FML]: Caught exception from ymf (java.lang.NullPointerException)
[16:36:28] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:600]: ---- Minecraft Crash Report ----
// Why is it breaking :(

Time: 11/10/17 4:36 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 More Foods Mod (ymf)
Caused by: java.lang.NullPointerException
    at net.minecraftforge.fml.common.registry.IForgeRegistryEntry$Impl.setRegistryName(IForgeRegistryEntry.java:78)
    at items.ItemStraw.<init>(ItemStraw.java:11)
    at init.ModItems.init(ModItems.java:16)
    at com.yellowtangerine.morefood.MoreFood.preInit(MoreFood.java:27)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:649)
    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.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 net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:253)
    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:231)
    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.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 net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:148)
    at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:647)
    at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:276)
    at net.minecraft.client.Minecraft.init(Minecraft.java:478)
    at net.minecraft.client.Minecraft.run(Minecraft.java:387)
    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.11.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_131, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 745766256 bytes (711 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP 9.38 Powered by Forge 13.20.1.2530 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
    UCH    minecraft{1.11.2} [Minecraft] (minecraft.jar) 
    UCH    mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
    UCH    FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.11.2-13.20.1.2530.jar) 
    UCH    forge{13.20.1.2530} [Minecraft Forge] (forgeSrc-1.11.2-13.20.1.2530.jar) 
    UCE    ymf{1.0} [More Foods Mod] (bin) 
    Loaded coremods (and transformers): 
    GL info: ' Vendor: 'Intel' Version: '4.4.0 - Build 21.20.16.4526' Renderer: 'Intel(R) HD Graphics 520'
[16:36:28] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:600]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\liamt\Desktop\More Food Mod\run\.\crash-reports\crash-2017-11-10_16.36.28-client.txt
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
 

------------------------------------------------------------------------------------------------------------------

Please help me, I don't know what's going on

Posted
5 hours ago, YellowTangerine said:

Caused by: java.lang.NullPointerException
    at net.minecraftforge.fml.common.registry.IForgeRegistryEntry$Impl.setRegistryName(IForgeRegistryEntry.java:78)
    at items.ItemStraw.<init>(ItemStraw.java:11)
    at init.ModItems.init(ModItems.java:16)
    at com.yellowtangerine.morefood.MoreFood.preInit(MoreFood.java:27)

Can you please post your code to find the error? Some argument or variable seems to be null or a function returns null.

If my answer helped you out, you may give that answer a like. ^-^
Funny but true JavaScript statements: 

null != 0  null !<0  null !> 0    null <= 0  null >= 0  Number(null) == 0

Posted (edited)

Post your code to github and link to it here for more help, are you setting the registry name in your ItemStraw?

 

edit: also when posting a long error report like that, you should use the spoiler tags. :)

Edited by Ugdhar
spoiler advice
Posted
On 11/10/2017 at 10:33 PM, Rurido said:

Can you please post your code to find the error? Some argument or variable seems to be null or a function returns null.

Here is my  main class code:

 

 

 

 

 

 

package com.yellowtangerine.morefood;

import com.yellowtangerine.morefood.proxy.CommonProxy;

import init.ModItems;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.Mod.Instance;
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.MOD_ID, name = Reference.NAME, version = Reference.VERSION, acceptedMinecraftVersions = Reference.ACCEPTED_VERSIONS)
public class MoreFood {
    
    @Instance
    public static MoreFood instance;
    
    @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS)
    public static CommonProxy proxy;


    @EventHandler
    public void preInit(FMLPreInitializationEvent event) {
    {
    ModItems.init();    
    ModItems.register();
    }
    
}
    public void init(FMLInitializationEvent event) {
    {
        proxy.init();
    }
}
    public void postInit(FMLPostInitializationEvent event) {

        
    }
}
 

Posted

Please upload your code to a github (http://www.github.com), we're going to need to see pretty much every class because everything in your code calls/references something else, and we need to see how it fits together to see where your null is.

Posted
On 10-11-2017 at 10:52 PM, YellowTangerine said:

Caused by: java.lang.NullPointerException
    at net.minecraftforge.fml.common.registry.IForgeRegistryEntry$Impl.setRegistryName(IForgeRegistryEntry.java:78)
    at items.ItemStraw.<init>(ItemStraw.java:11)

In ItemStraw, you are calling setRegistryName with null.

  • Like 1

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted (edited)

When you get an error report like that, read up from the bottom to the lower-most "caused-by". Then read down until you see one of your own methods, usually the site of the bad programming. Click on the line number to jump into your code. If it's not obvious what's null there, then set a breakpoint or two (work your way up the call stack) and rerun in the debugger, stepping one line at a time (and into each call in the erroneous stack) and examining the values involved.

Edited by jeffryfisher

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.

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.