hey guys
I found a slime mod that makes slime block solidify and liquify with the use of redstone. but from what ive read this mod was abandoned in 1.5 I would really love to use this mod but it will crash when i try to load it with modloader. I was wondering if anyone would be interested in fixing it to get it to work with 1.8 etc or some advise on how i would go about editing this mod myself to get it to work with current version. I did some looking around on how to update it but not much luck. and again if anyone is interested in helping with this that would be great
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
The general way to port a mod is to decompile it with a version of MCP that matches the jar the mod is installed in, copy its sources to the current version (that you've already decompiled from stock), and then recompile. Things only get ugly if you have base class edits in the original, which it probably does. In that case, you need to figure out what changed and then port those changes to the new one yourself.
i haven't used mcp i DLd it but didn't really understand the whole process :dry.gif: hmmm ill look at it a lil more and hopefully have a lil more luck this time thanks for the help :smile.gif:
bah i think ill have to start from the very beginning to use this and start with something simple and work my way up to try to fix this :mellow.gif:
Ok, this should actually be pretty easy to port. Here's how I'd do it: Disclaimer: from memory, steps may not be exact
1: Download MCP for 1.5_01 and unzip.
2: Set up a jar with this mod and modloader installed into the jar. Copy the contents of the mod's zip inside the jar.
3: Put the jar and other files needed into MCP. Inside your mcp/jars/ folder, you should copy/paste your resources folder and your bin folder. MCP's site should have more stuff about this.
4: Run decompile.bat. This will take a bit depending on how fast your computer is.
5: In the newly-created src folder, locate the decompiled files that match the mod's files. They'll be in something like src/minecraft/net/minecraft/src/*.java.
6: Download MCP for whatever version you're porting to. I'll assume 1.8.1.
7: Repeat steps 2-4 for this version, but only install ModLoader.
8: Paste the .java files from this mod into the same place in the new source directory.
9: Run recompile.bat. If you're lucky, you'll get no errors.
10: If 9 worked, run reobfuscate.bat.
11: Make a new .zip file with the .class files in reobf/minecraft (if it worked right, it should be just your mod's files) and the sprite files/folders from the original mod's zip.
12: Install and play.
If any of that fails, or you don't understand part of it, feel free to ask questions.
question there is a gui folder that has a .ds_store file and 2 pngs do i leave them out or do i put that gui folder in the old mcp jars file? oh do i need to do a 1.5 mod loader or will a current version work?
question there is a gui folder that has a .ds_store file and 2 pngs do i leave them out or do i put that gui folder in the old mcp jars file? oh do i need to do a 1.5 mod loader or will a current version work?
.ds_store is specific to macs, you can ignore it (it stores things like how files are arranged in a folder and other such boring crap).
You don't need the gui folder with the pngs in the jar to decompile but you will need it in the mod zip when you're done so it actually runs.
And you will need a 1.5_01 modloader. I believe Risugami maintains a list of old versions.
ok i found a 1.5 mod loader and put that in mincraft jar, and the slimemod jar in minecraft as well. then i decompiled it. loaded the 8.1 mcp got a fresh minecraft bin and installed the current modloader. then decompile that, grabbed the slime java files and dumped them into the source file. recompiled it after its done i get spammed with a dozen at least errors all pertaining the slime jars here is one of them:
symbol: variable bl
location: class SlimeBlock
src\minecraft\net\minecraft\src\SlimeBlock.java:168: error: cannot find symbol
return bl != mod_SlimeBlock.SlimeBlock.bl
^
not sure what to do.
btw thanks for helping with this much appreciated :smile.gif:
Can you post the method (preferably in code tags) containing line 168 please? I can't even guess as to how to fix that without seeing the surrounding source.
e: and no problem, I like helping people who want to learn.
I found a slime mod that makes slime block solidify and liquify with the use of redstone. but from what ive read this mod was abandoned in 1.5 I would really love to use this mod but it will crash when i try to load it with modloader. I was wondering if anyone would be interested in fixing it to get it to work with 1.8 etc or some advise on how i would go about editing this mod myself to get it to work with current version. I did some looking around on how to update it but not much luck. and again if anyone is interested in helping with this that would be great
But I'm just starting at Java so I wouldnt know. Sorry.
together they are powerful beyond imagination."
The general way to port a mod is to decompile it with a version of MCP that matches the jar the mod is installed in, copy its sources to the current version (that you've already decompiled from stock), and then recompile. Things only get ugly if you have base class edits in the original, which it probably does. In that case, you need to figure out what changed and then port those changes to the new one yourself.
INFORMATION WANTS TO BE WRONG
bah i think ill have to start from the very beginning to use this and start with something simple and work my way up to try to fix this :mellow.gif:
to the starting thread for the mod My link
Disclaimer: from memory, steps may not be exact
1: Download MCP for 1.5_01 and unzip.
2: Set up a jar with this mod and modloader installed into the jar. Copy the contents of the mod's zip inside the jar.
3: Put the jar and other files needed into MCP. Inside your mcp/jars/ folder, you should copy/paste your resources folder and your bin folder. MCP's site should have more stuff about this.
4: Run decompile.bat. This will take a bit depending on how fast your computer is.
5: In the newly-created src folder, locate the decompiled files that match the mod's files. They'll be in something like src/minecraft/net/minecraft/src/*.java.
6: Download MCP for whatever version you're porting to. I'll assume 1.8.1.
7: Repeat steps 2-4 for this version, but only install ModLoader.
8: Paste the .java files from this mod into the same place in the new source directory.
9: Run recompile.bat. If you're lucky, you'll get no errors.
10: If 9 worked, run reobfuscate.bat.
11: Make a new .zip file with the .class files in reobf/minecraft (if it worked right, it should be just your mod's files) and the sprite files/folders from the original mod's zip.
12: Install and play.
If any of that fails, or you don't understand part of it, feel free to ask questions.
INFORMATION WANTS TO BE WRONG
.ds_store is specific to macs, you can ignore it (it stores things like how files are arranged in a folder and other such boring crap).
You don't need the gui folder with the pngs in the jar to decompile but you will need it in the mod zip when you're done so it actually runs.
And you will need a 1.5_01 modloader. I believe Risugami maintains a list of old versions.
INFORMATION WANTS TO BE WRONG
symbol: variable bl
location: class SlimeBlock
src\minecraft\net\minecraft\src\SlimeBlock.java:168: error: cannot find symbol
return bl != mod_SlimeBlock.SlimeBlock.bl
^
not sure what to do.
btw thanks for helping with this much appreciated :smile.gif:
e: and no problem, I like helping people who want to learn.
INFORMATION WANTS TO BE WRONG