I've been working on updating mods that had been abandoned and source code was not available. I got tired of having to look up the code and replace it manually in the decomplied version of the mods, so I developed a java program that automatically unzipped the mappings downloaded from http://export.mcpbot.bspk.rs/ and went though all the files in the input folder and replaced all the obfuscated names of the methods fields and params.
I was wondering if anyone would find this program useful and wanted to know if I should upload it?
I ran it twice first updating to 1.12 references and then 1.7.10 references. Took a total of 40 mins to scan and edit each file. Really fast that I spent a day doing it by hand and wasn't anywhere near being finished.
I spent a day developing it, and some where along the line a made a simple gui and learned how to multithread making it more efficient.
Anyway what are your guy's thoughts?
ATTACHMENTS
firstrun
downloadedSource
ChooseSource
ready
in progress
Rollback Post to RevisionRollBack
My Mods:
Working on updating Little Maid Mod to 1.12 with my own twist. I am a Japanese anime fan :3 Teasers here
Blood Baubles - An addon for BloodMagic that adds related Baubles to the game. (Currently on hold)
Blood Magic Wiki - A Blood Mages Choice Encylopedia (Currently on hold)
LazyModder- A libary that makes modding easier. Currently being developed for 1.12)
Deobfuscator - A program used to deobfuscate obfuscated mods.
I'm sure people would find this useful - there's already BON2 which does a similar job but the more options the better.
When you say it takes 40 minutes to scan and edit each file - is that a .class file or a .jar? How big are your sample files?
I actually made one myself as well, although mine's a C# app which I use in conjunction with JD-GUI which does it's replacing in the .java files exported by the decompiler. I've not published it anywhere yet - I keep meaning to polish it a bit more beforehand but never quite get around to it...
Well I'm working on updating witchery, so that was my sample. its about 7.4 mb and had 803 files. I scanned it twice, once to update the refrences to the 1.12 versions then the second time to update the missing references from 1.7.10.
I know the second scan took 16 mins, and I think the first took about 30 or so (my built in timer was broken but I fixed it by the second scan.).
My program doesn't decompile them, there are other programs for that, so I could make it support jars, nut I just mad it do folds instead (I potentially will make it aloso support just zips, but that only really saves one step).
Rollback Post to RevisionRollBack
My Mods:
Working on updating Little Maid Mod to 1.12 with my own twist. I am a Japanese anime fan :3 Teasers here
Blood Baubles - An addon for BloodMagic that adds related Baubles to the game. (Currently on hold)
Blood Magic Wiki - A Blood Mages Choice Encylopedia (Currently on hold)
LazyModder- A libary that makes modding easier. Currently being developed for 1.12)
Deobfuscator - A program used to deobfuscate obfuscated mods.
Just wanted to post that I've updated my Deobfuscator. It is much faster now. The same file that took 20 mins now only takes 4. I've added some config options as well that can adjust how many threads are allowed to run at the same time.
Rollback Post to RevisionRollBack
My Mods:
Working on updating Little Maid Mod to 1.12 with my own twist. I am a Japanese anime fan :3 Teasers here
Blood Baubles - An addon for BloodMagic that adds related Baubles to the game. (Currently on hold)
Blood Magic Wiki - A Blood Mages Choice Encylopedia (Currently on hold)
LazyModder- A libary that makes modding easier. Currently being developed for 1.12)
Deobfuscator - A program used to deobfuscate obfuscated mods.
I've been working on updating mods that had been abandoned and source code was not available. I got tired of having to look up the code and replace it manually in the decomplied version of the mods, so I developed a java program that automatically unzipped the mappings downloaded from http://export.mcpbot.bspk.rs/ and went though all the files in the input folder and replaced all the obfuscated names of the methods fields and params.
I was wondering if anyone would find this program useful and wanted to know if I should upload it?
I ran it twice first updating to 1.12 references and then 1.7.10 references. Took a total of 40 mins to scan and edit each file. Really fast that I spent a day doing it by hand and wasn't anywhere near being finished.
I spent a day developing it, and some where along the line a made a simple gui and learned how to multithread making it more efficient.
Anyway what are your guy's thoughts?
My Mods:
- Happy Coding -
Well I'm working on updating witchery, so that was my sample. its about 7.4 mb and had 803 files. I scanned it twice, once to update the refrences to the 1.12 versions then the second time to update the missing references from 1.7.10.
I know the second scan took 16 mins, and I think the first took about 30 or so (my built in timer was broken but I fixed it by the second scan.).
My program doesn't decompile them, there are other programs for that, so I could make it support jars, nut I just mad it do folds instead (I potentially will make it aloso support just zips, but that only really saves one step).
My Mods:
- Happy Coding -
Just wanted to post that I've updated my Deobfuscator. It is much faster now. The same file that took 20 mins now only takes 4. I've added some config options as well that can adjust how many threads are allowed to run at the same time.
My Mods:
- Happy Coding -
Another update on the main thread. Now even faster and with some added features.
My Mods:
- Happy Coding -