CookieCake
-
Posts
6 -
Joined
-
Last visited
Posts posted by CookieCake
-
-
Ok thanks. I also found another way, just have to choose which one I want to use
-
I'm getting an error when I use ModLoader.addArmor to add armor on SMP and I know there is an other way to do it.
LexManos told me to look for an open source armor mod, but I just couldn't find one.
I also looked hours for a good tutorial, but I couldn't find one. So could someone tell me how to do it?
-
Ok, but then there isn't a universal code anymore.
-
Ok, thanks.
Do you know a solution for it?
-
When I try to use a mod which uses ModLoader.addArmor() on a server, the server gives an error.
I thought it was a bug so I better post it here. This is the error report:
---- Minecraft Crash Report ---- // Shall we play a game? Time: 23-9-12 10:51 Description: Exception in server tick loop cpw.mods.fml.common.LoaderException: java.lang.reflect.InvocationTargetException at cpw.mods.fml.common.LoadController.transition(LoadController.java:102) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:641) at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:88) at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:357) at ft.b(DedicatedServer.java:111) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:415) at ep.run(SourceFile:539) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:371) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:124) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:81) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:640) ... 5 more Caused by: java.lang.NoSuchMethodError: ModLoader.addArmor(Ljava/lang/String;)I at miningmod.common.Miningmod.load(Miningmod.java:553) ... 31 more Relevant Details: - Minecraft Version: 1.3.2 - Operating System: Windows 7 (amd64) version 6.1 - Java Version: 1.7.0_07, Oracle Corporation - Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation - Memory: 62781128 bytes (59 MB) / 79495168 bytes (75 MB) up to 933953536 bytes (890 MB) - JVM Flags: 0 total; - FML: ~ERROR~ NullPointerException: null - Is Modded: Definitely; 'forge,fml' - Profiler Position: N/A (disabled) - Type: Dedicated Server
How to add armor without ModLoader.addArmor()?
in Modder Support
Posted
Made a function in my proxy class called addArmor, which returns 0.
So like:
proxy.addArmor("armorthing")