Jump to content

Forge 1.7.10 will not recognize my mod's jar as a mod file


Macintoshuser_2

Recommended Posts

Upon testing a fully compiled version of my mod outside of the development environment, Forge will not detect it as a mod file, thus ignoring it.

 

 

the console output:

 

[23:10:54] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[23:10:54] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[23:10:54] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[23:10:54] [main/INFO] [FML]: Forge Mod Loader version 7.99.30.1492 for Minecraft 1.7.10 loading
[23:10:54] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_25, running on Windows 7:amd64:6.1, installed at C:\Program Files (x86)\Minecraft\runtime\jre-x64\1.8.0_25
[23:10:54] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[23:10:54] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[23:10:54] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[23:10:54] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[23:10:54] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[23:10:55] [main/INFO] [FML]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557
[23:10:55] [main/INFO] [FML]: Found valid fingerprint for Minecraft. Certificate fingerprint cd99959656f753dc28d863b46769f7f8fbaefcfc
[23:10:55] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[23:10:55] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[23:10:56] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
[23:10:56] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
[23:10:56] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[23:10:57] [main/INFO]: Setting user: thatguybrony
[23:10:57] [main/INFO] [sTDOUT]: [net.minecraft.client.main.Main:main:144]: Completely ignored arguments: [--nativeLauncherVersion, 286]
[23:10:57] [Client thread/INFO]: LWJGL Version: 2.9.1
[23:10:58] [Client thread/INFO] [sTDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----
// Would you like a cupcake?

Time: 11/15/15 11:10 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.7.10
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 420403984 bytes (400 MB) / 521404416 bytes (497 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: 
GL info: ' Vendor: 'Intel' Version: '4.3.0 - Build 10.18.14.4264' Renderer: 'Intel(R) HD Graphics 4600'
[23:10:58] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[23:10:58] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1492 Initialized
[23:10:58] [Client thread/INFO] [FML]: Replaced 183 ore recipies
[23:10:58] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[23:10:58] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[23:10:58] [Client thread/INFO] [FML]: Searching C:\Users\Josh the Gamer\AppData\Roaming\.minecraft\mods for mods
[23:11:04] [Client thread/WARN] [FML]: Zip file MacsUtilitiesMod-1.7.10-v1.0-FULL.jar failed to read properly, it will be ignored
java.lang.NullPointerException
at cpw.mods.fml.common.MetadataCollection.from(MetadataCollection.java:71) ~[MetadataCollection.class:?]
at cpw.mods.fml.common.discovery.JarDiscoverer.discover(JarDiscoverer.java:53) [JarDiscoverer.class:?]
at cpw.mods.fml.common.discovery.ContainerType.findMods(ContainerType.java:42) [ContainerType.class:?]
at cpw.mods.fml.common.discovery.ModCandidate.explore(ModCandidate.java:71) [ModCandidate.class:?]
at cpw.mods.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:131) [ModDiscoverer.class:?]
at cpw.mods.fml.common.Loader.identifyMods(Loader.java:364) [Loader.class:?]
at cpw.mods.fml.common.Loader.loadMods(Loader.java:489) [Loader.class:?]
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480) [bao.class:?]
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) [bao.class:?]
at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_25]
at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_25]
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:?]
[23:11:04] [Client thread/INFO] [FML]: Forge Mod Loader has identified 3 mods to load
[23:11:04] [Client thread/INFO] [FML]: FML has found a non-mod file MacsUtilitiesMod-1.7.10-v1.0-FULL.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.
[23:11:04] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge] at CLIENT
[23:11:04] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge] at SERVER
[23:11:04] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, Datacraft64x v3.4
[23:11:04] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[23:11:04] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
[23:11:04] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[23:11:04] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[23:11:04] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[23:11:04] [Client thread/INFO] [FML]: Applying holder lookups
[23:11:04] [Client thread/INFO] [FML]: Holder lookups applied
[23:11:04] [Client thread/INFO] [FML]: Injecting itemstacks
[23:11:04] [Client thread/INFO] [FML]: Itemstack injection complete
[23:11:04] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[23:11:04] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[23:11:05] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[23:11:05] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[23:11:05] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[23:11:05] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[23:11:05] [sound Library Loader/INFO]: Sound engine started
[23:11:05] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas
[23:11:05] [Client thread/INFO]: Created: 16x16 textures/items-atlas
[23:11:05] [Client thread/INFO] [FML]: Injecting itemstacks
[23:11:05] [Client thread/INFO] [FML]: Itemstack injection complete
[23:11:05] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 3 mods
[23:11:05] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, Datacraft64x v3.4
[23:11:06] [Client thread/INFO]: Created: 2048x1024 textures/blocks-atlas
[23:11:06] [Client thread/INFO]: Created: 1024x1024 textures/items-atlas
[23:11:06] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[23:11:06] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...
[23:11:06] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
[23:11:06] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[23:11:06] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[23:11:06] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[23:11:06] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[23:11:06] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[23:11:06] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[23:11:07] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[23:11:07] [sound Library Loader/INFO]: Sound engine started
[23:11:12] [Client thread/INFO]: Stopping!
[23:11:12] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[23:11:12] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...
[23:11:12] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
[23:11:12] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 

 

