1
MCP help
So I have been working on an admin client for my staff on a Minecraft server I run. I have everything pretty much ready to go and at least ready to test in a real world situation. I have made a few small clients before with no problems but this one is killing me.
I'm using MCP and all is well except the re-obfuscation. It outputs the file to reobf, but it wont actually re-obfuscate. It just leaves me with .class files of the common names like , guiIngame, and not oae or whatever. It also is not outputting my new classes, such as my guiclick class. Has anyone run into this problem before? If so did you ever find a solution?
I have tried starting from scratch to get this to work, the only thing I did was back up my .java source files and copied them to the new src folder once the new .jar was decompiled. I then edited the code a bit more, just comments and notation. It produces the same results.
I even went as far as to copy the actual code back into the freshly decompiled classes, in case it checks if you actually edited the files in eclipse or something. Long shot but I am out of ideas at this point.
Any help would be greatly appreciated.
I'm using MCP and all is well except the re-obfuscation. It outputs the file to reobf, but it wont actually re-obfuscate. It just leaves me with .class files of the common names like , guiIngame, and not oae or whatever. It also is not outputting my new classes, such as my guiclick class. Has anyone run into this problem before? If so did you ever find a solution?
I have tried starting from scratch to get this to work, the only thing I did was back up my .java source files and copied them to the new src folder once the new .jar was decompiled. I then edited the code a bit more, just comments and notation. It produces the same results.
I even went as far as to copy the actual code back into the freshly decompiled classes, in case it checks if you actually edited the files in eclipse or something. Long shot but I am out of ideas at this point.
Any help would be greatly appreciated.
Create an account or sign in to comment.
17
1
Nothing? I have searched everywhere for this and seem to come up empty.
1
Yes as I have said before I have made other clients. Never had this problem, I recompile before I reobfuscate. Everything is fine except that the files do not actually obfuscate they just export without changing. They should end up in the reobf folder all obfuscated and ready to go. They unfortunately do not.
@cuchaz
It seems to point to the client.srg
Which is, as expected, a list of obfuscated names and common names.
Nothing seems awry with it.
@cuchaz
It seems to point to the client.srg
Which is, as expected, a list of obfuscated names and common names.
Nothing seems awry with it.
1
runtime\bin\python\python_mcp runtime\reobfuscate.py --srgnames %
The % means an argument to the script you found this line in. It's probably just a list of obfuscated names. Find out what calls this script and you'll get the value of that argument.
What you're really looking for is where the script expects to find your class files. You might have to dig a little deeper (and know how to read python code) to figure that out.
The % means an argument to the script you found this line in. It's probably just a list of obfuscated names. Find out what calls this script and you'll get the value of that argument.
What you're really looking for is where the script expects to find your class files. You might have to dig a little deeper (and know how to read python code) to figure that out.
1
did you recompile before you re obfuscated??
1
yes he is right you have to recompile first, not at the sametime.
1
the names after reobf will stay the same as when you had it in eclipse, and do you know how to find the files that it reobf'ed?
1
@cuchaz
Doesn't seem to be
@deadrecon98
posting fullsize pics on this forum is poop lol
here is a link:
http://img826.imageshack.us/img826/9253/ahwk.png
Doesn't seem to be
@deadrecon98
posting fullsize pics on this forum is poop lol
here is a link:
http://img826.imageshack.us/img826/9253/ahwk.png
1
You did not explain good enough. Give me screenshots of you running the bat.
1
Is it one of the conf files?
1
runtime\bin\python\python_mcp runtime\reobfuscate.py --srgnames %
I cant find srgnames anywhere
I cant find srgnames anywhere
1
In my MCP, I have two reobfs scripts:
mcp/reobfuscate.sh and mcp/reobfuscate_srg.sh (For windows, you'd use the .bat versions.) These two scripts just call python scripts anyway, so the .sh/.bat is mostly just cosmetic. Anyway, find out where those scripts are getting their class files and make sure yours are in the right place. (ie, you need to call recompile.sh first)
I always use mcp/reobfuscate_srg.sh when I compile my mods. I haven't used the mcp/reobfuscate.sh script.
mcp/reobfuscate.sh and mcp/reobfuscate_srg.sh (For windows, you'd use the .bat versions.) These two scripts just call python scripts anyway, so the .sh/.bat is mostly just cosmetic. Anyway, find out where those scripts are getting their class files and make sure yours are in the right place. (ie, you need to call recompile.sh first)
I always use mcp/reobfuscate_srg.sh when I compile my mods. I haven't used the mcp/reobfuscate.sh script.
1
Could you elaborate on that more? Where are these two scripts located? I see a client.srg file in the conf folder. That seems to list all the obfuscated - common name files, that are in the client. If that is where it's getting its info then it seems to be correct.
1
My guess is that the reobfuscation script (make sure you're using the right one. There are two) is not using the correct class files. Find out where the reobfs script expects its input class files to be and make sure your class files are there.
1
I have now completely started from scratch just to test. Made minor changes to the code, just to see what it would output. It still gives me the .class file that has the common name and not the obfuscated one. This is very frustrating.
1
No Idea, Sorry
1
It's just a client I'm making to give to the admins on my server. Do you know why MCP wont obfuscate my files?
1
What do you mean a Admin Client?