1

MCP help

killahtomato 7/28/13 8:14 am
671
7/29/2013 11:58 am
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.
Posted by
killahtomato
Level 6 : Apprentice Network
0

  Have something to say?

JoinSign in

17

killahtomato
07/29/2013 11:58 am
Level 6 : Apprentice Network
Nothing? I have searched everywhere for this and seem to come up empty.
1
killahtomato
07/28/2013 5:15 pm
Level 6 : Apprentice Network
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.
1
cuchaz
07/28/2013 4:41 pm
Level 77 : Legendary Modder
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.
1
deadrecon98
07/28/2013 4:08 pm
Level 38 : Artisan Programmer
did you recompile before you re obfuscated??
1
froghog
07/28/2013 4:11 pm
Level 63 : High Grandmaster Modder
yes he is right you have to recompile first, not at the sametime.
1
froghog
07/28/2013 3:53 pm
Level 63 : High Grandmaster Modder
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
killahtomato
07/28/2013 3:49 pm
Level 6 : Apprentice Network
@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
1
deadrecon98
07/28/2013 2:53 pm
Level 38 : Artisan Programmer
You did not explain good enough. Give me screenshots of you running the bat.
1
cuchaz
07/28/2013 2:42 pm
Level 77 : Legendary Modder
Is it one of the conf files?
1
killahtomato
07/28/2013 1:48 pm
Level 6 : Apprentice Network
runtime\bin\python\python_mcp runtime\reobfuscate.py --srgnames %

I cant find srgnames anywhere
1
cuchaz
07/28/2013 12:17 pm
Level 77 : Legendary Modder
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.
1
killahtomato
07/28/2013 11:50 am
Level 6 : Apprentice Network
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
cuchaz
07/28/2013 10:56 am
Level 77 : Legendary Modder
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
killahtomato
07/28/2013 8:59 am
Level 6 : Apprentice Network
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
TheChillaxMC
07/28/2013 8:50 am
Level 1 : New Miner
No Idea, Sorry
1
killahtomato
07/28/2013 8:49 am
Level 6 : Apprentice Network
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
TheChillaxMC
07/28/2013 8:21 am
Level 1 : New Miner
What do you mean a Admin Client?
1

Welcome