Hey, I have a problem. I made tools for my mod and when i test it in Eclipse I can craft them and everything.
But, whenever i reobf and get the .class files and I put it in my minecraft.jar i cant craft them. It's like i Never coded them. Can you help? I will send my files if i have to.
Rollback Post to RevisionRollBack
If you want me to respond to you, reply to me with the "Quote" button under my post.
I am trying to test out my block I made in Minecraft, but this stupid error comes up. Could somebody with a little more experience help me out here?
Mods loaded: 1
ModLoader Beta 1.7.3
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT e9df3db --------
Generated 8/25/11 6:28 PM
Minecraft: Minecraft Beta 1.7.3
OS: Windows 7 (amd64) version 6.1
Java: 1.6.0_25, Sun Microsystems Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: Intel Bear Lake B version 1.4.0 - Build 8.14.10.1930, Intel
java.lang.NoClassDefFoundError: mod_DinoCraft (wrong name: net/minecraft/src/mod_DinoCraft)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at ModLoader.addMod(ModLoader.java:267)
at ModLoader.readFromClassPath(ModLoader.java:1104)
at ModLoader.init(ModLoader.java:812)
at ModLoader.AddAllRenderers(ModLoader.java:183)
at th.<init>(th.java:60)
at th.<clinit>(th.java:9)
at net.minecraft.client.Minecraft.a(SourceFile:318)
at net.minecraft.client.Minecraft.run(SourceFile:716)
at java.lang.Thread.run(Thread.java:662)
--- END ERROR REPORT a4ccb17e ----------
== ERRORS FOUND == src\minecraft\net\minecraft\src\BlockSteel.java:14: error: cannot find symbol
return mod_turret.steelBlock.shiftedIndex;
^
symbol: variable shiftedIndex
location: variable steelBlock of type Block
1 error
==================
What is wrong?
here is my BlockSteel.java:
package net.minecraft.src;
import java.util.Random;
public class BlockSteel extends Block
{
protected BlockSteel(int i, int j)
{
super(i, j, Material.iron);
}
public int idDropped(int i, Random random)
{
return mod_turret.steelBlock.shiftedIndex;
}
public int quantityDropped(Random random)
{
return 1;
}
}
You are using the wrong variable for 'idDropped',
public int idDropped(int i, Random random)
{
return mod_turret.steelBlock.shiftedIndex;
}
should be
public int idDropped(int i, Random random)
{
return mod_turret.steelBlock.blockID;
}
I am trying to test out my block I made in Minecraft, but this stupid error comes up. Could somebody with a little more experience help me out here?
Mods loaded: 1
ModLoader Beta 1.7.3
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT e9df3db --------
Generated 8/25/11 6:28 PM
Minecraft: Minecraft Beta 1.7.3
OS: Windows 7 (amd64) version 6.1
Java: 1.6.0_25, Sun Microsystems Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: Intel Bear Lake B version 1.4.0 - Build 8.14.10.1930, Intel
java.lang.NoClassDefFoundError: mod_DinoCraft (wrong name: net/minecraft/src/mod_DinoCraft)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at ModLoader.addMod(ModLoader.java:267)
at ModLoader.readFromClassPath(ModLoader.java:1104)
at ModLoader.init(ModLoader.java:812)
at ModLoader.AddAllRenderers(ModLoader.java:183)
at th.<init>(th.java:60)
at th.<clinit>(th.java:9)
at net.minecraft.client.Minecraft.a(SourceFile:318)
at net.minecraft.client.Minecraft.run(SourceFile:716)
at java.lang.Thread.run(Thread.java:662)
--- END ERROR REPORT a4ccb17e ----------
can you post the code? You have to remember that it is case sensitive.
Hey, I have a problem. I made tools for my mod and when i test it in Eclipse I can craft them and everything.
But, whenever i reobf and get the .class files and I put it in my minecraft.jar i cant craft them. It's like i Never coded them. Can you help? I will send my files if i have to.
i can see what i can do if you wanna send the files. Im not sure why that would happen. also did you test them in the test client not just eclipse? there is a big diffrence.
i can see what i can do if you wanna send the files. Im not sure why that would happen. also did you test them in the test client not just eclipse? there is a big diffrence.
Whats a test client? eclipse does have a thing to test your mods if thats what you mean and yes i can craft them when i test in eclipse but i cant in the actual real game do you have teamviewer? i can show you
Rollback Post to RevisionRollBack
If you want me to respond to you, reply to me with the "Quote" button under my post.
Whats a test client? eclipse does have a thing to test your mods if thats what you mean and yes i can craft them when i test in eclipse but i cant in the actual real game do you have teamviewer? i can show you
i have skype and the test client is in the mcp pack. you need to recompile first.
I am using SAPI for dungon loot, and I have this error when recompiling:
"C:\Program Files\Java\jdk1.6.0_26\bin\javac.exe" -g -verbose -classpath "lib/;l
ib/*;jars/bin/minecraft.jar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjg
l_util.jar" -sourcepath src/minecraft -d bin/minecraft src/minecraft\net\minecra
ft\client\*.java src/minecraft\net\minecraft\isom\*.java src/minecraft\net\minec
raft\src\*.java conf/patches/*.java failed
src\minecraft\net\minecraft\src\SaveHandler.java:42: not a statement
exception;
^
src\minecraft\net\minecraft\src\SaveHandler.java:48: not a statement
ioexception;
^
src\minecraft\net\minecraft\src\SaveHandler.java:69: not a statement
exception;
^
src\minecraft\net\minecraft\src\SaveHandler.java:75: not a statement
ioexception;
^
nothing i can help with there.also for future record some code would be nice. hmm try to reinstall mcp and modloader. Also if i were you id wait for 1.8 to come out this or next week before starting any big projects on mods.
i have a bit of problem, i reobfuscate and it only gives me BlockEpic.class
am i supposed to get the mod_Epic too?
its not seeing it, it just gives me BlockEpic.class and no errors except something about a boat, but its not my code or my mod that deals with boats...
any idea?
EDIT: i cant find my block in game or in TMI or by typing give 255
reply to an oldish post but if you change something simple in the file it will show u in reob. You need to change it a little and it reconizes that it is changed.
Now i copy and pasted the code from the old files in new ones. I changed al the thnings and the recompile is succesful and the reobfuscate is, too. And when i now start the startclient.bat this appears:
Mods loaded: 1
ModLoader Beta 1.7.3
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT e9df3db --------
Generated 04.09.11 22:06
Minecraft: Minecraft Beta 1.7.3
OS: Windows 7 (x86) version 6.1
Java: 1.7.0, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: AMD Radeon HD 6450 version 4.1.10428 Compatibility Profile Context, ATI Technologies Inc.
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:224)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1022)
at net.minecraft.src.ModLoader.init(ModLoader.java:687)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:121)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:65)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:158)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:138)
at net.minecraft.client.Minecraft.run(Minecraft.java:435)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 4001
at net.minecraft.src.Block.<init>(Block.java:46)
at net.minecraft.src.Block.<init>(Block.java:75)
at net.minecraft.src.BlockS.<init>(BlockS.java:9)
at net.minecraft.src.mod_S.<clinit>(mod_S.java:6)
... 15 more
--- END ERROR REPORT f028e9a0 ----------
My files: http://www.mediafire.com/?j2binqpl950hxt7
Ive tried to fix it for you so i hope it works :smile.gif:
File: mod_jan
But, whenever i reobf and get the .class files and I put it in my minecraft.jar i cant craft them. It's like i Never coded them. Can you help? I will send my files if i have to.
If you want me to respond to you, reply to me with the "Quote" button under my post.
I think your problem is this line right here
Im new to modding but i think thats your problem :biggrin.gif:
If you want me to respond to you, reply to me with the "Quote" button under my post.
You are using the wrong variable for 'idDropped', should be
he knows. I already told him that a page ago.
I shall send Crawlers after you!
can you post the code? You have to remember that it is case sensitive.
I shall send Crawlers after you!
i can see what i can do if you wanna send the files. Im not sure why that would happen. also did you test them in the test client not just eclipse? there is a big diffrence.
I shall send Crawlers after you!
here the link to the recompiled one http://www.mediafire.com/?71w8eh5llljbd14 are you recompiling before you reobfusicate? if you aren't it'll never recompile.
I shall send Crawlers after you!
Whats a test client? eclipse does have a thing to test your mods if thats what you mean and yes i can craft them when i test in eclipse but i cant in the actual real game do you have teamviewer? i can show you
If you want me to respond to you, reply to me with the "Quote" button under my post.
i have skype and the test client is in the mcp pack. you need to recompile first.
I shall send Crawlers after you!
skype and teamviewer is big difference teamviewer you would be able to control my screen for a lil skype only lets me show you my screen
If you want me to respond to you, reply to me with the "Quote" button under my post.
i have it now. Let me know when u want my help.
I shall send Crawlers after you!
lol fixed it i forgot to recompile ;3 you can check it out in my signature xD i feel so stupid lately lol
If you want me to respond to you, reply to me with the "Quote" button under my post.
nothing i can help with there.also for future record some code would be nice.hmm try to reinstall mcp and modloader. Also if i were you id wait for 1.8 to come out this or next week before starting any big projects on mods.I shall send Crawlers after you!
reply to an oldish post but if you change something simple in the file it will show u in reob. You need to change it a little and it reconizes that it is changed.
I shall send Crawlers after you!
but i wonder in your tut i can only make it
but i want to make it
how do i do that?
uFunny
Ive tried to fix it for you so i hope it works :smile.gif:
File: mod_jan
uFunny
wait what do you want to do? if its recipe it needs to have ("s s", "s s") meaning
blank
blank
or "ss", "ss" for
which might be what im guessing you want.
ill add a piece of code to that later but i gotta go
I shall send Crawlers after you!