Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • Author

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

  • Author

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

  • Author

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

  • Author

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

  • Author

Yes, BON deobfuscates class files.

Ended up finding it out xD

Member of Aerotech Networks, a Multi-Gaming server.

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

  • Author

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

  • Author

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.