Blitex
-
Posts
23 -
Joined
-
Last visited
Posts posted by Blitex
-
-
14 minutes ago, Draco18s said:
OH MY GOD.
1) use the ModelRegistryEvent to register your models (where are you even calling registerRenders()?)
2) use ModelLoader.setCustomModelResourceLocation(), ModelMesher has been the wrong way to do things for over a year.
3) use getRegistryName(), not getUnlocalizedName().substring(5), this has been the wrongest way to do things for almost two years.
4) this is client-only code and you have it in a common class, this will crash the dedicated server, this has been wrong since forever.
What version are you even developing for? you should be using the RegistryEvent.Register<Item> event to register items, this has been true for a year.
Also, use setRegistryName() instead.
I am making a mod for 1.10.2 and I was just following a YouTube tutorial made 11 months ago
-
57 minutes ago, jabelar said:
The most important thing is actually your file names and locations of your assets. Also, I know that previously it was a bad idea to use upper case letters in any of your registry names or asset file names. So you need to:
change Riptide_Sword to riptide_sword and change RIPTIDESWORD to riptidesword and make sure all your file names match these as well. If you're still having problems after that you need to post a screen shot of your assets directory so we can see all the file names and locations.
Also, you are probably getting warntings in the console about missing models or textures so you should post the console log as well.
Ok I will do that.
-
I making a mod, but when I test the mod the texture doesn't show up.
Here's my ModItemspackage net.minecraft.client.renderer.entity.item; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.client.renderer.entity.tab.ModelsTab; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.util.ResourceLocation; import net.minecraftforge.fml.common.registry.GameRegistry; import noppes.mpm.MorePlayerModels; /** * Created by Alex Nava on 9/24/2017. */ public class ModItems { public static Item RiptideSword; public static void preInit(){ RiptideSword = new ItemTutorialItem("Riptide Sword"); registeritems(); } public static void registeritems() { GameRegistry.register(RiptideSword, new ResourceLocation(MorePlayerModels.MODID, "Riptide_Sword")); } public static void registerRenders(){ registerRender(RiptideSword); } public static void registerRender(Item item){ Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item,0,new ModelResourceLocation(MorePlayerModels.MODID + ":" + item.getUnlocalizedName().substring(5),"inventory")); } }
My Item
package net.minecraft.client.renderer.entity.item; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.item.EnumRarity; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.ActionResult; import net.minecraft.util.EnumActionResult; import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumHand; import net.minecraft.util.math.BlockPos; import net.minecraft.util.text.TextComponentString; import net.minecraft.world.World; import noppes.mpm.MorePlayerModels; import java.util.List; /** * Created by Alex Nava on 9/24/2017. */ public class ItemTutorialItem extends Item { public ItemTutorialItem(String name) { setUnlocalizedName(name); setCreativeTab(MorePlayerModels.modelsTab); setMaxStackSize(1); } @Override public boolean hasEffect(ItemStack stack) { return true; } @Override public EnumRarity getRarity(ItemStack stack) { return EnumRarity.EPIC; } @Override public void addInformation(ItemStack stack, EntityPlayer playerIn, List<String> tooltip, boolean advanced) { tooltip.add("Carried by the mighty Sky or Percy"); super.addInformation(stack, playerIn, tooltip, advanced); } @Override public ActionResult<ItemStack> onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer player, EnumHand hand) { return super.onItemRightClick(itemStackIn, worldIn, player, hand); } @Override public EnumActionResult onItemUse(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) { if (worldIn.getBlockState(pos).getBlock()== Blocks.GRASS){ worldIn.setBlockState(pos, Blocks.DIAMOND_BLOCK.getDefaultState()); return EnumActionResult.SUCCESS; } return EnumActionResult.PASS; } }
And my JSON
{ "parent": "item/handheld", "textures": { "layer0": "moreplayermodels:items/RIPTIDESWORD" } }
-
2 minutes ago, Draco18s said:
Ok, why is this:
Inside the net.minecraft package? Much less inside client entity rendering?
Then you have a chunk in GlactiCraft
And you've duplicated all of MorePlayerModels (pretty sure you shouldn't be doing this)
https://github.com/Blitex/moreplayermodels/tree/master/src/main/java/noppes/mpmI'm not sure where the heck your code actually is.
About MorePlayerModels code, Noppes let me edit his mod so I can practice coding and so I could add obj models which I'll do later I'll make the items with the textures I want. I'll quote you once I'm done making the item.
-
50 minutes ago, Draco18s said:
Show what you've tried.
-
I want to add an item where when you right click it turns to a sword and when you right click again it turns back to an item. Can anyone help?
-
12 minutes ago, Busti said:
Sorry I do not have a dropbox accoount. Also that link is not valid.
It would probably be best if you just posted your code here. Just remember to use the code button in the editor to properly format your text.
Minecraftforge does supply its own .obj loader, so that would be a good thing to look into.
You also have to supply and register your own net.minecraft.renderer.entity.Render
The Render's doRender() method is where you want to render your .obj model.
You'll find the .obj model loader and related classes in net.minecraftforge.client.model.obj and net.minecraftforge.client.modelI got it here it is
-
8 minutes ago, Busti said:
Sorry I do not have a dropbox accoount. Also that link is not valid.
It would probably be best if you just posted your code here. Just remember to use the code button in the editor to properly format your text.
Minecraftforge does supply its own .obj loader, so that would be a good thing to look into.
You also have to supply and register your own net.minecraft.renderer.entity.Render
The Render's doRender() method is where you want to render your .obj model.
You'll find the .obj model loader and related classes in net.minecraftforge.client.model.obj and net.minecraftforge.client.modelWait nvm it's uploading to GitHub I'll post the link when it is done uploading.
-
38 minutes ago, Busti said:
That would help. Add links to the relevant files in your comment.
Also remember to mark the relevant lines of your code in github first before copying the link.Relevant files would contain the following:
Where are you trying to render your model? (Block / Entity etc.)
What did you do so far?
Your model file. (In order to determine if it is a valid .obj file)
Where are you registering your renderers etc.
What is your model supposed to look like. (A screenshot of your modeling software would be greatly appreciated)
I couldn't upload it into GitHub so I uploaded to dropbox https://www.dropbox.com/home?preview=more+player+models.rar
-
29 minutes ago, Busti said:
That would help. Add links to the relevant files in your comment.
Also remember to mark the relevant lines of your code in github first before copying the link.Relevant files would contain the following:
Where are you trying to render your model? (Block / Entity etc.)
What did you do so far?
Your model file. (In order to determine if it is a valid .obj file)
Where are you registering your renderers etc.
What is your model supposed to look like. (A screenshot of your modeling software would be greatly appreciated)
I'll upload the mod into github now just one sec
-
27 minutes ago, Busti said:
That would help. Add links to the relevant files in your comment.
Also remember to mark the relevant lines of your code in github first before copying the link.Relevant files would contain the following:
Where are you trying to render your model? (Block / Entity etc.)
What did you do so far?
Your model file. (In order to determine if it is a valid .obj file)
Where are you registering your renderers etc.
What is your model supposed to look like. (A screenshot of your modeling software would be greatly appreciated)
I want to render it out as an entity, I got the source code for more player models because I want to morph into the models I implemented, I haven't registered the models yet.
-
29 minutes ago, MDW01 said:
Could you give us more information on what is happening?
yea do you want the github?
-
Hey, I was trying to add in Wavefront OBJ models into the game and have not been successful can anyone help me?
-
2 minutes ago, funsize888 said:
Put, @SideOnly(Side.CLIENT) above, public class ClientProxy extends CommonProxy {
I did that and it crashed again.
Here's the crash report:
---- Minecraft Crash Report ----
// There are four lights!Time: 7/9/17 7:54 PM
Description: There was a severe problem during mod loading that has caused the game to failnet.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Models (models)
Caused by: net.minecraftforge.fml.common.LoaderException: java.lang.ClassNotFoundException: co/coolbeyblades7/minecraft_mod/proxy/ClientProxy;
at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:88)
at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:243)
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:221)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:145)
at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:559)
at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:220)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:477)
at net.minecraft.client.Minecraft.run(Minecraft.java:386)
at net.minecraft.client.main.Main.main(Main.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
at GradleStart.main(GradleStart.java:26)
Caused by: java.lang.ClassNotFoundException: co/coolbeyblades7/minecraft_mod/proxy/ClientProxy;
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:71)
... 39 more
A detailed walkthrough of the error, its code path and all known details is as follows:
----------------------------------------------------------------------------------------- System Details --
Details:
Minecraft Version: 1.10.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_131, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 224320048 bytes (213 MB) / 457703424 bytes (436 MB) up to 1894252544 bytes (1806 MB)
JVM Flags: 0 total;
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP 9.32 Powered by Forge 12.18.3.2316 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UC mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)
UC FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.10.2-12.18.3.2316.jar)
UC Forge{12.18.3.2316} [Minecraft Forge] (forgeSrc-1.10.2-12.18.3.2316.jar)
UE models{1.0} [Models] (minecraft_mod_main)
Loaded coremods (and transformers):
GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 384.76' Renderer: 'GeForce GTX 1070/PCIe/SSE2' -
Just now, funsize888 said:
Post your client proxy
package co.coolbeyblades7.minecraft_mod.proxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; /** * Created by Alex Nava on 7/9/2017. */ public class ClientProxy extends CommonProxy { @Override public void preInit(FMLPreInitializationEvent event) { } @Override public void init(FMLInitializationEvent event) { } @Override public void postInit(FMLPostInitializationEvent event) { } }
-
1 minute ago, funsize888 said:
Caused by: net.minecraftforge.fml.common.LoaderException: java.lang.ClassNotFoundException: co/coolbeyblades7/minecraft_mod/proxy/ClientProxy;
at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:88)
at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:595) It says what it was caused by. Try taking a look at your ProxyInjector, that seems to be the problemI checked but idk whats up. I'll put the injector code on here.
catch (Exception e) { FMLLog.log(Level.ERROR, e, "An error occurred trying to load a proxy into %s.%s", targ.getAnnotationInfo(), targ.getClassName(), targ.getObjectName()); throw new LoaderException(e);
-
I am making a mod but it crashed idk, whats up, I read the log and everything. Here's the crash log:
---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.Time: 7/9/17 7:23 PM
Description: There was a severe problem during mod loading that has caused the game to failnet.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Models (models)
Caused by: net.minecraftforge.fml.common.LoaderException: java.lang.ClassNotFoundException: co/coolbeyblades7/minecraft_mod/proxy/ClientProxy;
at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:88)
at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:243)
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:221)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:145)
at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:559)
at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:220)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:477)
at net.minecraft.client.Minecraft.run(Minecraft.java:386)
at net.minecraft.client.main.Main.main(Main.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
at GradleStart.main(GradleStart.java:26)
Caused by: java.lang.ClassNotFoundException: co/coolbeyblades7/minecraft_mod/proxy/ClientProxy;
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:71)
... 39 more
A detailed walkthrough of the error, its code path and all known details is as follows:
----------------------------------------------------------------------------------------- System Details --
Details:
Minecraft Version: 1.10.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_131, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 119916600 bytes (114 MB) / 330825728 bytes (315 MB) up to 1894252544 bytes (1806 MB)
JVM Flags: 0 total;
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP 9.32 Powered by Forge 12.18.3.2316 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UC mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)
UC FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.10.2-12.18.3.2316.jar)
UC Forge{12.18.3.2316} [Minecraft Forge] (forgeSrc-1.10.2-12.18.3.2316.jar)
UE models{1.0} [Models] (minecraft_mod_main)
Loaded coremods (and transformers):
GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 382.05' Renderer: 'GeForce GTX 1070/PCIe/SSE2' -
26 minutes ago, Draco18s said:
Show the part of the code that has the @SidedProxy annotation.
And show your client proxy class, including package and imports.
51 minutes ago, shadowfacts said:In your @SidedProxy annotation, you've specified a fully qualified name for the client proxy that's different than the actual class name.
Ok I fixed 2 problems now but then this came up
---- Minecraft Crash Report ----
// My bad.Time: 7/9/17 7:05 PM
Description: There was a severe problem during mod loading that has caused the game to failnet.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Models (models)
Caused by: net.minecraftforge.fml.common.LoaderException: java.lang.ClassNotFoundException: co/coolbeyblades7/minecraft_mod/proxy/ClientProxy;
at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:88)
at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:243)
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:221)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:145)
at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:559)
at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:220)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:477)
at net.minecraft.client.Minecraft.run(Minecraft.java:386)
at net.minecraft.client.main.Main.main(Main.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
at GradleStart.main(GradleStart.java:26)
Caused by: java.lang.ClassNotFoundException: co/coolbeyblades7/minecraft_mod/proxy/ClientProxy;
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:71)
... 39 more
A detailed walkthrough of the error, its code path and all known details is as follows:
----------------------------------------------------------------------------------------- System Details --
Details:
Minecraft Version: 1.10.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_131, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 446913272 bytes (426 MB) / 754450432 bytes (719 MB) up to 1894252544 bytes (1806 MB)
JVM Flags: 0 total;
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP 9.32 Powered by Forge 12.18.3.2316 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UC mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)
UC FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.10.2-12.18.3.2316.jar)
UC Forge{12.18.3.2316} [Minecraft Forge] (forgeSrc-1.10.2-12.18.3.2316.jar)
UE models{1.0} [Models] (minecraft_mod_main)
Loaded coremods (and transformers):
GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 382.05' Renderer: 'GeForce GTX 1070/PCIe/SSE2' -
6 minutes ago, Draco18s said:
Show the part of the code that has the @SidedProxy annotation.
And show your client proxy class, including package and imports.
I think I fixed that part but now it says this.
Error:(43, 25) java: incompatible types: net.minecraftforge.fml.common.event.FMLPreInitializationEvent cannot be converted to net.minecraftforge.fml.common.event.FMLPostInitializationEvent
-
Just now, Draco18s said:
Show the part of the code that has the @SidedProxy annotation.
And show your client proxy class, including package and imports.
The Mod :
package co.coolbeyblades7.minecraft_mod; import co.coolbeyblades7.minecraft_mod.proxy.CommonProxy; import co.coolbeyblades7.minecraft_mod.tab.CreativeTabTutorial; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; @Mod(modid = Models.MODID, version = Models.VERSION, name = Models.NAME) public class Models{ public static final String MODID = "models"; public static final String VERSION = "1.0"; public static final String NAME = "Models"; @SidedProxy(clientSide = "co.coolbeyblades7.minecraft_mod.proxy.ClientProxy;", serverSide = "co.coolbeyblades7.minecraft_mod.proxy.CommonProxy;") public static CommonProxy proxy; @Mod.Instance public static Models instance; public static CreativeTabTutorial tabTutorial; @EventHandler public void preInit(FMLPreInitializationEvent event) { tabTutorial = new CreativeTabTutorial (CreativeTabs.getNextID(), "tab_tutorial"); proxy.preInit(event); } @EventHandler public void init(FMLInitializationEvent event) { proxy.init(event); } @EventHandler public void postInit(FMLPreInitializationEvent event) { proxy.postInit(event); } }
Client Proxy:
package co.coolbeyblades7.minecraft_mod.proxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; /** * Created by Alex Nava on 7/9/2017. */ public class ClientProxy extends CommonProxy{ @Override public void preInit(FMLPreInitializationEvent event) { } @Override public void init(FMLInitializationEvent event) { } @Override public void postInit(FMLPostInitializationEvent event) { } }
CommonProxy:
package co.coolbeyblades7.minecraft_mod.proxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import java.io.File; /** * Created by Alex Nava on 7/9/2017. */ public class CommonProxy { public void preInit(FMLPreInitializationEvent event) { } public void init(FMLInitializationEvent event) { } public void postInit(FMLPostInitializationEvent event) { } }
-
16 minutes ago, shadowfacts said:
In your @SidedProxy annotation, you've specified a fully qualified name for the client proxy that's different than the actual class name.
I'm still kinda confused.
-
I am making a mod but it crashed idk, whats up, I read the log and everything. Here's the crash log:
---- Minecraft Crash Report ----
// Why did you do that?Time: 7/9/17 5:42 PM
Description: There was a severe problem during mod loading that has caused the game to failnet.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Models (models)
Caused by: net.minecraftforge.fml.common.LoaderException: java.lang.ClassNotFoundException: co/coolbeyblades7/minecraft_mod/proxy/ClientProxy;
at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:88)
at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:243)
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:221)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:145)
at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:559)
at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:220)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:477)
at net.minecraft.client.Minecraft.run(Minecraft.java:386)
at net.minecraft.client.main.Main.main(Main.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
at GradleStart.main(GradleStart.java:26)
Caused by: java.lang.ClassNotFoundException: co/coolbeyblades7/minecraft_mod/proxy/ClientProxy;
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:71)
... 39 more
A detailed walkthrough of the error, its code path and all known details is as follows:
----------------------------------------------------------------------------------------- System Details --
Details:
Minecraft Version: 1.10.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_131, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 423868488 bytes (404 MB) / 756547584 bytes (721 MB) up to 1894252544 bytes (1806 MB)
JVM Flags: 0 total;
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP 9.32 Powered by Forge 12.18.3.2316 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UC mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)
UC FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.10.2-12.18.3.2316.jar)
UC Forge{12.18.3.2316} [Minecraft Forge] (forgeSrc-1.10.2-12.18.3.2316.jar)
UE models{1.0} [Models] (minecraft_mod_main)
Loaded coremods (and transformers):
GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 382.05' Renderer: 'GeForce GTX 1070/PCIe/SSE2'
Item Texture
in Modder Support
Posted
Thanks for your relies it really helps!