Jump to content

MCP get Names and Classes For Reflection


jredfox

Recommended Posts

Hi I know there is something for the asm getters from obfuscated names but, I am looking for general obfuscated name > class and deobname. This is so I can generate csv files but, the current ones I see only look like this
Capture.PNG.79d148935a8390dd63faf35fcbcd1796.PNG

 

Example needs for this:

Random rand = (Random) ReflectionUtil.getObject(gen, ChunkGeneratorOverworld.class, MainJava.isDeObfuscated ? "rand" : null );

What I am looking to do eventually after the csv mappings are created
 

Random rand = (Random) ReflectionUtil.getObject(gen, ChunkGeneratorOverworld.class, MCPMappings.get("rand",ChunkGeneratorOverWorld.class,MainJava.isDeobfuscated) );

 

Edited by jredfox
Link to comment
Share on other sites

Find the correct string from the CSV file. It's a comma-separated-values file, open it in literally any spreadsheet program, ctrl-F. You're probably going to find more than one field named "rand" and you're just going to have to try each one until you find the right one.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

6 hours ago, diesieben07 said:

Or use the bot on IRC, which has built-in search and you don't have to use trial and error.

I tried that No luck it has obname,deobname,side,comment when no classes attacthed I was wondering how to get classname from obname

Capture.PNG

Link to comment
Share on other sites

12 hours ago, Draco18s said:

Find the correct string from the CSV file. It's a comma-separated-values file, open it in literally any spreadsheet program, ctrl-F. You're probably going to find more than one field named "rand" and you're just going to have to try each one until you find the right one.

there is a csv file with obname and classname could you specify the path please since I cannot simply find it

Link to comment
Share on other sites

32 minutes ago, jredfox said:

installed python run file MCPBot.py does nothing

Jesus christ on a crutch.

Quote

How do I use MCPBot?

MCPBot can be accessed on the EsperNet IRC network in one of the official MCP channels. Once in a channel with MCPBot_Reborn type !help to see a list of available commands. More info on how to use the bot can be found here.

 

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

4 hours ago, diesieben07 said:

You need to use the Bot on IRC. The class names are not in the csvs.

joined.srg is this what I am looking for does it contain all fields methods and parameters?
 

FD: abo/at net/minecraft/entity/projectile/EntityThrowable/field_85053_h

 

Edit: it appears all fields are there but, are missing mappings of parameters where do I find classes of obfuscated parameters? I could get classes from everything else via joins.srg

Edited by jredfox
Link to comment
Share on other sites

1 hour ago, jredfox said:

leads to nothing irc://irc.esper.net/mcpbot

You need an IRC client.

That uri is one that would open an IRC client if you had one.
And it isn't hard to find EsperNet's webclient either.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

15 minutes ago, Draco18s said:

You need an IRC client.

That uri is one that would open an IRC client if you had one.
And it isn't hard to find EsperNet's webclient either.

No thanks I will make a reformatter program. It will take joined.srg,fields.csv,methods.csv and output two files fields_map.csve and fields_map.csve. CSVE is my library that expands on csv alowing you to define variables to call later in the csv file. Not sure if it was already suppose to be there but, it's not in java so wrote up my own code. I heard there was another way but, I can't seem to find out what it was
 

Input class and deobfuscated variable name then based on the environment return string of field/method

Edited by jredfox
Link to comment
Share on other sites

  • 2 weeks later...
On 3/2/2018 at 9:32 AM, diesieben07 said:

You need to use the Bot on IRC. The class names are not in the csvs.

ok yeah I got the fields and parameters but, where does forge store the parameter files for srg? I only see the stuff for asm but, nothing tying the srg to the srg method.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.