Posted 18 December 2012 - 05:53 AM
Edit2:
Solved myself:
Solved myself:
And now I got the error again. But I had an idea, and so far it has seemed to have worked:
If you get an error when reobfuscating that says one of the Minecraft source classes is missing "net/minecraft/src/ItemStack" for me when BON'd ComputerCraft is in your libs, here is how you can fix it:
1- Pass the ComputerCraft mod file through immibis' Bearded Octo Nemesis. Put the resulting jar in /mcp/jars/mods/.
(do not put it in libs)
You can now do your testing with ComputerCraft installed.
2- Grab the ComputerCraft API. Put what is in ccapi.zip/src/ into mcp/src/common/, so you end up with a dan200 folder in there.
3- Go in to /common/dan200/turtle/api/ITurtleAccess.java and find the getPosition() method. Change "public net.minecraft.src.Vec3D getPosition();" to "public net.minecraft.src.Vec3 getPosition();" (I assume a mapping update broke this and renamed the Vec3D)..
4- You should be able to use the API correctly, and do your testing working with ComputerCraft OK too.
5- When you release your addon, you can delete the computercraft API files from your mod zip/jar.
6- Should be good.
I believe the reason you get those errors as stated above is because at reobfuscation the jars in the libs folder cannot be tested against the minecraft classes. I'm not entirely sure, so don't take my word for it.