I haven't even opened it. Nor have I touched it. As soon as I edit/put in my modified class files and re-obfuscate it thinks I change RenderEngine too. I have not even OPENED it.
No matter how many times I retry, it always things I changed it.
I really want to get a release out for my mod, but I can't when it thinks I changed class files I didn't.
Thoughts?
I haven't even opened it. Nor have I touched it. As soon as I edit/put in my modified class files and re-obfuscate it thinks I change RenderEngine too. I have not even OPENED it.
No matter how many times I retry, it always things I changed it.
I really want to get a release out for my mod, but I can't when it thinks I changed class files I didn't.
Thoughts?
Did you decompile it with any mods or anything in the .jar? Try putting all the class files in your normal, playable .jar, except the RenderEngine, and see if it works. If it doesn't, it must of been edited by something.
I get binary mismatch errors or something of the sort when I don't inject it in the .jar.
I'm attempting to re try it with a fresh jar as we speak, even though the one I was using was clean in the first place.
I get binary mismatch errors or something of the sort when I don't inject it in the .jar.
I'm attempting to re try it with a fresh jar as we speak, even though the one I was using was clean in the first place.
So basically, it fails without the Renderengine class?
So basically, it fails without the Renderengine class?
Yes.
I just tried a fresh jar and everything and it still thought I modified RenderEngine.class.
I'm redownloading MCP and trying a new whole install of MCP to see if that works.
Alright, which of the normal files did you modify?
GuiTexturePacks.java, GuiTexturePackSlot.java, TexturePackBase.java, TexturePackCustom.java, TexturePackBase.java. Then three new files: GuiTexturePackInfo.java, TexturePackUpdate.java, and ThreadDownloadTexturePack.java.
Perhaps by modifying those classes you changed some of the RenderEngine function signatures, which means that one of your new texture class objects is incompatibile with the original ? And that's why after recompiling the RenderEngine did change, even if the text is the same.
It's just a wild guess though.
Edit: By that I mean maybe you changed one of the fields in the texture classes from int to double and RenderEngine uses that. On the text level it's the same, but on code level the change causes this binary mismatch ?
That was just an example.
Why would it automatically change code in RenderEngine.java just by me copy and pasting files in there? It's impossible for it to do that. I didn't even start up Eclipse.
When not injecting RenderEngine/ur.class into Minecraft.jar I get this:
Exception in thread "Minecraft main thread" java.lang.IncompatibleClassChangeError: Expected non-static field er.a
at ur.b(SourceFile:124)
at net.minecraft.client.Minecraft.x(SourceFile:352)
at net.minecraft.client.Minecraft.a(SourceFile:250)
at net.minecraft.client.Minecraft.run(SourceFile:629)
at java.lang.Thread.run(Unknown Source)
I changed selectedTexturePack in TexturePackList to static and that's what's causing it. Any idea?
If you make it static the code means something entirely different, as explained by apiXz above(edit: on the previous page). Let me guess, the error you're getting is "Cannot make a static reference to a non-static method", "A non-static method cannot be referenced from a static context", or something similar?
That's exactly what I'm getting. In one of my java files I'm trying to get TexturePackList.selectedTexturePack but I've tried so many ways to grab it without setting it to static but all have failed. Any ideas?
No matter how many times I retry, it always things I changed it.
I really want to get a release out for my mod, but I can't when it thinks I changed class files I didn't.
Thoughts?
Did you decompile it with any mods or anything in the .jar? Try putting all the class files in your normal, playable .jar, except the RenderEngine, and see if it works. If it doesn't, it must of been edited by something.
I'm attempting to re try it with a fresh jar as we speak, even though the one I was using was clean in the first place.
So basically, it fails without the Renderengine class?
Yes.
I just tried a fresh jar and everything and it still thought I modified RenderEngine.class.
I'm redownloading MCP and trying a new whole install of MCP to see if that works.
Alright, which of the normal files did you modify?
GuiTexturePacks.java, GuiTexturePackSlot.java, TexturePackBase.java, TexturePackCustom.java, TexturePackBase.java. Then three new files: GuiTexturePackInfo.java, TexturePackUpdate.java, and ThreadDownloadTexturePack.java.
I did that once and had to modify maps to fix the problem :tongue.gif:
I have already tried with a completely new install of MCP and it still didn't work.
And yes, there is, it is my mod.
Why would it automatically change code in RenderEngine.java just by me copy and pasting files in there? It's impossible for it to do that. I didn't even start up Eclipse.
Look at my previous post. I stated them.
I have not touched updatenames.bat.
I changed selectedTexturePack in TexturePackList to static and that's what's causing it. Any idea?
That's exactly what I'm getting. In one of my java files I'm trying to get TexturePackList.selectedTexturePack but I've tried so many ways to grab it without setting it to static but all have failed. Any ideas?
private TexturePackList texturePackList;
texturePackList.selectedTexturePack
It's not even a static one. It doesn't say anywhere that the method is static. It's inside the run() method from a Thread, is that static?