Jump to content

1.4-1.5 decompile not working?


dayzsamc

Recommended Posts

hey, so i lost my source code while migrating from my old computer to my new one. i have a copy of my mod (its for 1.4) and im trying to decompile it with mcpforge 1.4 so i can get my source back. whenever i try decompiling it says im missing files. i looked this up on google and other people are having the same issue. any help?

Link to comment
Share on other sites

The files its trying to download no longer exist on that server.

 

There are ways to fix it, but it's a pain in the arse (I did it once and have no interest in trying to duplicate it) so you might be better off using JD GUI to decompile your mod (the zip or jar you put out).  That'll get your code to a readable state and the vanilla code to SRG names (which you can do a lookup for).

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

Thank you for the help! :D But if I did this through JD GUI I would have to go through every file changing the srg's to the right names. Is there any way I can fix this without having to do all of that typing? Or is there a tool that will do that? I googled it and the tool I found directed me to a 404 page because the author deleted the download. Is there anyway I could be saved days of converting? :)

Link to comment
Share on other sites

Thank you for the help! :D But if I did this through JD GUI I would have to go through every file changing the srg's to the right names. Is there any way I can fix this without having to do all of that typing? Or is there a tool that will do that? I googled it and the tool I found directed me to a 404 page because the author deleted the download. Is there anyway I could be saved days of converting? :)

 

Dreamweaver -> Find and Replace All -> In Folder

 

That'll get the common ones like setBlock and such.  Then just keep telling it to look for func_ or field_ until you can't find any more.  And yeah, it's a pain in the butt.

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

I'd say that a bit of search-and-replace on the srg names is the least of your problems... all of your comments and fields and local variables from your own classes will be gone, which is for sure much worse?

 

Personally I wouldn't waste any time trying to automatically deobfuscate them.  Migrating from 1.4 to 1.7 or 1.8 means you would have to rewrite probably most of the calls to vanilla methods anyway. 

 

FYI if you haven't used GitHub before, take a look sometime, it's really useful for storing your code and easily synching it between different computers.  It's a bit of a hurdle to get started with git and GitHub and get used to the terminology, but if you invest a couple of hours with one of the many tutorials on the web it's for sure worth it.

 

-TGG

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.