1

Need help. Unsure how to compress mod for Minecraft Forge.

BobTheGodly's Avatar BobTheGodly4/5/13 8:26 am
4/7/2013 1:17 am
BobTheGodly's Avatar BobTheGodly
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
Posted by BobTheGodly's Avatar
BobTheGodly
Level 48 : Master Modder
36

Create an account or sign in to comment.

16

1
04/07/2013 1:17 am
Level 48 : Master Modder
BobTheGodly
BobTheGodly's Avatar
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.
1
04/05/2013 11:34 pm
Level 51 : Grandmaster Narwhal
Giraffestock
Giraffestock's Avatar
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.
1
04/05/2013 11:28 pm
Level 48 : Master Modder
BobTheGodly
BobTheGodly's Avatar
I will probably try recompiling it again from the beginning but it is probably packed wrong. I will also double check the class references.
1
04/05/2013 7:32 pm
Level 36 : Artisan Modder
IAmChosen
IAmChosen's Avatar
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
1
04/05/2013 10:45 am
Level 48 : Master Modder
BobTheGodly
BobTheGodly's Avatar
so I need a java,lang.class file in my mod?
1
04/05/2013 10:13 am
Level 48 : Master Modder
BobTheGodly
BobTheGodly's Avatar
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.
1
04/05/2013 10:15 am
Level 57 : Grandmaster Pegasus
DasDuriel
DasDuriel's Avatar
nope

cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException:

java.lang.class <<< filename
not found <<< the problem

yes its that easy
1
04/05/2013 10:03 am
Level 57 : Grandmaster Pegasus
DasDuriel
DasDuriel's Avatar
cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException:
1
04/05/2013 10:00 am
Level 48 : Master Modder
BobTheGodly
BobTheGodly's Avatar
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
1
04/05/2013 9:32 am
Level 68 : High Grandmaster Modder
Jt9
Jt9's Avatar
Post your error log here, so we can see what's causing the crash.
1
04/05/2013 9:28 am
Level 36 : Artisan Modder
_Skyden_
_Skyden_'s Avatar
Have you recompiled your .java src files into .class files?
1
04/05/2013 8:49 am
Level 48 : Master Modder
BobTheGodly
BobTheGodly's Avatar
I use a package I tried without the extra folders and the .rar doesnt do anything.
the .zip causes a crash.
1
04/05/2013 8:40 am
Level 24 : Expert Network
NOTAVALIABLE
NOTAVALIABLE's Avatar
yeah everytime i open rar i get windows media center :/
1
04/05/2013 8:37 am
Level 57 : Grandmaster Pegasus
DasDuriel
DasDuriel's Avatar
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
1
04/05/2013 8:36 am
Level 48 : Master Modder
BobTheGodly
BobTheGodly's Avatar
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.
1
04/05/2013 8:30 am
Level 57 : Grandmaster Pegasus
DasDuriel
DasDuriel's Avatar
so you can code but dont know basic compression?
strange

get winrar or 7zip and compress it as an .rar
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome