@Override
public void registerRenderers() {
// This is for rendering entities and so forth later on
}
}
and my server proxy looks like this:
package tutorial.basic;
public class CommonProxy {
// Client stuff
public void registerRenderers() {
// Nothing here as the server doesn't render graphics or entities!
}
}
if you need my "main" class I can post the text as well, I dont know how to use spoilers
Provided that the proxies are set up properly you will create a new method in your client proxy (or use the existing one) and add the code from the tutorial to that. You can then do proxy.registerRenders(); in the main class.
Hey I have been trying to use your tutorial for a while but I still just cant get it to work I have everything from the tutorial typed down correctly, I have the method in my server proxy(for the sake of having to have the same methods in client and server) and I have in my main mod class under load proxy.addModerCapes(); is there anything that I am missing? Capes are something I have been trying to find a tutorial on for a while and I am very excited for this.
Can you paste your code for me? Also can you explain the full extent of what you're trying to do?
Well i tried to use that group thing, and also saw a "getArrayFromURL"... but i'm not really sure how to use them.. the group thing used an Array, which i though i was doing right (probably wasn't though) but it kept underlining something....
I saw that get array thing and thought - i think this take something from online, kinda like what my updater does. So i made a txt file with what i thought was an array like this - "Beatbox_Man", "link to pic" i don't think that's right, but i also put "[]" around it and that didn't do anything... I couldn't get the preview link for that, as it was a txt file, so i did some html in it (like what my updater has on google drive) and then i could get the preview link.... but it still didn't work..
Does this code work for when i add or edit that list on google drive, it changes in game? So lets say i want to add someone to the list that has a custom cape. I edit the file, then upload it to the google drive, and then in game, that person who i added gets his custom cape? Cause if i want to add someone for the list, right now i have the custom ppls capes hard coded in game, so if someone new wanted one, they'd have to wait for the next update...
that's pretty much what i'm tryin to do... idk if i'm doing those arrays right.. i'm not to good when those...
I took out that grouped cape thing as it was giving me an error and those "addCape" work, but i don't really want them hard coded in the mod... in case if i need to change or do something, all the person has to do it close the game and open it or something and it's been updated...
I can't seem to get this to work for server... i think i have to do something with the client and common proxy, i've done something and nothing worked..
2014-03-18 00:36:01 [SEVERE] [ForgeModLoader] Caught exception from mod_MoreBlocks
java.lang.NoClassDefFoundError: net/minecraft/client/renderer/texture/TextureObject
at com.mce.common.mod_MoreBlocks.capeRegistry(mod_MoreBlocks.java:3633)
at com.mce.common.mod_MoreBlocks.load(mod_MoreBlocks.java:3628)
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:606)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545)
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:606)
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:313)
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.sendEventToModContainer(LoadController.java:201)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)
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:606)
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:313)
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:112)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:699)
at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:107)
at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:355)
at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:142)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.renderer.texture.TextureObject
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 34 more
Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/renderer/texture/TextureObject for invalid side SERVER
at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:50)
at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:274)
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:172)
... 36 more
2014-03-18 00:36:01 [INFO] [STDERR] cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/renderer/texture/TextureObject
2014-03-18 00:36:01 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:156)
2014-03-18 00:36:01 [INFO] [STDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:700)
2014-03-18 00:36:01 [INFO] [STDERR] at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:107)
2014-03-18 00:36:01 [INFO] [STDERR] at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:355)
2014-03-18 00:36:01 [INFO] [STDERR] at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:142)
2014-03-18 00:36:01 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)
2014-03-18 00:36:01 [INFO] [STDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2014-03-18 00:36:01 [INFO] [STDERR] Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/renderer/texture/TextureObject
I can't seem to get this to work for server... i think i have to do something with the client and common proxy, i've done something and nothing worked..
2014-03-18 00:36:01 [SEVERE] [ForgeModLoader] Caught exception from mod_MoreBlocks
java.lang.NoClassDefFoundError: net/minecraft/client/renderer/texture/TextureObject
at com.mce.common.mod_MoreBlocks.capeRegistry(mod_MoreBlocks.java:3633)
at com.mce.common.mod_MoreBlocks.load(mod_MoreBlocks.java:3628)
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:606)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545)
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:606)
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:313)
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.sendEventToModContainer(LoadController.java:201)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)
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:606)
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:313)
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:112)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:699)
at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:107)
at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:355)
at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:142)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.renderer.texture.TextureObject
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 34 more
Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/renderer/texture/TextureObject for invalid side SERVER
at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:50)
at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:274)
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:172)
... 36 more
2014-03-18 00:36:01 [INFO] [STDERR] cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/renderer/texture/TextureObject
2014-03-18 00:36:01 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:156)
2014-03-18 00:36:01 [INFO] [STDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:700)
2014-03-18 00:36:01 [INFO] [STDERR] at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:107)
2014-03-18 00:36:01 [INFO] [STDERR] at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:355)
2014-03-18 00:36:01 [INFO] [STDERR] at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:142)
2014-03-18 00:36:01 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)
2014-03-18 00:36:01 [INFO] [STDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2014-03-18 00:36:01 [INFO] [STDERR] Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/renderer/texture/TextureObject
The issue here is that you're trying to run the cape code on the server side, this won't work. What you should do is remove the cape handler and put all of its methods in the common and client proxy. Make sure all the server sided methods are empty and that none of the proxy methods being used are static. Then in your main class you can call proxy.addCape("");
The issue here is that you're trying to run the cape code on the server side, this won't work. What you should do is remove the cape handler and put all of its methods in the common and client proxy. Make sure all the server sided methods are empty and that none of the proxy methods being used are static. Then in your main class you can call proxy.addCape("");
ok i did it, but it still gives me an error.. I got rid of that capehandler and what was in it i put in client and common proxy, gave me error, so then i tried without in common, then without it in client. still gave me errors. I also got rid of "capeRegistry" and just moved the "proxy.addcape("");" to the load method in the main class...
the "proxy" thing is set to this at the top of my main class - "public CommonProxy proxy;"
and here's the error log -
[SEVERE] Encountered an unexpected exception LoaderException
cpw.mods.fml.common.LoaderException: cpw.mods.fml.common.LoaderException
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:75)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:524)
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:606)
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:313)
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.sendEventToModContainer(LoadController.java:201)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)
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:606)
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:313)
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:112)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:511)
at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:99)
at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:350)
at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:69)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
Caused by: cpw.mods.fml.common.LoaderException
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:63)
... 28 more
ok well i took them out completely just so i can add other stuff cause it kept crashing, and it still is crashing and complaining about Proxy Injector... how?! i don't even have the cape stuff in what so ever
Edit: Well i'ma take my mod out and reinstall the forge.... i may have did something in a base class..
Edit2: ah, i found what was wrong.... well now that i fixed it, capes work, but still crashed for server
ok well i took them out completely just so i can add other stuff cause it kept crashing, and it still is crashing and complaining about Proxy Injector... how?! i don't even have the cape stuff in what so ever
Edit: Well i'ma take my mod out and reinstall the forge.... i may have did something in a base class..
Edit2: ah, i found what was wrong.... well now that i fixed it, capes work, but still crashed for server
That suggests that you are using the proxy system wrong. Also if it crashes on server, as mentioned before you must put it in the client proxy.
Hey great tutorial! it all works but I want to make it so that everyone with my mod gets a cape; and I cant seem to figure it out. Do you know how this could be done?
Slabs- Bring easily place able upside down slabs back to minecraft!
Slabs- Bring easily place able upside down slabs back to minecraft!
Slabs- Bring easily place able upside down slabs back to minecraft!
package tutorial.basic.client;
import net.minecraftforge.client.MinecraftForgeClient;
import tutorial.basic.CommonProxy;
public class ClientProxy extends CommonProxy {
@Override
public void registerRenderers() {
// This is for rendering entities and so forth later on
}
}
and my server proxy looks like this:
package tutorial.basic;
public class CommonProxy {
// Client stuff
public void registerRenderers() {
// Nothing here as the server doesn't render graphics or entities!
}
}
if you need my "main" class I can post the text as well, I dont know how to use spoilers
Provided that the proxies are set up properly you will create a new method in your client proxy (or use the existing one) and add the code from the tutorial to that. You can then do proxy.registerRenders(); in the main class.
Thanks glad you like it
Farewell everyone o/
Thanks for any help you offer,
Yep, that's how the forge proxy system works
Farewell everyone o/
E
Can you paste your code for me? Also can you explain the full extent of what you're trying to do?
Farewell everyone o/
Well i tried to use that group thing, and also saw a "getArrayFromURL"... but i'm not really sure how to use them.. the group thing used an Array, which i though i was doing right (probably wasn't though) but it kept underlining something....
I saw that get array thing and thought - i think this take something from online, kinda like what my updater does. So i made a txt file with what i thought was an array like this - "Beatbox_Man", "link to pic" i don't think that's right, but i also put "[]" around it and that didn't do anything... I couldn't get the preview link for that, as it was a txt file, so i did some html in it (like what my updater has on google drive) and then i could get the preview link.... but it still didn't work..
Does this code work for when i add or edit that list on google drive, it changes in game? So lets say i want to add someone to the list that has a custom cape. I edit the file, then upload it to the google drive, and then in game, that person who i added gets his custom cape? Cause if i want to add someone for the list, right now i have the custom ppls capes hard coded in game, so if someone new wanted one, they'd have to wait for the next update...
that's pretty much what i'm tryin to do... idk if i'm doing those arrays right.. i'm not to good when those...
But here's some of the code -
I took out that grouped cape thing as it was giving me an error and those "addCape" work, but i don't really want them hard coded in the mod... in case if i need to change or do something, all the person has to do it close the game and open it or something and it's been updated...
E
"The method loadTexture(ResourceLocation, TextureObject) is undefined for the type
TextureManager"
Here is my code:
Here's the code -
In Main class -
In the "load" method is --- "capeRegistry();"
Client and common proxy have -
public void capeRegistry(){
}
Here's the server crash report -
2014-03-18 00:36:01 [SEVERE] [ForgeModLoader] Caught exception from mod_MoreBlocks
java.lang.NoClassDefFoundError: net/minecraft/client/renderer/texture/TextureObject
at com.mce.common.mod_MoreBlocks.capeRegistry(mod_MoreBlocks.java:3633)
at com.mce.common.mod_MoreBlocks.load(mod_MoreBlocks.java:3628)
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:606)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545)
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:606)
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:313)
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.sendEventToModContainer(LoadController.java:201)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)
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:606)
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:313)
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:112)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:699)
at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:107)
at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:355)
at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:142)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.renderer.texture.TextureObject
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 34 more
Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/renderer/texture/TextureObject for invalid side SERVER
at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:50)
at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:274)
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:172)
... 36 more
2014-03-18 00:36:01 [INFO] [STDERR] cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/renderer/texture/TextureObject
2014-03-18 00:36:01 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:156)
2014-03-18 00:36:01 [INFO] [STDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:700)
2014-03-18 00:36:01 [INFO] [STDERR] at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:107)
2014-03-18 00:36:01 [INFO] [STDERR] at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:355)
2014-03-18 00:36:01 [INFO] [STDERR] at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:142)
2014-03-18 00:36:01 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)
2014-03-18 00:36:01 [INFO] [STDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2014-03-18 00:36:01 [INFO] [STDERR] Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/renderer/texture/TextureObject
E
The issue here is that you're trying to run the cape code on the server side, this won't work. What you should do is remove the cape handler and put all of its methods in the common and client proxy. Make sure all the server sided methods are empty and that none of the proxy methods being used are static. Then in your main class you can call proxy.addCape("");
Farewell everyone o/
ok i did it, but it still gives me an error.. I got rid of that capehandler and what was in it i put in client and common proxy, gave me error, so then i tried without in common, then without it in client. still gave me errors. I also got rid of "capeRegistry" and just moved the "proxy.addcape("");" to the load method in the main class...
the "proxy" thing is set to this at the top of my main class - "public CommonProxy proxy;"
and here's the error log -
[SEVERE] Encountered an unexpected exception LoaderException
cpw.mods.fml.common.LoaderException: cpw.mods.fml.common.LoaderException
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:75)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:524)
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:606)
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:313)
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.sendEventToModContainer(LoadController.java:201)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)
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:606)
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:313)
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:112)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:511)
at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:99)
at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:350)
at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:69)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
Caused by: cpw.mods.fml.common.LoaderException
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:63)
... 28 more
E
Edit: Well i'ma take my mod out and reinstall the forge.... i may have did something in a base class..
Edit2: ah, i found what was wrong.... well now that i fixed it, capes work, but still crashed for server
E
That suggests that you are using the proxy system wrong. Also if it crashes on server, as mentioned before you must put it in the client proxy.
Farewell everyone o/
ok well then idk how to use the stupid proxy system.. so what ever tut i followed was probably wrong then
E