So, I am looking to begin modding, and I need some help getting things to work together. I want to use the Minecraft Coder's Pack, the version of Single Player Commands that is compatible with it, ModLoader, and the Eclipse IDE all together. I can get the first two working fine, but Eclipse gives me hundreds of errors on starting, and ModLoader somehow screws up the class files, causing none of the .bat files (decompile, recompile, cleanup, etc.) to stop working altogether. Has anyone managed to get these four tools working in unison? And, if so, how? I've looked on the threads for all of the Minecraft-related ones, but the only answers are for MC 1.4 and older. Thanks in advance!
Rollback Post to RevisionRollBack
My Website. I make mods for Minecraft and am also making my own game.
LOL. Anyway, is there a way to get the other 2 working as well? I don't want to be that guy who makes a great mod, then has to rewrite the entire f***ing thing for ModLoader.
Rollback Post to RevisionRollBack
My Website. I make mods for Minecraft and am also making my own game.
Ok, so I got everything working. Just to try it out, I started working on the Grenade tutorial from the MCP page. I made it throughthe part where you make Start2.class and try the game out. However, despite the fact that everything looks fine, the game crashes on loading. Here's the error report:
Mods loaded: 1
ModLoader Beta 1.8.1
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 5424363c --------
Generated 9/25/11 8:47 PM
Minecraft: Minecraft Beta 1.8.1
OS: Windows 7 (amd64) version 6.1
Java: 1.6.0_23, Sun Microsystems Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 4600 Series version 3.3.10750 Compatibility Profile Context, ATI Technologies Inc.
java.lang.Error: Unresolved compilation problems:
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
Incompatible conditional operand types EntityLiving and SPCEntityCamera
SPCEntityCamera cannot be resolved to a type
SPCEntityCamera cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
Incompatible conditional operand types EntityLiving and SPCEntityCamera
SPCEntityCamera cannot be resolved to a type
SPCEntityCamera cannot be resolved to a type
SPCEntityCamera cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a variable
PlayerHelper cannot be resolved to a variable
PlayerHelper cannot be resolved to a variable
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
SPCVersion cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
PlayerHelper cannot be resolved to a type
SPCVersion cannot be resolved to a type
PlayerHelper cannot be resolved to a type
SPCVersion cannot be resolved to a type
SPCVersion cannot be resolved to a type
PlayerHelper cannot be resolved to a type
SPCVersion cannot be resolved to a type
SPCVersion cannot be resolved to a type
at net.minecraft.src.EntityPlayerSP.<init>(EntityPlayerSP.java:57)
at net.minecraft.src.PlayerController.createPlayer(PlayerController.java:93)
at net.minecraft.client.Minecraft.changeWorld(Minecraft.java:1322)
at net.minecraft.client.Minecraft.changeWorld2(Minecraft.java:1276)
at net.minecraft.client.Minecraft.startWorld(Minecraft.java:1215)
at net.minecraft.src.GuiSelectWorld.selectWorld(GuiSelectWorld.java:143)
at net.minecraft.src.GuiSelectWorld.actionPerformed(GuiSelectWorld.java:103)
at net.minecraft.src.GuiScreen.mouseClicked(GuiScreen.java:73)
at net.minecraft.src.GuiScreen.handleMouseInput(GuiScreen.java:120)
at net.minecraft.src.GuiScreen.handleInput(GuiScreen.java:110)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:988)
at net.minecraft.client.Minecraft.run(Minecraft.java:483)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 19d19077 ----------
Here's my code:
package net.minecraft.src;
public class ItemGrenade extends Item{
public ItemGrenade(int itemIndex){
super(itemIndex);
setIconIndex(30);
CraftingManager.getInstance().addRecipe(new ItemStack(itemsList[shiftedIndex], new Object[] {
" # ", "#X#", " # ", Character.valueOf('#'), Item.ingotIron, Character.valueOf('x'), Item.gunpowder
}));
grenadeID = shiftedIndex;
}
public static int grenadeID;
}
I am running Minecraft 1.8.1, with the correct versions of MCP, ModLoader, and SPC. I wrote the code in Eclipse and also used Eclipse to run the game.
Rollback Post to RevisionRollBack
My Website. I make mods for Minecraft and am also making my own game.
My Website. I make mods for Minecraft and am also making my own game.
I've never gotten it to work...
It is. There's just a separate version near the bottom of simo's thread that has the MCP-compatible version.
My Website. I make mods for Minecraft and am also making my own game.
Really?
Wow... That was a fail on my part :tongue.gif:
LOL. Anyway, is there a way to get the other 2 working as well? I don't want to be that guy who makes a great mod, then has to rewrite the entire f***ing thing for ModLoader.
My Website. I make mods for Minecraft and am also making my own game.
I just set it up totally fine. I've got no errors with SPC and ModLoader in eclipse.
Is your external files set up correctly?
How did you install ModLoader? And in what order did you install ML and SPC?
My Website. I make mods for Minecraft and am also making my own game.
1. Downloaded the SPC for MCP
2. Decompiled original jars in MCP
3. Added SPC files into the MCP folder, not replacing anything
4. Added ModLoader to minecraft.jar
5. Cleaned up and Decompiled everything
6. Set up eclipse with those files
Source code is easy to get...
I've got a program that will get the source code of any class files or java files...
No, i am using it to hack in any new blocks/items I make in my mod so I don't have to craft them.
My Website. I make mods for Minecraft and am also making my own game.
Thanks, I'll see if this works.
My Website. I make mods for Minecraft and am also making my own game.
Here's my code:
I am running Minecraft 1.8.1, with the correct versions of MCP, ModLoader, and SPC. I wrote the code in Eclipse and also used Eclipse to run the game.
My Website. I make mods for Minecraft and am also making my own game.