Hi xthexder. You might remember me from Internet communities past.
Anyway, this is exactly what I wanted my McMod to be. Great work. Keeping in mind I just skimmed the original post, is this open source? What bytecode modification library, if any, does it use for the updater?
PS: you spelled 'refactored' wrong in the OP, might wanna fix that. :tongue.gif:
Tekk
Hey!
What a place to see you at =P
It's not open source, but I didn't obfuscate it on purpose :smile.gif:
I wouldn't mind having another person to help with building up API, because there isn't much right now. Maybe you could join the team =O
Hello I've been a long time lurker in the minecraft community, I've always like the Idea of mods but never like the idea of modifying my files lol
Needless to say I thought this mod was a awesome Idea a quickly downloaded it
At first it didnt work at all, then i Delete the Version file ,As stated in the OP then
I could get Into the game with the Light Mod and flying Mod(although i was quite baffled by the colour test you did on the torches lol)
So i promtly went and down loaded Mo creatures at first it didnt work, but i figured i was just a moron and Unzipped the file
which resulted in
files to inject to minecraft jar
and folders to add to resources
so i start up the .jar
the background goes black and the "Need Account?" text has a black box around it but i can still see the loging and where to put my info so i do that and press login It begins to initalize
but gets stuck at
Loading Mycraft
Loading Plugins
Help?
PS. This looks like great work and judging by the comments it works most of the time, and very well good work i hope you can help me but one way or another Great Job for you
Hello I've been a long time lurker in the minecraft community, I've always like the Idea of mods but never like the idea of modifying my files lol
Needless to say I thought this mod was a awesome Idea a quickly downloaded it
At first it didnt work at all, then i Delete the Version file ,As stated in the OP then
I could get Into the game with the Light Mod and flying Mod(although i was quite baffled by the colour test you did on the torches lol)
So i promtly went and down loaded Mo creatures at first it didnt work, but i figured i was just a moron and Unzipped the file
which resulted in
files to inject to minecraft jar
and folders to add to resources
so i start up the .jar
the background goes black and the "Need Account?" text has a black box around it but i can still see the loging and where to put my info so i do that and press login It begins to initalize
but gets stuck at
Loading Mycraft
Loading Plugins
Help?
PS. This looks like great work and judging by the comments it works most of the time, and very well good work i hope you can help me but one way or another Great Job for you
Have you tried Mo's Creatures without MyCraft?
There may be a conflict with the two.
If it works without MyCraft, I'll look into getting it fixed.
Hey, I'm lovin' it so far, but I've got a bug for you.
Not sure if this is fixable or not, but (at least for me) saves from playing Minecraft without MyCraft crash the game. Doesn't really matter all that much to me, but I'm sure other people would love to keep their saves.
Hello I've been a long time lurker in the minecraft community, I've always like the Idea of mods but never like the idea of modifying my files lol
Needless to say I thought this mod was a awesome Idea a quickly downloaded it
At first it didnt work at all, then i Delete the Version file ,As stated in the OP then
I could get Into the game with the Light Mod and flying Mod(although i was quite baffled by the colour test you did on the torches lol)
So i promtly went and down loaded Mo creatures at first it didnt work, but i figured i was just a moron and Unzipped the file
which resulted in
files to inject to minecraft jar
and folders to add to resources
so i start up the .jar
the background goes black and the "Need Account?" text has a black box around it but i can still see the loging and where to put my info so i do that and press login It begins to initalize
but gets stuck at
Loading Mycraft
Loading Plugins
Help?
PS. This looks like great work and judging by the comments it works most of the time, and very well good work i hope you can help me but one way or another Great Job for you
Have you tried Mo's Creatures without MyCraft?
There may be a conflict with the two.
If it works without MyCraft, I'll look into getting it fixed.
Like i Said, one of the main reasons i didnt use mods before is because i didnt want to mess up my files, ill try a different mod thou,ill post again in like 2minutes
Sorry for the double post, but what's up with the class files that have $1, $2, $3, etc. at the end of the filename? Are they required for the mod to work? Just wondering.
I think you can ignore those, they are created by MyCraft if I'm not mistaken. All you need to worry about is your java file and any pngs you need. Hopefully I'm not making a fool of myself for assuming these things. :/
Quote from xthexder »
The class files that end in $1 $2 etc, are just java's way of compiling things, you do need them, and it's not MyCraft that makes them.
The .java files are the source files, you do not need to put those in your mods folder, I just put TestMod.java in there so you can see my sourcecode.
int StoneSpear = new ToolMod("Stone Spear", new TextureInfo("/mods/WeaponCraft.png", 1), 0, ToolType.STONE, new Object[0]) {
public boolean getDrops(Object block) {
return false;
}
public float getSpeed(ItemSlotMod slot, Object target) {
return 1;
}
public int onAttack(Object target) {
return 4;
}
}.getId();
It works in all ways just as expected, except it displays the texture from slot 0. I have another spear that uses slot 2, and it displays slot 0 as well. The texture file is 48x16. Thanks.
I think I may rewrite the modding tutorial. I assumed people had more knowledge of java that can be expected.
To answer your immediate questions, The class files that end in $1 $2 etc, are just java's way of compiling things, you do need them, and it's not MyCraft that makes them.
The .java files are the source files, you do not need to put those in your mods folder, I just put TestMod.java in there so you can see my sourcecode.
Quote from TheBlackAcorn »
How do I take a screenshot on Windows?
You can press Print Screen on your keyboard and paste it into paint, or you can use a screenshot utility.
I've made one myself and you can find it on my site, it's called SShot. If you use a utility, you can take more than one screenshot without having to open paint each time.
@ProjectEW, I'll look into the save file issue, although from when I was testing, even if you had a Blood Pickaxe in your inventory, the game would still load without the item in normal minecraft.
Also, Is your texture file 48 in width and 16 high? Or did you get it mixed up. That's the only thing I can think of at the moment... I'll look at it.
I think I may rewrite the modding tutorial. I assumed people had more knowledge of java that can be expected.
To answer your immediate questions, The class files that end in $1 $2 etc, are just java's way of compiling things, you do need them, and it's not MyCraft that makes them.
The .java files are the source files, you do not need to put those in your mods folder, I just put TestMod.java in there so you can see my sourcecode.
Quote from TheBlackAcorn »
How do I take a screenshot on Windows?
You can press Print Screen on your keyboard and paste it into paint, or you can use a screenshot utility.
I've made one myself and you can find it on my site, it's called SShot. If you use a utility, you can take more than one screenshot without having to open paint each time.
@ProjectEW, I'll look into the save file issue, although from when I was testing, even if you had a Blood Pickaxe in your inventory, the game would still load without the item in normal minecraft.
Also, Is your texture file 48 in width and 16 high? Or did you get it mixed up. That's the only thing I can think of at the moment... I'll look at it.
C:\MyCraft>java -jar MyCraft.jar
Running with current ram
MyCraft V1.0-2
Lib file: minecraft.jar
Username is 'xxxxxxxxxxx'
Failed to load MyCraft!
java.lang.NullPointerException
at org.frustra.mycraft.modding.advanced.InjectUtil.injectRender(InjectUt
il.java:1097)
at org.frustra.mycraft.modding.advanced.InjectUtil.init(InjectUtil.java:
144)
at net.minecraft.GameUpdater.updateClassPath(GameUpdater.java:287)
at net.minecraft.GameUpdater.run(GameUpdater.java:250)
at net.minecraft.Launcher$1.run(Launcher.java:73)
Exception in thread "Thread-5" java.lang.ClassFormatError: Duplicate field name&
signature in class file bt
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at org.frustra.mycraft.modding.advanced.CustomClassLoader.loadClass(Cust
omClassLoader.java:165)
at mf.<init>(SourceFile:37)
at ll.<init>(SourceFile:49)
at net.minecraft.client.Minecraft.<init>(SourceFile:118)
at k.<init>(k.java:14)
at net.minecraft.client.MinecraftApplet.init(SourceFile:41)
at net.minecraft.Launcher.replace(Launcher.java:132)
at net.minecraft.Launcher$1.run(Launcher.java:76)
C:\MyCraft>pause
Press any key to continue . . .
So when trying to run it, it loads some hooks and other stuff, and then goes black screen on me.
C:\MyCraft>java -jar MyCraft.jar
Running with current ram
MyCraft V1.0-2
Lib file: minecraft.jar
Username is 'xxxxxxxxxxx'
Failed to load MyCraft!
java.lang.NullPointerException
at org.frustra.mycraft.modding.advanced.InjectUtil.injectRender(InjectUt
il.java:1097)
at org.frustra.mycraft.modding.advanced.InjectUtil.init(InjectUtil.java:
144)
at net.minecraft.GameUpdater.updateClassPath(GameUpdater.java:287)
at net.minecraft.GameUpdater.run(GameUpdater.java:250)
at net.minecraft.Launcher$1.run(Launcher.java:73)
Exception in thread "Thread-5" java.lang.ClassFormatError: Duplicate field name&
signature in class file bt
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at org.frustra.mycraft.modding.advanced.CustomClassLoader.loadClass(Cust
omClassLoader.java:165)
at mf.<init>(SourceFile:37)
at ll.<init>(SourceFile:49)
at net.minecraft.client.Minecraft.<init>(SourceFile:118)
at k.<init>(k.java:14)
at net.minecraft.client.MinecraftApplet.init(SourceFile:41)
at net.minecraft.Launcher.replace(Launcher.java:132)
at net.minecraft.Launcher$1.run(Launcher.java:76)
C:\MyCraft>pause
Press any key to continue . . .
So when trying to run it, it loads some hooks and other stuff, and then goes black screen on me.
Are there any other mods you have installed?
This shouldn't happen unless you have another mod, so you can try backing up your minecraft.jar file in .minecraft and deleting your version file. Then you'll get a fresh mincraft jar.
Same goes for Beli3r.
@TheBlackAcorn, you can upload the image to a free image hosting place.
My favorite is http://images.roflcopter.net/
I think I may rewrite the modding tutorial. I assumed people had more knowledge of java that can be expected.
I was tempted to suggest such a rewrite or atleast adding more helpful commentary for those taking their first steps into Java while learning to make MC mods at the same time.
Quote from xthexder »
To answer your immediate questions, The class files that end in $1 $2 etc, are just java's way of compiling things, you do need them, and it's not MyCraft that makes them.
The .java files are the source files, you do not need to put those in your mods folder, I just put TestMod.java in there so you can see my sourcecode.
I opened them up out of curiousity and just saw that notepad couldn't read it properly so I figured they were generated somewhere and not the actual class files you were referring to in the tutorial that we create in notepad. But I did assume that they were created from the code we write and put in the mods directory. So if we do not need to put source files in the mods folder where should we put them? Or how do we compile them if that is what we must do. I guess I need to download a Java compiler? Theres a developer package in addition to the runtime library right?
I think I may rewrite the modding tutorial. I assumed people had more knowledge of java that can be expected.
I was tempted to suggest such a rewrite or atleast adding more helpful commentary for those taking their first steps into Java while learning to make MC mods at the same time.
Quote from xthexder »
To answer your immediate questions, The class files that end in $1 $2 etc, are just java's way of compiling things, you do need them, and it's not MyCraft that makes them.
The .java files are the source files, you do not need to put those in your mods folder, I just put TestMod.java in there so you can see my sourcecode.
I opened them up out of curiousity and just saw that notepad couldn't read it properly so I figured they were generated somewhere and not the actual class files you were referring to in the tutorial that we create in notepad. But I did assume that they were created from the code we write and put in the mods directory. So if we do not need to put source files in the mods folder where should we put them? Or how do we compile them if that is what we must do. I guess I need to download a Java compiler? Theres a developer package in addition to the runtime library right?
Yes, you can download the JDK, or you can use eclipse which has it's own compiler.
Once you've compiled your .java files into .class files you don't need the .java files anymore unless your going to edit your mod, so I suggest storing them somewhere.
Thanks. Ok got eclipse IDE for Java developers. I'll mess around a bit with it and see what I can learn on my own.
EDIT: Oh nice it has its own built in tutorials which start with the classic hello world first program example. :biggrin.gif: This should be a snap!
EDIT2: Erm ok. The Hello World tut was the only tut in Eclypse. But I found a nice Eclipse and Java for Total Beginners video tutorial series on the Eclypse site:
This free video tutorial will help get you started writing Java programs using Eclipse version 3.3. No prior experience with Eclipse or Java is assumed. The 16 lessons total about 3 1/4 hours and are each between 9 and 14 minutes long. The lessons guide you through a step-by-step process creating a simple "personal lending library" application. Each lesson is fully narrated.
Hey!
What a place to see you at =P
It's not open source, but I didn't obfuscate it on purpose :smile.gif:
I wouldn't mind having another person to help with building up API, because there isn't much right now. Maybe you could join the team =O
Thanks for the spelling tip
Needless to say I thought this mod was a awesome Idea a quickly downloaded it
At first it didnt work at all, then i Delete the Version file ,As stated in the OP then
I could get Into the game with the Light Mod and flying Mod(although i was quite baffled by the colour test you did on the torches lol)
So i promtly went and down loaded Mo creatures at first it didnt work, but i figured i was just a moron and Unzipped the file
which resulted in
files to inject to minecraft jar
and folders to add to resources
so i start up the .jar
the background goes black and the "Need Account?" text has a black box around it but i can still see the loging and where to put my info so i do that and press login It begins to initalize
but gets stuck at
Loading Mycraft
Loading Plugins
Help?
PS. This looks like great work and judging by the comments it works most of the time, and very well good work i hope you can help me but one way or another Great Job for you
Have you tried Mo's Creatures without MyCraft?
There may be a conflict with the two.
If it works without MyCraft, I'll look into getting it fixed.
Not sure if this is fixable or not, but (at least for me) saves from playing Minecraft without MyCraft crash the game. Doesn't really matter all that much to me, but I'm sure other people would love to keep their saves.
Also, my mod is coming along nicely...
Like i Said, one of the main reasons i didnt use mods before is because i didnt want to mess up my files, ill try a different mod thou,ill post again in like 2minutes
I assumed that you mod combined the various mod loading devices
I had the same problem with Sdks mods(i just tried those) until i added Rigusamis mod loader As a mod
sorry for wasting your time, mabe your should clarify that on the OP, or mabe i just wanst paying enough attention, thank you very much
I think you can ignore those, they are created by MyCraft if I'm not mistaken. All you need to worry about is your java file and any pngs you need. Hopefully I'm not making a fool of myself for assuming these things. :/minebook.me (Facebook for Minecraft)
It works in all ways just as expected, except it displays the texture from slot 0. I have another spear that uses slot 2, and it displays slot 0 as well. The texture file is 48x16. Thanks.
To answer your immediate questions, The class files that end in $1 $2 etc, are just java's way of compiling things, you do need them, and it's not MyCraft that makes them.
The .java files are the source files, you do not need to put those in your mods folder, I just put TestMod.java in there so you can see my sourcecode.
You can press Print Screen on your keyboard and paste it into paint, or you can use a screenshot utility.
I've made one myself and you can find it on my site, it's called SShot. If you use a utility, you can take more than one screenshot without having to open paint each time.
@ProjectEW, I'll look into the save file issue, although from when I was testing, even if you had a Blood Pickaxe in your inventory, the game would still load without the item in normal minecraft.
Also, Is your texture file 48 in width and 16 high? Or did you get it mixed up. That's the only thing I can think of at the moment... I'll look at it.
The Java JAR file “MyCraft.jar” could not be launched.
Check the Console for possible error messages.
Can't post it.
So when trying to run it, it loads some hooks and other stuff, and then goes black screen on me.
Are there any other mods you have installed?
This shouldn't happen unless you have another mod, so you can try backing up your minecraft.jar file in .minecraft and deleting your version file. Then you'll get a fresh mincraft jar.
Same goes for Beli3r.
@TheBlackAcorn, you can upload the image to a free image hosting place.
My favorite is http://images.roflcopter.net/
I was tempted to suggest such a rewrite or atleast adding more helpful commentary for those taking their first steps into Java while learning to make MC mods at the same time.
I opened them up out of curiousity and just saw that notepad couldn't read it properly so I figured they were generated somewhere and not the actual class files you were referring to in the tutorial that we create in notepad. But I did assume that they were created from the code we write and put in the mods directory. So if we do not need to put source files in the mods folder where should we put them? Or how do we compile them if that is what we must do. I guess I need to download a Java compiler? Theres a developer package in addition to the runtime library right?
minebook.me (Facebook for Minecraft)
Yes, you can download the JDK, or you can use eclipse which has it's own compiler.
Once you've compiled your .java files into .class files you don't need the .java files anymore unless your going to edit your mod, so I suggest storing them somewhere.
EDIT: Oh nice it has its own built in tutorials which start with the classic hello world first program example. :biggrin.gif: This should be a snap!
EDIT2: Erm ok. The Hello World tut was the only tut in Eclypse. But I found a nice Eclipse and Java for Total Beginners video tutorial series on the Eclypse site:
minebook.me (Facebook for Minecraft)