Jump to content

Recommended Posts

Posted

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?

Posted

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

Posted

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.

Posted
  On 11/15/2015 at 11:30 AM, ovikk said:

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

Posted
  On 11/15/2015 at 12:36 PM, shadowfacts said:

  Quote

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.

Posted

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": []
}
]

Posted
  On 11/15/2015 at 3:24 PM, Macintoshuser_2 said:

[
{
  "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.

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • The problem occurs also in 1.20.1 Forge, but with an "Error executing task on client" instead. I have "Sinytra Connector" installed. On 1.21.5 Fabric, there is no problem. When this happens, the chat message before the death screen appears gets sent, with an extra dash added.
    • Well, as usual, it was user error. Naming mismatch in sounds.json.  Please delete this post if you find it necessary. 
    • Hello Forge community.  I'm running into an issue with a mod I'm working on.  To preface, I can call /playsound modId:name music @a and I can hear the sound I registered being played in game. Great!  However, I cannot get it to trigger via my mod code.    Registration: public static final RegistryObject<SoundEvent> A_WORLD_OF_MADNESS = SOUND_EVENTS.register("a_world_of_madness", () -> new SoundEvent(new ResourceLocation("tetheredsouls", "a_world_of_madness")));   Playback: Minecraft mc = Minecraft.getInstance(); if (!(mc.player instanceof LocalPlayer) || mc.level == null) return; LocalPlayer player = (LocalPlayer) mc.player; BlockPos pos = player.blockPosition(); SoundEvent track = ModSounds.A_WORLD_OF_MADNESS.get(); System.out.println(track); System.out.println(pos); System.out.println(player); // play exactly like the tutorial: client-only, at the player's position try { mc.level.playLocalSound( player.getX(), player.getY(), player.getZ(), track, SoundSource.MUSIC, // Or MASTER if needed 1f, 1f, false ); System.out.println("[DEBUG] playSound success: " + track.getLocation()); } catch (Exception e) { System.err.println("[ERROR] Failed to play sound: " + track.getLocation()); e.printStackTrace(); } Sounds.json:   { "theme_of_laura": { "category": "music", "sounds": [ { "name": "tetheredsouls:a_world_of_madness", "stream": true } ] } } Things I have tried: - multiple .ogg files. Short .ogg files (5 seconds, <100KB).  - default minecraft sounds imported from import net.minecraft.sounds.SoundEvents; These work given my code. No idea why these are different.  - playSound() method, as well as several others in past iterations that did not work   I would be forever grateful if somebody could point me in the right direction. I've looked at several mod github repositories and found extremely similar code to what I'm doing. I've also found several threads in this forum that did not solve my issue. I just cannot figure out what I'm doing differently, and why I'm able to queue sounds manually with playsound but the code won't play it (despite confirming the code is being run with the debug statements.)
    • Delete the tensura-reincarnated/common.toml file (config folder)
  • Topics

×
×
  • Create New...

Important Information

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