PLEASE NOTE: This is unnecessary if you are using MCP v29a (or higher) as ModLoader support is built in. For instructions on how to use ModLoader with those versions read README-ML.txt file in the MCP folder.
I was having a little trouble getting mod loader to work with minecraft coder pack. But I did manage to get it working with a custom block class as well as custom recipes. So I thought I'd write a step by step guide of what I did.
NOTE: I'm working on a windows machine (windows 7) so this process might not work if you're on a mac or linux.
NOTE: this is for the single player mode not the server.
NOTE: I managed to get this to work with the following versions:
Step 1: Start with a clean minecraft.jar
- browse to %AppData%/.minecraft and backup your local copy of the bin and resources folders.
- delete the bin and resource folders.
- run Minecraft.exe (or the executable jar)
- log in and let it finish d/ling packages
NOTE: This should ensure you've got the most up to date version of Minecraft as well as a clean jar.
- close minecraft
Step 2: Get and install the latest mod loader
- Get the latest Modloader from: http://www.minecraftforum.net/viewtopic.php?f=25&t=80246
- using a program such as WinRar open the modloader zip/rar you just downloaded.
- also locate and open the minecraft.jar file in the bin folder that should now be back there in your %appdata%/.minecraft folder
NOTE: if you get some crazy error message when you open the jar it's most likely because you're trying to open it as an executable jar file. You need to right click and open with Winrar.
- okay here's the fun part, select all of the files in the modloader zip/rar and drag and drop them into the minecraft.jar
NOTE: Be careful not to copy them into a folder inside the jar, to make sure you haven't done this scroll to find either BaseMod.class or ModLoader.class. Both should now be in the jar.
- Delete META-INF folder in the jar.
NOTE: If you do not do this then you will get a black screen on load (I did).
Step 3: Get and install the latest version of MCP
- get the latest MCP from http://www.minecraftwiki.net/wiki/Minecraft_Coder_Pack
- extract all the files in the MCP zip file somewhere that you'll remember, lets say a folder called MCP
Step 4: getting the bin and resource folders into MCP
- once again from your %appdata%/.minecraft folder select the bin and resources folders and copy them.
- locate the place that you extracted the MCP files too, open the jars folder and paste the bin and resources folders you just copied into there.
Step 5: setting up MCP to work with modloader
- as Risugami says in his thread* you have to copy the contents of this file http://dl.dropbox.com/u/20629262/Latest/MCP%20Mapping.txt
into the conf/minecraft.rgs file in the appropriate spot
*Risugami - "For MCP users, open conf/minecraft.rgs and replace ".class ModLoader" and ".class BaseMod" sections with the updated mapping below."
NOTE:: Do not delete lines allready in the file, append these lines to the end. ALSO don't forget to add your own class names into this file.
Step 6: decompile, recompile and test
- run decompile.bat
- run recompile.bat
- run test_game.bat
NOTE: If any of the above caused an error either my instructions were so poorly written that it was too hard to follow them directly, or something else that I have no idea about (sorry). Maybe I missed a step. If this is the case let me know what goes wrong and I'll re-run thru the tutorial and try to fix it up.
HOWEVER If it worked then everything is set up and ready for you to start modding!
Step 7: Start Modding! [Just in case]
- to create a mod that works with the modloader you're java class needs to start with mod_
- when you create a custom class be sure to add it to that conf/client_obfuscation.txt file
- you should be able to use the tutorials in the following thread for the actual creation of mods: http://www.minecraftforum.net/viewtopic.php?f=25&t=103030&p=1531779#p1533688
Step 8: Testing your mods
- to test your mods run recompile.bat
- in the case of errors you will have to fix them
- in the case of no errors with the latest version of modloader you should be able to run test_game.bat and actually test your mods that way. (I was able to)
Hopefully that can help a few aspiring modders who want to do the right thing and use modloader.
Ok... so what would you blame if I fallowed everything up to step to perfectly and still got a black screen on MC start up? (yes, I did delete the all important file)
Ok... so what would you blame if I fallowed everything up to step to perfectly and still got a black screen on MC start up? (yes, I did delete the all important file)
One you might not of deleted the meta folder. Two your mod breaks the game. Or three you didn't follow all the steps.
DEFINATLY deleted Meta. (in fact the game ran before I deleted it, my mods didn't kick in)
I know I fallowed all of these steps... (though I might try again)
and three: my mods are Audio Mod 1.2.6, Modloader 1.2.6, and Human +... all of which were downloaded straight from there respective topics...
DEFINATLY deleted Meta. (in fact the game ran before I deleted it, my mods didn't kick in)
I know I fallowed all of these steps... (though I might try again)
and three: my mods are Audio Mod 1.2.6, Modloader 1.2.6, and Human +... all of which were downloaded straight from there respective topics...
Your mod might break the game. Thats a definite possibility
When I decompile my mcp I keep getting:
minecraft.jar was not found, skipping,
the system cannot find the path specified
then it finishes.
Have you done step 4? You need to make sure you've copied over the minecraft bin folder from %appdata& into MCP's jars folder. Don't forget to also copy the resources folder.
If that doesn't work I would suggest a fresh install of MCP and try working with that.
OK: do I need to extract the mod before I copy it over to the Minacraft.Jar, or can I go straight from 7-zip to 7-zip? Cause that might be it...
You shouldn't need to extract the files, A drag and drop between 7-zip windows should work.
This page was originally intended for people making mods, not installing them.
If it turns out that you are trying to make a mod that works with Humans+ (or any other ModLoader mod) then you still only install ModLoader and AudioMod into the minecraft jar. You do NOT need to install humans + while you are modding. As long as you conform to the ModLoader interface and not overwrite any of the files in the jar, just add classes, then when you reobfuscate you will find in your final_out folder in MCP all of your class files. You will recognise them as they will be named exactly what you called them when you made the .java file. Copy ONLY your class files over into the minecraft.jar that's in your %appdata% folder. And then install any other mods you wish to test along side it.
From my experience, decompiling mods that aren't ModLoader you tend not to be able to recompile the code anyway. So just install them after you've installed your own.
I'm totally confused about step 5. I don't see ".class ModLoader" and ".class BaseMod" sections. I open the conf/minecraft.rgs and hit CTRL + F and search for modloader and nothing shows up. Help!
no, these are files inside of modloader. open up the modloader .zip with your program, then drag and drop all those files into the minecraft file, which you need to open with the same program. Once doing that, he tells you to check because you may have placed the files into a subfolder within the file, rather than the file itself.
--Edit--
Argh, I fail. wrong step, sorry. I'm having issues finding this text too. I've searched for mod, loader, modloader, I've run through all the .class lines too, and haven't seen it.
I'm totally confused about step 5. I don't see ".class ModLoader" and ".class BaseMod" sections. I open the conf/minecraft.rgs and hit CTRL + F and search for modloader and nothing shows up. Help!
What version of minecraft are you trying to mod?
If you're trying to mod minecraft v 1.2_02 then you need to make sure you're using the older version of minecraft coder pack. For the specific version number read the original post. In one of the newer releases of MCP the minecraft.rgs file did not have any reference to modloader, infact as far as I could tell it was incompatible.
if you are infact using the same version as I did and for some reason the .BaseMod and .ModLoader sections do not appear in the minecraft.rgs file then just paste the text into the top of the text file underneath the two .option lines like so:
However if you are trying to mod the latest version of Minecraft 1.3_1 then you may need to download the newest update of MCP and follow the instruction after the big red PLEASE NOTE in the original post.
I got that to work.
Everything works perfectly, my only problem is that, after decompiling, the command line tells me it can't find Minecraft_server.jar. If I try to recompile, it tells me that the code hasn't been decompiled.
Any help?
I got that to work.
Everything works perfectly, my only problem is that, after decompiling, the command line tells me it can't find Minecraft_server.jar. If I try to recompile, it tells me that the code hasn't been decompiled.
Any help?
That's for making SMP server mods ( it doesn't matter if you are doing a SSP mod).
I got that to work.
Everything works perfectly, my only problem is that, after decompiling, the command line tells me it can't find Minecraft_server.jar. If I try to recompile, it tells me that the code hasn't been decompiled.
Any help?
S0mbr3rero is right. You are not required to decompile the minecraft_server.jar in order to edit the single player. As for why you can't recompile i'm not sure. does it print any errors above the "cannot find minecraft_server.jar" line?
I was having a little trouble getting mod loader to work with minecraft coder pack. But I did manage to get it working with a custom block class as well as custom recipes. So I thought I'd write a step by step guide of what I did.
NOTE: I'm working on a windows machine (windows 7) so this process might not work if you're on a mac or linux.
NOTE: this is for the single player mode not the server.
NOTE: I managed to get this to work with the following versions:
ALSO my first ever post woo!
Step 1: Start with a clean minecraft.jar
- browse to %AppData%/.minecraft and backup your local copy of the bin and resources folders.
- delete the bin and resource folders.
- run Minecraft.exe (or the executable jar)
- log in and let it finish d/ling packages
NOTE: This should ensure you've got the most up to date version of Minecraft as well as a clean jar.
- close minecraft
Step 2: Get and install the latest mod loader
- Get the latest Modloader from: http://www.minecraftforum.net/viewtopic.php?f=25&t=80246
- using a program such as WinRar open the modloader zip/rar you just downloaded.
- also locate and open the minecraft.jar file in the bin folder that should now be back there in your %appdata%/.minecraft folder
NOTE: if you get some crazy error message when you open the jar it's most likely because you're trying to open it as an executable jar file. You need to right click and open with Winrar.
- okay here's the fun part, select all of the files in the modloader zip/rar and drag and drop them into the minecraft.jar
NOTE: Be careful not to copy them into a folder inside the jar, to make sure you haven't done this scroll to find either BaseMod.class or ModLoader.class. Both should now be in the jar.
- Delete META-INF folder in the jar.
NOTE: If you do not do this then you will get a black screen on load (I did).
Step 3: Get and install the latest version of MCP
- get the latest MCP from http://www.minecraftwiki.net/wiki/Minecraft_Coder_Pack
- extract all the files in the MCP zip file somewhere that you'll remember, lets say a folder called MCP
Step 4: getting the bin and resource folders into MCP
- once again from your %appdata%/.minecraft folder select the bin and resources folders and copy them.
- locate the place that you extracted the MCP files too, open the jars folder and paste the bin and resources folders you just copied into there.
Step 5: setting up MCP to work with modloader
- as Risugami says in his thread* you have to copy the contents of this file http://dl.dropbox.com/u/20629262/Latest/MCP%20Mapping.txt
into the conf/minecraft.rgs file in the appropriate spot
- As it says in the Using ModLoader with MCP wiki page http://mcp.ocean-labs.de/index.php/Using_ModLoader_with_MCP
we also need to make sure that the conf/client_obfuscation.txt contains the following lines:
NOTE:: Do not delete lines allready in the file, append these lines to the end. ALSO don't forget to add your own class names into this file.
Step 6: decompile, recompile and test
- run decompile.bat
- run recompile.bat
- run test_game.bat
NOTE: If any of the above caused an error either my instructions were so poorly written that it was too hard to follow them directly, or something else that I have no idea about (sorry). Maybe I missed a step. If this is the case let me know what goes wrong and I'll re-run thru the tutorial and try to fix it up.
HOWEVER If it worked then everything is set up and ready for you to start modding!
Step 7: Start Modding! [Just in case]
- to create a mod that works with the modloader you're java class needs to start with mod_
- when you create a custom class be sure to add it to that conf/client_obfuscation.txt file
- you should be able to use the tutorials in the following thread for the actual creation of mods: http://www.minecraftforum.net/viewtopic.php?f=25&t=103030&p=1531779#p1533688
Step 8: Testing your mods
- to test your mods run recompile.bat
- in the case of errors you will have to fix them
- in the case of no errors with the latest version of modloader you should be able to run test_game.bat and actually test your mods that way. (I was able to)
Hopefully that can help a few aspiring modders who want to do the right thing and use modloader.
- Node Reaver -
Twitter
Blog
YouTube
minecraft.jar was not found, skipping,
the system cannot find the path specified
then it finishes.
Click it!
Or the
CreepersSlimes will attack youOne you might not of deleted the meta folder. Two your mod breaks the game. Or three you didn't follow all the steps.
DEFINATLY deleted Meta. (in fact the game ran before I deleted it, my mods didn't kick in)
I know I fallowed all of these steps... (though I might try again)
and three: my mods are Audio Mod 1.2.6, Modloader 1.2.6, and Human +... all of which were downloaded straight from there respective topics...
Your mod might break the game. Thats a definite possibility
OK: do I need to extract the mod before I copy it over to the Minacraft.Jar, or can I go straight from 7-zip to 7-zip? Cause that might be it...
Wait your trying to install a mod not make one?
Have you done step 4? You need to make sure you've copied over the minecraft bin folder from %appdata& into MCP's jars folder. Don't forget to also copy the resources folder.
If that doesn't work I would suggest a fresh install of MCP and try working with that.
You shouldn't need to extract the files, A drag and drop between 7-zip windows should work.
This page was originally intended for people making mods, not installing them.
If it turns out that you are trying to make a mod that works with Humans+ (or any other ModLoader mod) then you still only install ModLoader and AudioMod into the minecraft jar. You do NOT need to install humans + while you are modding. As long as you conform to the ModLoader interface and not overwrite any of the files in the jar, just add classes, then when you reobfuscate you will find in your final_out folder in MCP all of your class files. You will recognise them as they will be named exactly what you called them when you made the .java file. Copy ONLY your class files over into the minecraft.jar that's in your %appdata% folder. And then install any other mods you wish to test along side it.
From my experience, decompiling mods that aren't ModLoader you tend not to be able to recompile the code anyway. So just install them after you've installed your own.
Lots More Humans (Beta 1.5_01)
--Edit--
Argh, I fail. wrong step, sorry. I'm having issues finding this text too. I've searched for mod, loader, modloader, I've run through all the .class lines too, and haven't seen it.
What version of minecraft are you trying to mod?
If you're trying to mod minecraft v 1.2_02 then you need to make sure you're using the older version of minecraft coder pack. For the specific version number read the original post. In one of the newer releases of MCP the minecraft.rgs file did not have any reference to modloader, infact as far as I could tell it was incompatible.
if you are infact using the same version as I did and for some reason the .BaseMod and .ModLoader sections do not appear in the minecraft.rgs file then just paste the text into the top of the text file underneath the two .option lines like so:
However if you are trying to mod the latest version of Minecraft 1.3_1 then you may need to download the newest update of MCP and follow the instruction after the big red PLEASE NOTE in the original post.
Everything works perfectly, my only problem is that, after decompiling, the command line tells me it can't find Minecraft_server.jar. If I try to recompile, it tells me that the code hasn't been decompiled.
Any help?
That's for making SMP server mods ( it doesn't matter if you are doing a SSP mod).
I am almost sure of that.
S0mbr3rero is right. You are not required to decompile the minecraft_server.jar in order to edit the single player. As for why you can't recompile i'm not sure. does it print any errors above the "cannot find minecraft_server.jar" line?
<!-- l -->List of all my other mods,creations,maps,etc..:
viewtopic.php?f=1039&t=325080&p=4488802#p4488802
<!-- l -->:smile.gif:
Thanks
+ Bookmarked