Jump to content

Blitex

Members
  • Posts

    23
  • Joined

  • Last visited

Posts posted by Blitex

  1. 15 minutes ago, Cloudy said:

    Whilst from time to time Forge does change how they do things - on major versions, over a year apart (as they do it on breaking Mojang changes), the changes made aren't Forges fault. Forge is an API layer on top of Mojang code - and it is Mojang code which keeps changing. Forge just has to adapt to the new way Mojang do things. 

     

    It's just the way of modding - there can't be a 100% stable API, but forge tries its best.

     

    5 hours ago, jabelar said:

    I have to say that although I agree modders have to keep up to date, it is also very difficult to keep up with all the changes. For example, I was looking at some code for a fairly recent mod by another strong modder and his item model implemented IModel, ICustomModelLoader, and IRetexture and the last two were not in my class path. I did some digging and it looks like those interfaces were absorbed directly into IModel so you don't have to implement all three. But these changes just happened going from 1.11 (his code) and 1.12.

     

    As someone who writes tutorials to help people it is becoming almost impossible to keep tutorials up to date. For example, over past couple years custom item models have gone from using item mesher, being registered in pre-init etc. to now using JSON with IModel and being registered in a combination of item registry, model registry and model bake event. Literally 1.9 is different from 1.10 from 1.11 to 1.12 ...

     

    In other words, all the really good tutorials and all the github repositories out there are all getting outdated about every six months and there is no easy way for someone who is new, or someone who comes back to modding occasionally, to sort it all out.

     

    Furthermore, updating my existing mods is becoming a full time job for me. For example, I just ported my entity-based mods to 1.12.1 and now I see pull requests where they are about to change the entity registration scheme. The IEEPs became capabilities, all the achievements have become advancements, etc. 

     

    So honestly giving someone a hard time for using a one year old approach, or calling tutorials out there "outdated crap" I think isn't very fair. Forge is becoming extremely "unstable" -- I don't mean buggy, just that the API is changing rapidly. And frankly in programming an API that changes rapidly is a bad thing in terms of maintainability.

     

    This is causing real trouble because all the kids I ask about which version of Minecraft they use are saying 1.7.10. That seems to have been the golden age for mods. In particular my kids seem to like the Morph mod. It is creating a situation where it is difficult for people to find a combination of Minecraft and mods that has everything they like. Having colors and parrots isn't enough for people to give up their favorite mods...If you look at the Minecraft Forum Modification Development forum you'll see that almost half the question are from people still developing for 1.7.10.

    Thanks for your relies it really helps! :D

  2. 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 :/

  3. 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.

  4. I making a mod, but when I test the mod the texture doesn't show up.
    Here's my ModItems

    package 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"
      }
    }

     

  5. 2 minutes ago, Draco18s said:

    Ok, why is this:

    https://github.com/Blitex/moreplayermodels/tree/master/src/main/java/net/minecraft/client/renderer/entity

    Inside the net.minecraft package? Much less inside client entity rendering?

    Then you have a chunk in GlactiCraft

    https://github.com/Blitex/moreplayermodels/tree/master/src/main/java/micdoodle8/mods/galacticraft/api/client/tabs

    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/mpm

     

    I'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.

  6. 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.model

    I got it here it is 

    https://github.com/Blitex/moreplayermodels

  7. 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.model

    Wait nvm it's uploading to GitHub I'll post the link when it is done uploading.

  8. 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

  9. 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

     

  10. 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.

    CerealModel.mtl

    CerealModel.obj

    Screenshot (31).png

  11. 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 fail

    net.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'

  12. 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) {
    
        }
    }
    
  13. 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 problem

    I 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);
  14. 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 fail

    net.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'

  15. 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 fail

    net.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'

  16. 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

  17. 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) {
    
        }
    
    }
  18. 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. 

  19. 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 fail

    net.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'

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.