Minecraft Source Deobfuscator is a tool for Minecraft developers that use the Minecraft Coder Pack and/or Minecraft Forge. I developed this open source tool to aid in deobfuscation of mod code.
For example, should your project not have been backed up on the cloud, grab your mod's compiled jar, decompile it, and run this tool on the source code in order to properly read the sources again.
Additionally, I have used this tool during the process of updating Minecraft mods to new versions. It can be rather handy, in fact this was my original reasoning for developing the tool in the first place.
This tool takes a selected directory of java source files and converts any found SRG names into the correctly mapped names.
What are SRG names?
SRG names are function or variable names such as "func_01234" or "field_01234" that do not have mappings applied to them yet. These names are most commonly found with MCP versions released right after a Minecraft Update. They are temporary placeholders for field or function names that have not yet been correctly mapped.
Instructions
1) Download the tool from here.
2) Run the jar you just downloaded.
3) Provide the tool with a path leading to the conf folder of an mcp or forge development environment. (ex: C:\Workspace\forge\mcp\conf\)
4) Provide the tool with a path leading to the target mods' source code. (ex: C:\Workspace\forge\mcp\src)
5) Click the 'Run' button.
6) As of right now the program automatically outputs the converted files into the same directory as the one containing the targeted sources in a folder named "output". As an example, if you put C:\sources as the target folder, the output directory location would be C:\output
Program Arguments
-a (Automatically runs the tool on launch with the specified SRG and SRC directories) -nogui (Disables the graphical interface for use with consoles. Must be used with -a) -help (Shows help)
EXAMPLE: java -jar mc-src-deobf.jar -a "C:\srg" "C:\src" -nogui
NOTE: Only Eclipse and Windows are supported as of this time
Make sure you have the Java Development Kit installed and added to your system environment variables.
In a Windows Command Prompt run "project setupWorkspace"
Import the project via Eclipse
Building the project
In a Windows Command Prompt run "project setupWorkspace"
Import the project via Eclipse
Screenshot
Disclaimer
I take no responsibility for what you do with this tool. If you use this tool to deobfuscate someone else's mod to claim the code as your own, do not come back at me claiming it's my fault. You are responsible for your own actions.
This looks amazingly useful, I'm still in awe at why this hasn't bring upon more Attention, why so? I think It looks very helpful for anyone trying to read SRG Code from other Mods aswell.
This looks amazingly useful, I'm still in awe at why this hasn't bring upon more Attention, why so? I think It looks very helpful for anyone trying to read SRG Code from other Mods aswell.
I just used it, very useful for De-compiling code into a much more readable form, and It does a pretty good job of it. Without this, I couldn't have even started to understand Methods from Other Mods. I just love how It gives you a nice output folder for the Code, you don't even have to Write the Methods in yourself! Props to you sir!
Minecraft Source Deobfuscator is a tool for Minecraft developers that use the Minecraft Coder Pack and/or Minecraft Forge. I developed this open source tool to aid in deobfuscation of mod code.
For example, should your project not have been backed up on the cloud, grab your mod's compiled jar, decompile it, and run this tool on the source code in order to properly read the sources again.
Additionally, I have used this tool during the process of updating Minecraft mods to new versions. It can be rather handy, in fact this was my original reasoning for developing the tool in the first place.
This tool takes a selected directory of java source files and converts any found SRG names into the correctly mapped names.
What are SRG names?
SRG names are function or variable names such as "func_01234" or "field_01234" that do not have mappings applied to them yet. These names are most commonly found with MCP versions released right after a Minecraft Update. They are temporary placeholders for field or function names that have not yet been correctly mapped.
Instructions
1) Download the tool from here.
2) Run the jar you just downloaded.
3) Provide the tool with a path leading to the conf folder of an mcp or forge development environment. (ex: C:\Workspace\forge\mcp\conf\)
4) Provide the tool with a path leading to the target mods' source code. (ex: C:\Workspace\forge\mcp\src)
5) Click the 'Run' button.
6) As of right now the program automatically outputs the converted files into the same directory as the one containing the targeted sources in a folder named "output". As an example, if you put C:\sources as the target folder, the output directory location would be C:\output
Program Arguments
-a (Automatically runs the tool on launch with the specified SRG and SRC directories) -nogui (Disables the graphical interface for use with consoles. Must be used with -a) -help (Shows help)
EXAMPLE: java -jar mc-src-deobf.jar -a "C:\srg" "C:\src" -nogui
GitHub
Repository URL: https://github.com/Ri5ux/MinecraftSourceDeobfuscator
Setting up a Development Environment
NOTE: Only Eclipse and Windows are supported as of this time
Building the project
Screenshot
Disclaimer
I take no responsibility for what you do with this tool. If you use this tool to deobfuscate someone else's mod to claim the code as your own, do not come back at me claiming it's my fault. You are responsible for your own actions.
Download the AliensVsPredator Minecraft Mod today at http://aliensvspredator.org
It's updated now.
Download the AliensVsPredator Minecraft Mod today at http://aliensvspredator.org
This looks amazingly useful, I'm still in awe at why this hasn't bring upon more Attention, why so? I think It looks very helpful for anyone trying to read SRG Code from other Mods aswell.
No clue, glad someone found some use for it
Download the AliensVsPredator Minecraft Mod today at http://aliensvspredator.org
I just used it, very useful for De-compiling code into a much more readable form, and It does a pretty good job of it. Without this, I couldn't have even started to understand Methods from Other Mods. I just love how It gives you a nice output folder for the Code, you don't even have to Write the Methods in yourself! Props to you sir!
Just updated this.
Download the AliensVsPredator Minecraft Mod today at http://aliensvspredator.org