Jump to content

Recommended Posts

Posted

I've recently installed a new version of minecraft, forge and eclipse.  As a test a ran a quick mod that I had working (with my old system) just to quickly verify the modding process is working.  It's not.  When I run the mod from Eclipse only the Forge example mod loads up.  My new mod "BlockBreakMEssage" is not working.  Obviously I'm a newbie to forge modding but I'm pretty sure I installed everything correctly using the gradle and the eclipse patches etc.  Here's what I have:

 

Minecraft Version 1.11.2

Forge MDK Version 1.11.2 - 13.20.0.2228 

Eclipse Version Neon.2 Release 4.6.2

 

I have a fairly simple mod that I took from a Gupta's Minecraft Modding with Forge book:

 

Main

package org.devoxx4kids.forge.mods;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
@Mod(modid = Main.MODID, version = Main.VERSION)
public class Main {
    public static final String MODID = "myMods";
    public static final String VERSION = "1.0";
    
    @EventHandler
    public void init(FMLInitializationEvent event)
    {
        MinecraftForge.EVENT_BUS.register(new BlockBreakMessage());
    }
}

 

BlockBreakMessage

package org.devoxx4kids.forge.mods;
import net.minecraft.util.text.TextComponentString;
import net.minecraft.util.text.TextFormatting;
import net.minecraftforge.event.world.BlockEvent.BreakEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
public class BlockBreakMessage {
    @SubscribeEvent
    public void sendMessage(BreakEvent event){
        event
            .getPlayer()
            .sendMessage(
                    new TextComponentString(
                        TextFormatting.GOLD +
                    "You broke a block now you smell of poop!"));
    }
}

 

The console tells me of a couple of errors:

Quote

[18:23:51] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[18:23:53] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

Quote

[18:24:00] [Client thread/WARN] [FML]: * The modid myMods is not the same as it's lowercase version. Lowercasing is enforced in 1.11

 

 

Here is the full console output:

Quote

 

2017-02-19 18:23:51,583 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-02-19 18:23:51,584 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[18:23:51] [main/INFO] [GradleStart]: Extra: []
[18:23:51] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, E:/Users/Micah/.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]
[18:23:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[18:23:51] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[18:23:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[18:23:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[18:23:51] [main/INFO] [FML]: Forge Mod Loader version 13.20.0.2228 for Minecraft 1.11.2 loading
[18:23:51] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_121, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_121
[18:23:51] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[18:23:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[18:23:51] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[18:23:51] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[18:23:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:23:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[18:23:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[18:23:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:23:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:23:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[18:23:51] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[18:23:53] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[18:23:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[18:23:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[18:23:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[18:23:54] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[18:23:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[18:23:54] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
2017-02-19 18:23:54,632 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-02-19 18:23:54,661 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-02-19 18:23:54,662 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[18:23:54] [Client thread/INFO]: Setting user: Player641
[18:23:58] [Client thread/WARN]: Skipping bad option: lastServer:
[18:23:58] [Client thread/INFO]: LWJGL Version: 2.9.4
[18:23:59] [Client thread/INFO]: [STDOUT]: ---- Minecraft Crash Report ----
// Sorry :(

Time: 2/19/17 6:23 PM
Description: Loading screen debug info

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR


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 7 (amd64) version 6.1
    Java Version: 1.8.0_121, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 683950176 bytes (652 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: 'ATI Technologies Inc.' Version: '4.1.10750 Compatibility Profile Context' Renderer: 'ATI Radeon HD 5800 Series '
[18:23:59] [Client thread/INFO] [FML]: MinecraftForge v13.20.0.2228 Initialized
[18:24:00] [Client thread/INFO] [FML]: Replaced 232 ore recipes
[18:24:00] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[18:24:00] [Client thread/INFO] [FML]: Searching E:\Users\Micah\Documents\Forge-Modding\run\mods for mods
[18:24:00] [Client thread/WARN] [FML]: ****************************************
[18:24:00] [Client thread/WARN] [FML]: * The modid myMods is not the same as it's lowercase version. Lowercasing is enforced in 1.11
[18:24:00] [Client thread/WARN] [FML]: *  at net.minecraftforge.fml.common.FMLModContainer.sanityCheckModId(FMLModContainer.java:149)
[18:24:00] [Client thread/WARN] [FML]: *  at net.minecraftforge.fml.common.FMLModContainer.<init>(FMLModContainer.java:132)
[18:24:00] [Client thread/WARN] [FML]: *  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[18:24:00] [Client thread/WARN] [FML]: *  at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
[18:24:00] [Client thread/WARN] [FML]: *  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
[18:24:00] [Client thread/WARN] [FML]: *  at java.lang.reflect.Constructor.newInstance(Unknown Source)...
[18:24:00] [Client thread/WARN] [FML]: ****************************************
[18:24:00] [Client thread/ERROR] [FML]: Unable to construct net.minecraftforge.fml.common.Mod container
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_121]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_121]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_121]
    at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_121]
    at net.minecraftforge.fml.common.ModContainerFactory.build(ModContainerFactory.java:90) [ModContainerFactory.class:?]
    at net.minecraftforge.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:136) [DirectoryDiscoverer.class:?]
    at net.minecraftforge.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:105) [DirectoryDiscoverer.class:?]
    at net.minecraftforge.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:105) [DirectoryDiscoverer.class:?]
    at net.minecraftforge.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:105) [DirectoryDiscoverer.class:?]
    at net.minecraftforge.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:105) [DirectoryDiscoverer.class:?]
    at net.minecraftforge.fml.common.discovery.DirectoryDiscoverer.discover(DirectoryDiscoverer.java:63) [DirectoryDiscoverer.class:?]
    at net.minecraftforge.fml.common.discovery.ContainerType.findMods(ContainerType.java:49) [ContainerType.class:?]
    at net.minecraftforge.fml.common.discovery.ModCandidate.explore(ModCandidate.java:78) [ModCandidate.class:?]
    at net.minecraftforge.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:141) [ModDiscoverer.class:?]
    at net.minecraftforge.fml.common.Loader.identifyMods(Loader.java:395) [Loader.class:?]
    at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:535) [Loader.class:?]
    at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:229) [FMLClientHandler.class:?]
    at net.minecraft.client.Minecraft.init(Minecraft.java:478) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:387) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    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_121]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:26) [start/:?]