How can i fix this issue?

Link to comment
Share on other sites

My first idea would be something happened when the jar was created. How did you create the jar?

“Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program.” - Linus Torvalds

Link to comment
Share on other sites

Looking closer at the error log, it says:

Zip file MacsUtilitiesMod-1.7.10-v.1-FULL.jar

 

Are you sure your file is a jar file and not a zip file?

I might be terribly wrong.. Like really, really wrong. But I'm just trying to help.

Link to comment
Share on other sites

Are you sure your file is a jar file and not a zip file?

 

No, a .jar file is a .zip file with a different extension. Try renaming a .jar to .zip, you can then open it up with whatever extraction program you like.

 

OP, the error specifically happens when FML is trying to parse your mod metadata (the mcmod.info) file. Can you post that?

Don't make mods if you don't know Java.

Check out my website: http://shadowfacts.net

Developer of many mods

Link to comment
Share on other sites

Are you sure your file is a jar file and not a zip file?

 

No, a .jar file is a .zip file with a different extension. Try renaming a .jar to .zip, you can then open it up with whatever extraction program you like.

 

Okay.. Learned something new today! :)

 

I might be terribly wrong.. Like really, really wrong. But I'm just trying to help.

Link to comment
Share on other sites

I had an mcmod.info file in the folder along side the assets folder and when I tried to build it, It didn't work. I did the traditional "gradlew build" command in the command prompt to try to build it and it didn't work so now this error happened. Luckily, I have the mcmod.info file still on my computer. here is the content of the file:

 

 

[
{
  "modid": "macid",
  "name": "Mac Mod",
  "description": "Adds in new stones, materials, weapons, tools and more!",
  "version": "{1.0",
  "mcversion": "${1.7.10}",
  "url": "",
  "updateUrl": "",
  "authorList": ["Macintoshuser_2"],
  "credits": "",
  "logoFile": "",
  "screenshots": [],
  "dependencies": []
}
]

Link to comment
Share on other sites

[
{
  "modid": "macid",
  "name": "Mac Mod",
  "description": "Adds in new stones, materials, weapons, tools and more!",
  "version": "{1.0",
  "mcversion": "${1.7.10}",
  "url": "",
  "updateUrl": "",
  "authorList": ["Macintoshuser_2"],
  "credits": "",
  "logoFile": "",
  "screenshots": [],
  "dependencies": []
}
]

The version should be "1.0", not "{1.0", and the mcversion should be "1.7.10", not "${1.7.10}"

 

I don't know if this will take effect, but it's worth a try

I might be terribly wrong.. Like really, really wrong. But I'm just trying to help.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

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