Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

1.4-1.5 decompile not working?


dayzsamc
 Share

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
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.

 Share



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • when i tried joining a world my mc crashed exit code -805306369
    • Hello There! In the 73rd episode of Bed Wars we get into a lobby with a guy who had a cool name and for some reason Ben is very impressed with the name and thus the title!  
    • I have been trying to install forge, but I can't even get the installer to run. I'm really not sure what the issue is, first let me make sure I am even using the installer right, I downloaded the forge installer matching my minecraft version (1.19.2), if I double click the .jar from the download then I see a flash of a black window that immediately disappears. If I use a command prompt, I receive the following output: C:\Users\austi> java -jar forge-1.19.2-43.0.19-installer.jar Error: Unable to access jarfile forge-1.19.2-43.0.19-installer.jar   I feel like this is more likely a java issue than a forge issue but I was hoping that people here might be able to help. I've tried a couple versions of java, at first I was using 8 I believe because all of the install guides for forge were a bit older so they linked to the java website rather than oracle. I tried version 18 from the oracle site and received the same result from command prompt. It is also entirely possible that I am doing something else wrong that is blatantly obvious to everyone else.
    • Here is my configuration: % java -version java version "18.0.2" 2022-07-19 Java(TM) SE Runtime Environment (build 18.0.2+9-61) Java HotSpot(TM) 64-Bit Server VM (build 18.0.2+9-61, mixed mode, sharing) forge-1.19-41.1.0-mdk on macOS Monterey 12.5 I ran the command: ./gradlew genEclipseRuns and was hoping it will generate the Eclipse project files for me. The run log is at https://gist.github.com/arun-gupta/06b983a6976b4c0a0f510d0dc225ddd3 and the generated directory structure is at https://gist.github.com/arun-gupta/3f5bfc70ec5d3d903b0f97d42840abda. In previous versions (1.12-ish), it used to generate an eclipse directory but 1.19 does not seem to have it. I tried opening the top-level forge directory but Eclipse does not recognize it as a project as well. How do I open this project in Eclipse now?  
    • I didn't put in credentials, I used it only for testing installing forge. But still the problem mentioned above.
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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