forum Forumsplay_arrow Minecraft fiber_manual_record Mods

1

MCP help

1 emerald17 replies561 views
created 07/28/2013 8:14 am by killahtomato
last reply 07/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 avatar
killahtomato
Level 5 : Apprentice Network
0

17 replies

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

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

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome