1
Need help. Unsure how to compress mod for Minecraft Forge.
I am trying to figure out how to get my mod to install into Minecraft using Forge. My coding is not in error I have tested it in the API several times. All I need to know is how to compress my mod and install it.
I know It is .zip compression
I know the .zip file goes into the mods folder in .minecraft
I know It is .zip compression
I know the .zip file goes into the mods folder in .minecraft
Create an account or sign in to comment.
16
Ok I fixed the error myself and got the whole mess sorted out thanks to the help I received. I thank you all who were willing to take time out of your lives to help me.
You simple run recompile.bat/sh, and then run reobfuscate.bat/sh. If this outprints any errors, or you have future issues, feel free to come by #MinecraftForge on esper.net.
I will probably try recompiling it again from the beginning but it is probably packed wrong. I will also double check the class references.
No. That means one of your classes is referring to a class that doesn't exist. You either recompiled it wrong, or aren't packaging it correctly
so I need a java,lang.class file in my mod?
All I know is that is has something to do with where to put the folders in the .zip file, and how they are named.
nope
cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException:
java.lang.class <<< filename
not found <<< the problem
yes its that easy
cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException:
java.lang.class <<< filename
not found <<< the problem
yes its that easy
cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException:
Here is the error report.
Click to reveal
---- Minecraft Crash Report ----
// I blame Dinnerbone.
Time: 4/5/13 7:45 AM
Description: Failed to start game
cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: mods.EvolvingSwordsMod.common.bob
at cpw.mods.fml.common.LoadController.transition(LoadController.java:142)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:512)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:407)
at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56)
at net.minecraft.client.Minecraft.run(Minecraft.java:729)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ClassNotFoundException: mods.EvolvingSwordsMod.common.bob
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:211)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:56)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:446)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:502)
... 5 more
Caused by: java.lang.NullPointerException
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:200)
... 32 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.5.1
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.7.0_05, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 329124680 bytes (313 MB) / 519110656 bytes (495 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 2 total; -Xms512m -Xmx1024m
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.44 FML v5.1.8.611 Minecraft Forge 7.7.1.611 4 mods loaded, 4 mods active
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML [Forge Mod Loader] (coremods) Unloaded->Constructed
Forge [Minecraft Forge] (coremods) Unloaded->Constructed
Evolving_Swords [EvolvingSwords+] (mega.zip) Unloaded->Errored
LWJGL: 2.4.2
OpenGL: AMD Radeon HD 6310 Graphics GL version 4.1.10834 Compatibility Profile Context, ATI Technologies Inc.
Is Modded: Definitely; Client brand changed to 'forge,fml'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
// I blame Dinnerbone.
Time: 4/5/13 7:45 AM
Description: Failed to start game
cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: mods.EvolvingSwordsMod.common.bob
at cpw.mods.fml.common.LoadController.transition(LoadController.java:142)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:512)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:407)
at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56)
at net.minecraft.client.Minecraft.run(Minecraft.java:729)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ClassNotFoundException: mods.EvolvingSwordsMod.common.bob
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:211)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:56)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:446)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:502)
... 5 more
Caused by: java.lang.NullPointerException
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:200)
... 32 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.5.1
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.7.0_05, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 329124680 bytes (313 MB) / 519110656 bytes (495 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 2 total; -Xms512m -Xmx1024m
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.44 FML v5.1.8.611 Minecraft Forge 7.7.1.611 4 mods loaded, 4 mods active
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML [Forge Mod Loader] (coremods) Unloaded->Constructed
Forge [Minecraft Forge] (coremods) Unloaded->Constructed
Evolving_Swords [EvolvingSwords+] (mega.zip) Unloaded->Errored
LWJGL: 2.4.2
OpenGL: AMD Radeon HD 6310 Graphics GL version 4.1.10834 Compatibility Profile Context, ATI Technologies Inc.
Is Modded: Definitely; Client brand changed to 'forge,fml'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
Post your error log here, so we can see what's causing the crash.
Have you recompiled your .java src files into .class files?
I use a package I tried without the extra folders and the .rar doesnt do anything.
the .zip causes a crash.
the .zip causes a crash.
yeah everytime i open rar i get windows media center :/
woops my bad i meant .rar
are you sure you are not compressing the folder with your mod inside?
if you open the .rar you should see your mod files not a folder
are you sure you are not compressing the folder with your mod inside?
if you open the .rar you should see your mod files not a folder
I tried compressing it as a .rar file. Minecraft loads and Forge works but My mod doesn't show up.
When I try as a .zip file Minecraft doesn't load I just get a black screen.
When I try as a .zip file Minecraft doesn't load I just get a black screen.
so you can code but dont know basic compression?
strange
get winrar or 7zip and compress it as an .rar
strange
get winrar or 7zip and compress it as an .rar