I've been trying to find that out actually, as I am new to this. From what I understand about the Mr. Crayfish's tutorial, at 9:10 it tells that registerRenders was being overridden by the commonProxy class.
Hey! I was just wondering how much of the 1.7 tutorials transfer over to 1.8. Meaning will certain 1.7 tutorials work for 1.8, like ore gen and crafting recipes etc
I ran into another problem with my mod. It's just about complete and loads fine when I launch it through Eclipse, however when I package it to load into the actual game, I get this in the crash report:
Caused by: java.lang.NoSuchMethodError: rirutsukusan.Gunblade.Items.GunbladeItemSword.setUnlocalizedName(Ljava/lang/String;)Lnet/minecraft/item/Item;
at rirutsukusan.Gunblade.init.GunbladeItems.init(GunbladeItems.java:24)
at rirutsukusan.Gunblade.GunbladeMod.preInit(GunbladeMod.java:28)
Here's the code:
GunbladeItems Class
public class GunbladeItems {
public static Item Gunblade;
public static void init(){
Gunblade = new GunbladeItemSword(gunbladematerial).setUnlocalizedName("Gunblade").setCreativeTab(GunbladeTab);
}
public static void register()
{
GameRegistry.registerItem(Gunblade, Gunblade.getUnlocalizedName().substring(5));
}
public static void registerRender(Item item)
{
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "inventory"));
}
}
GunbladeMod Class
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
GunbladeItems.init();
GunbladeItems.register();
}
Hm? Do you want to get a .jar file of your mod? Go to your workspace folder, shift click and click "Open command window", then type in "gradlew build".
You have a lot of syntax errors in the code, causing it to fail to compile. That and your source files seem to be formatted incorrectly. Make sure your quote marks are ASCII "straight quotes".
No, I wasn't before. What I did was exported it into a jar file from eclipse instead of that. From looking at the quote you mentioned to Darkslay3r, that helped me get the mod into the game. Thanks for the help!
Just passing by here to say that for anyone who is having problems in #5 with the textures not being displayed, even with modid all lowercase and without a single error, if you are using the same name as in the tutorial, i.e.,
you must name each texture file exactly the same name as the item/block name declared in the classes. E.g., the texture file for "titaniumOre" should be named as "titaniumOre.png", instead of "testTexture.png" or anything else.
I didn't know this and was having problems with the textures not showing, because my two textures were with other names. I only found out why this was happening because I searched in the console for errors and then I found that it was saying that the textures (in case, with the correct name they should have) weren't found. Then I realized.
I don't, unfortunately, but I do have an open source mod from a while ago which implements RF that I believe is fairly well documented. You can find that here.
Ok, thank you. Also I'm wondering, I'm having issues with the LogHelper class in Tutorial 3, Volume 3. Eclipse is telling me that Level.DEBUG, ERROR, FATAL, TRACE, and WARN aren't working. It's also saying that FMLLog.log cannot use the parameters String, Level, String.
EDIT: Actually I have it fixed. I was importing the wrong "Level." Needed to import the one from "org.apache.logging.log4j.Level"
Hey! I'm back! On the 4th tutorial on volume 3 I'm not exactly sure what I should do to fix this. On the line "public static Item itemName = new ItemCE("itemName");" It's giving me an error on "ItemCE" Should I make it into a class and add a constructor?
EDIT: I really need to read the entire tutorial before I ask these questions. Sorry!
If you still have this error after installing the JDK, set the JAVA_HOME variable in your computer's settings to the JDK bin.
Putting the CENDENT back in transcendent!
Set the JAVA_HOME variable. I don't run windows, but google should be able to help you out.
Wrong person
Putting the CENDENT back in transcendent!
Ah I see. My bad.
Hello. I'm getting an error in my Client Proxy class, which causes the game to crash. Could anyone spare a moment to look through this?
package rirutsukusan.Gunblade.proxy;
import rirutsukusan.Gunblade.init.GunbladeItems;
public class ClientProxy extends CommonProxy{
@Override
public void registerRenders() {
GunbladeItems.registerRenders();
}
}
When I launch the mod through Eclipse, I get this error:
java.lang.ClassNotFoundException: rirustukusan.Gunblade.proxy.ClientProxy
I haven't been exactly going by this tutorial however, I find it really useful to reference to.
Why do you have @Override on registerRenderers()?
I've been trying to find that out actually, as I am new to this. From what I understand about the Mr. Crayfish's tutorial, at 9:10 it tells that registerRenders was being overridden by the commonProxy class.
.
Hey! I was just wondering how much of the 1.7 tutorials transfer over to 1.8. Meaning will certain 1.7 tutorials work for 1.8, like ore gen and crafting recipes etc
You spelled the package name wrong.
Putting the CENDENT back in transcendent!
Thanks for the help!
I ran into another problem with my mod. It's just about complete and loads fine when I launch it through Eclipse, however when I package it to load into the actual game, I get this in the crash report:
Caused by: java.lang.NoSuchMethodError: rirutsukusan.Gunblade.Items.GunbladeItemSword.setUnlocalizedName(Ljava/lang/String;)Lnet/minecraft/item/Item;
at rirutsukusan.Gunblade.init.GunbladeItems.init(GunbladeItems.java:24)
at rirutsukusan.Gunblade.GunbladeMod.preInit(GunbladeMod.java:28)
Here's the code:
GunbladeItems Class
public class GunbladeItems {
public static Item Gunblade;
public static void init(){
Gunblade = new GunbladeItemSword(gunbladematerial).setUnlocalizedName("Gunblade").setCreativeTab(GunbladeTab);
}
public static void register()
{
GameRegistry.registerItem(Gunblade, Gunblade.getUnlocalizedName().substring(5));
}
public static void registerRender(Item item)
{
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "inventory"));
}
}
GunbladeMod Class
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
GunbladeItems.init();
GunbladeItems.register();
}
Package it?...You're using gradlew build, right?
Hm? Do you want to get a .jar file of your mod? Go to your workspace folder, shift click and click "Open command window", then type in "gradlew build".
You have a lot of syntax errors in the code, causing it to fail to compile. That and your source files seem to be formatted incorrectly. Make sure your quote marks are ASCII "straight quotes".
Putting the CENDENT back in transcendent!
No, I wasn't before. What I did was exported it into a jar file from eclipse instead of that. From looking at the quote you mentioned to Darkslay3r, that helped me get the mod into the game. Thanks for the help!
Just passing by here to say that for anyone who is having problems in #5 with the textures not being displayed, even with modid all lowercase and without a single error, if you are using the same name as in the tutorial, i.e.,
you must name each texture file exactly the same name as the item/block name declared in the classes. E.g., the texture file for "titaniumOre" should be named as "titaniumOre.png", instead of "testTexture.png" or anything else.
I didn't know this and was having problems with the textures not showing, because my two textures were with other names. I only found out why this was happening because I searched in the console for errors and then I found that it was saying that the textures (in case, with the correct name they should have) weren't found. Then I realized.
Hello. Do you have any RF tutorials?
I don't, unfortunately, but I do have an open source mod from a while ago which implements RF that I believe is fairly well documented. You can find that here.
Ok, thank you. Also I'm wondering, I'm having issues with the LogHelper class in Tutorial 3, Volume 3. Eclipse is telling me that Level.DEBUG, ERROR, FATAL, TRACE, and WARN aren't working. It's also saying that FMLLog.log cannot use the parameters String, Level, String.
EDIT: Actually I have it fixed. I was importing the wrong "Level." Needed to import the one from "org.apache.logging.log4j.Level"
Hey! I'm back! On the 4th tutorial on volume 3 I'm not exactly sure what I should do to fix this. On the line "public static Item itemName = new ItemCE("itemName");" It's giving me an error on "ItemCE" Should I make it into a class and add a constructor?
EDIT: I really need to read the entire tutorial before I ask these questions. Sorry!