I'm not new to modding (I've used MCP before), but I am new to Forge. I'm having trouble compiling my Forge mod. Here are the steps I'm following (starting at downloading Forge):
1) Download Forge source.
2) Extract the zip.
3) Run install.cmd (I'm on Windows).
4) Make my mod using the <forge location>/mcp/eclipse workspace.
5) Run recompile.bat from <forge location>/mcp.
6) Run reobfuscate.bat from the same folder.
Step 5, recompiling, is failing. It says "Can not find server sources, try decompiling". Am I missing a step? I was able to get it to work before, but then I went back into Eclipse to modify the mod a little and now it's not working.
If I run decompile.bat as suggested, that fails as well saying "RetroGuard error: COM.rl.obf.classFile.ClassFileException: ClassNotFound pl". I've checked the <forge location>/mcp/jars folder to make sure the bin folder, resources folder, and minecraft_server.jar were all there (those are the 3 things MCP needs to work).
In case it helps, I wrote the same mod using MCP without Forge and I was able to get it to fully work (recompiling and reobfuscating). Also in case it helps, my mod changes 2 lines of code in each of 2 Minecraft source files, and then it adds a single custom package with a single custom class in it.
Can somebody please list the basic steps to make a mod with Forge? I've followed the instructions I found on the Forge wiki and forums, but it's not working. I'm probably just missing a step. It shouldn't be too hard for someone to list the steps considering that most modders (as far as I know) use Forge.
My issue is that I can't even run recompile.bat successfully. Even if I delete the whole folder and start over completely (including rewriting my mod), I still can't run recompile.bat successfully.
I mentioned the error I am getting in the OP. I can't take a screencap of it right now because I'm having lots of trouble with my desktop (where I do my modding). I'm having to use my laptop right now.
uuuuhhhh, im having the same problem but even worse, there are also errors talking about width() length() and this is both with AND without forgeSHIZZLE MAH NIZZLE IN DAH FIZZLE WITH SHAMIZZLE
1) Download Forge source.
2) Extract the zip.
3) Run install.cmd (I'm on Windows).
4) Make my mod using the <forge location>/mcp/eclipse workspace.
5) Run recompile.bat from <forge location>/mcp.
6) Run reobfuscate.bat from the same folder.
Step 5, recompiling, is failing. It says "Can not find server sources, try decompiling". Am I missing a step? I was able to get it to work before, but then I went back into Eclipse to modify the mod a little and now it's not working.
If I run decompile.bat as suggested, that fails as well saying "RetroGuard error: COM.rl.obf.classFile.ClassFileException: ClassNotFound pl". I've checked the <forge location>/mcp/jars folder to make sure the bin folder, resources folder, and minecraft_server.jar were all there (those are the 3 things MCP needs to work).
In case it helps, I wrote the same mod using MCP without Forge and I was able to get it to fully work (recompiling and reobfuscating). Also in case it helps, my mod changes 2 lines of code in each of 2 Minecraft source files, and then it adds a single custom package with a single custom class in it.
I had the same issue and this is what fixed it for me.
.|
This, because forge mods are universal no server sources are needed.
Does that mean I can safely ignore the error? I know I wasn't getting the error before with the same version of Forge.
Yes its safe to just ignore it.