at com.abeticdi.mymod.init.ModItems.init(ModItems.java:13)
at MyMod.MyMod.PreInit(MyMod.java:22)
The numbers at the end next to the parentheses tell you what line of code errored. The other thing in the parentheses tells you which .java file was errored. Everything else before the parentheses tells you the location of the .java file.
Error in mod items:
RegisterHelper.registerItems(magnet);
We still need to see the MyMod.java to find what errored on line 22. If you changed anything in either classes, then we need to see the new crash report. We also will need to see the updated classes if you changed anything.
Well, I've tried all different number of things, and every time I change whether or not there is an "s" on the end of registerItem it reproduces the same error, registerItems (string) is undefined for type RegisterHelper
Well, I seem to have a new issue... Eclipse appears to be disregarding changes I make to my code... I completely removed line 22 to see if the mod would start up still and it seems to be still running the nonexistent line 22.
Well, I seem to have a new issue... Eclipse appears to be disregarding changes I make to my code... I completely removed line 22 to see if the mod would start up still and it seems to be still running the nonexistent line 22.
Well, I seem to have a new issue... Eclipse appears to be disregarding changes I make to my code... I completely removed line 22 to see if the mod would start up still and it seems to be still running the nonexistent line 22.
Then the new line 22 is crashing the game - that doesn't necessarily mean the what you just deleted.
Did you delete it by simply commenting it out "//" at the beginning of line 22 of your main class? or did you actually delete the line making something else occupy line 22?
Thats what I figured after I changed several things, including copying the contents of the help and init packages and completely deleting them and STILL getting the same error
I am on part 3 of the 1.7 modding tutorial, and I have some errors that won't go away, I've underlined them to show where the error is
package CheeseCore.init;
import CheeseCore.help.RegisterHelper;
public static Item cheese = new MMItem().setUnlocalizedName("cheese");
public class ModItems
{
public static void init()
{
RegisterHelper.registerItem(cheese);
}
}
Any ideas?
I've tried mousing over them and It says "Syntax error on tokens, AnnotationName expected instead"
Your following 1.7 tutorials for 1.8...
Wellp, I seem to be running into a bit of trouble
The crash log... of which I've spent the passed couple of hours trying to fix...
http://pastebin.com/Njnqzc5N
ModItems which may or may not be the source of my problems...
http://pastebin.com/kfjnWNqL
Also RegisterHelper where the crash wants to tell me the problem is
http://pastebin.com/jXkEcfi0
Oh and the fml logs in case those can assist.
http://pastebin.com/WzZ4EKaS
Here's what I found:
at com.abeticdi.mymod.init.ModItems.init(ModItems.java:13)
at MyMod.MyMod.PreInit(MyMod.java:22)
The numbers at the end next to the parentheses tell you what line of code errored. The other thing in the parentheses tells you which .java file was errored. Everything else before the parentheses tells you the location of the .java file.
Error in mod items:
RegisterHelper.registerItems(magnet);
We still need to see the MyMod.java to find what errored on line 22. If you changed anything in either classes, then we need to see the new crash report. We also will need to see the updated classes if you changed anything.
Line 22 of MyMod will be the line calling ModItems.init(); your problem is your method name does not have an s it is RegisterHelper.registerItem
Well, I've tried all different number of things, and every time I change whether or not there is an "s" on the end of registerItem it reproduces the same error, registerItems (string) is undefined for type RegisterHelper
Well, I seem to have a new issue... Eclipse appears to be disregarding changes I make to my code... I completely removed line 22 to see if the mod would start up still and it seems to be still running the nonexistent line 22.
Oh. lol.
How do I change the variable?
Are you sure it was saved properly?
Then the new line 22 is crashing the game - that doesn't necessarily mean the what you just deleted.
The only problem is that the error that it produced from line 22 still referred to mod.init which is what I deleted from line 22.
Did you delete it by simply commenting it out "//" at the beginning of line 22 of your main class? or did you actually delete the line making something else occupy line 22?
I completely removed it leaving the space empty on line 22
If its not saving and recompiling with your changes you might want to look on the eclipse forums to figure out what is wrong with your IDE.
http://www.eclipse.org/forums/?
Thats what I figured after I changed several things, including copying the contents of the help and init packages and completely deleting them and STILL getting the same error
*facepalm* Found the issue.... it turns out I had made a mistake a while back while trying to take a shortcut through the learning process...
Seems to be working for everyone else. What specifically isn't working?
If you have an Adblocker or an add-on like noscript, you might want to disable these. (Especially adblock).
I am on part 3 of the 1.7 modding tutorial, and I have some errors that won't go away, I've underlined them to show where the error is
package CheeseCore.init;
import CheeseCore.help.RegisterHelper;
public static Item cheese = new MMItem().setUnlocalizedName("cheese");
public class ModItems
{
public static void init()
{
RegisterHelper.registerItem(cheese);
}
}
Any ideas?
I've tried mousing over them and It says "Syntax error on tokens, AnnotationName expected instead"
public class ModItems
{
//this goes here not ^^ up there
public static Item cheese = new MMItem().setUnlocalizedName("cheese");
public static void init()
{
RegisterHelper.registerItem(cheese);
}
}