Jump to content

Recommended Posts

Posted

Hello

 

I'm currently looking for way on how to replace and compile a Java file into a specific Jar.

The placement is easy, but to compile the Java file, you'd need access to the dependencies. Which I do not have.

Is there anyone out here who can tell me or even describe the way to do this?

The mod isn't open source either. The lotr mod is what I am talking about by the way, for anyone wondering.

Basically I want to add a certain piece of functionality to the mod by just changing a value.

 

Kind regards

Posted

I tried that, but the deobfuscation of the actual mod doesn't correspond with the Forge code. The mod itself still uses the obfuscated ones I think as it's rather cryptic with methods like: p_155522 (something like that). Do you have an idea of what I did wrong?

 

Thanks

Posted

I'm afraid I don't quite remember... I think I used JD-GUI as decompiler and deobfuscator, and now I see what I did wrong.. Jd-GUI is no deobfuscator, right?

 

Thanks for your patience.. :)

 

Posted

It works!!!!

Thank you so much!

Only one thing though, the deobfuscation removed every cast from Object to the type needed.

Do you know by any chance how this comes? I think it's only that.

 

Posted

Do you know what does?

It's way better than first, though.

 

Now only some type issues - should be easy to fix with some Intellij shortcut!

Posted

The Forge version I'm currently using for this mod is 1.7.10.

I forgot to add, it's not just this class.

Pardon me for not expressing myself correctly.

Do you know how to fix the problems with the casting all at once?

 

Thanks for your patience

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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