Caused by: java.lang.IllegalArgumentException: The modid myMods is not the same as it's lowercase version. Lowercasing will be enforced in 1.11
    at net.minecraftforge.fml.common.FMLModContainer.sanityCheckModId(FMLModContainer.java:150) ~[FMLModContainer.class:?]
    at net.minecraftforge.fml.common.FMLModContainer.<init>(FMLModContainer.java:132) ~[FMLModContainer.class:?]
    ... 32 more
[18:24:01] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[18:24:01] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, examplemod] at CLIENT
[18:24:01] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, examplemod] at SERVER
[18:24:02] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Example Mod
[18:24:02] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[18:24:02] [Client thread/INFO] [FML]: Found 444 ObjectHolder annotations
[18:24:02] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[18:24:02] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[18:24:02] [Client thread/INFO] [FML]: Applying holder lookups
[18:24:02] [Client thread/INFO] [FML]: Holder lookups applied
[18:24:02] [Client thread/INFO] [FML]: Applying holder lookups
[18:24:02] [Client thread/INFO] [FML]: Holder lookups applied
[18:24:02] [Client thread/INFO] [FML]: Applying holder lookups
[18:24:02] [Client thread/INFO] [FML]: Holder lookups applied
[18:24:02] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[18:24:02] [Client thread/INFO] [FML]: Applying holder lookups
[18:24:02] [Client thread/INFO] [FML]: Holder lookups applied
[18:24:02] [Client thread/INFO] [FML]: Injecting itemstacks
[18:24:02] [Client thread/INFO] [FML]: Itemstack injection complete
[18:24:02] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[18:24:03] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Found status: UP_TO_DATE Target: null
[18:24:05] [Sound Library Loader/INFO]: Starting up SoundSystem...
[18:24:06] [Thread-8/INFO]: Initializing LWJGL OpenAL
[18:24:06] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[18:24:06] [Thread-8/INFO]: OpenAL initialized.
[18:24:06] [Sound Library Loader/INFO]: Sound engine started
[18:24:11] [Client thread/INFO] [FML]: Max texture size: 16384
[18:24:11] [Client thread/INFO]: Created: 16x16 textures-atlas
[18:24:11] [Client thread/INFO]: [STDOUT]: DIRT BLOCK >> tile.dirt
[18:24:11] [Client thread/INFO] [FML]: Injecting itemstacks
[18:24:11] [Client thread/INFO] [FML]: Itemstack injection complete
[18:24:11] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods
[18:24:11] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Example Mod
[18:24:14] [Client thread/INFO]: SoundSystem shutting down...
[18:24:14] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[18:24:14] [Sound Library Loader/INFO]: Starting up SoundSystem...
[18:24:15] [Thread-10/INFO]: Initializing LWJGL OpenAL
[18:24:15] [Thread-10/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[18:24:15] [Thread-10/INFO]: OpenAL initialized.
[18:24:15] [Sound Library Loader/INFO]: Sound engine started
[18:24:18] [Client thread/INFO] [FML]: Max texture size: 16384
[18:24:19] [Client thread/INFO]: Created: 512x512 textures-atlas
[18:24:20] [Client thread/WARN]: Skipping bad option: lastServer:
[18:24:21] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id

 

 

Cheers for any guidance over what is probably a minor error that I can't find.

 

Airfix
 

Posted
1 hour ago, Leomelonseeds said:

Your mod id MUST be all lowercase.

Doh!  That's very frustrating.

 

Did that change recently?  I don't remember that before.  Ah well, it works now.   I knew it would be something simple.

 

Cheers,

 

Airfix

Posted

It is new with 1.11, yes.  It has been recommended since at least 1.10, though I'm not sure when.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

Lower case mod ID has been SoP since at least 1.7.2 (spring 2014) when I started modding.

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.

  • 6 months later...
Posted

I'm glad someone posted where I was stuck on Gupta's tutorial.

I want to add something in case people make the same mistake I do. In the line public static final String MODID = "myMod";, you need to change "myMod" to the name of your mod file. For the sake of example, "myMod" should say "Main".

Found this out as a last attempt to figure out what the problem was for over an hour.

Have fun.

Posted (edited)
18 hours ago, Wabefuhon said:

I'm glad someone posted where I was stuck on Gupta's tutorial.

I want to add something in case people make the same mistake I do. In the line public static final String MODID = "myMod";, you need to change "myMod" to the name of your mod file. For the sake of example, "myMod" should say "Main".

Found this out as a last attempt to figure out what the problem was for over an hour.

Have fun.

Your modid field has nothing to do with forge. You're just passing its value to @Mod annotation, and that's it. It's just a string to store it, so you don't have to write your modid manually to every thing which needs it.
And please, don't name your fields how you want to, follow the convention. There's already a lot of unnecessary whitespaces in your code.

Edited by MrBendelScrolls

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.