Jump to content

Recommended Posts

Posted

Ok got it to run, saw that it only takes in jar files. I did change the extension .zip to .jar, and put it as input, and I get an error. Unless I'm supposed to use a tool to change it correctly?

Member of Aerotech Networks, a Multi-Gaming server.

Also Currently porting the "Rise of the Automatons" minecraft mod

Posted

What is the error?

The errors are as follows:

 

There was an error. java.lang.NullPointerException: entry java.util.zip.ZipFile.getInputStream(Unknown Source) java.util.jar.JarFIle.getInputStream(Unknown Source) com.github.parker8283.bon2.io.FixedJarInputStream.<init>(FixedJarInputStream.java:22) com.github.parker8283.bon2.util.JarUtils.readFromJar(JarUtils.java:35) com.github.parker8283.bon2.listener.StartListener$1.run(StartListener.java:107)

 

Member of Aerotech Networks, a Multi-Gaming server.

Also Currently porting the "Rise of the Automatons" minecraft mod

Posted

The jar you want to deobfuscate needs a Manifest.

Ok, so how would I create a manifest for it? since it was a zip file before.

Member of Aerotech Networks, a Multi-Gaming server.

Also Currently porting the "Rise of the Automatons" minecraft mod

Posted

Google on how to create a jar file.

Ok got it to run completely, but dumb question. Do the files in the new jar file need to be .class files?

Member of Aerotech Networks, a Multi-Gaming server.

Also Currently porting the "Rise of the Automatons" minecraft mod

Posted

Ok a few other question I've had, for this code:

Class c : EntityList.classToStringMapping.keySet()

It returns a type mismatch, how would I correctly resolve this issue. I also had a problem with this:

switch (1.$SwitchMap$riseautomatons$entity$EnumBotMode[getMode().ordinal()])

I'd assume to make the second work I would just simplify it down to simply getMode().ordinal, or would that be incorrect?

Member of Aerotech Networks, a Multi-Gaming server.

Also Currently porting the "Rise of the Automatons" minecraft mod

Posted

For the first one, you need a cast, keySet gives you a Set<Object> (because generics are erased).

For the 2nd one, that's how a switch on enum is compiled, you can just change it back to a normal switch on the enum. It'll take a bit of work to find out which case statement is which though (a proper decompiler should figure that out though, which one are you using?)

Ok, I assumed I could cast the first one, wasn't sure. The decompiler I've used is JD-GUI, but I'd assume it wouldn't figure it out properly.

Member of Aerotech Networks, a Multi-Gaming server.

Also Currently porting the "Rise of the Automatons" minecraft mod

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.

Announcements



×
×
  • Create New...

Important Information

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