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

Posted

So I'm trying to get a GUI I made to work with forge. On its own, the GUI works properly (doesn't have any function, but everything shows and settings save on it). While trying to integrate it with forge, I created a class that allows the gui to be opened with a keybind.  However, for whatever reason this causes the GUI to open for 1 second then the minecraft and all crashes. Any ideas? 

Crash log attached.

 

crash-2017-08-25_13.37.03-client.txt

Edited by Pokeeee
Edited to post real log

  • Author
On 8/24/2017 at 11:29 AM, Alpvax said:

Code? Crash log? We aren't psychic.

Reason why I didn't post the code is because there's a lot of it. But here is the crash log: 

 

crash-2017-08-25_13.37.03-client.txt

Edited by Pokeeee
Edited to post real log

  • Author
9 hours ago, diesieben07 said:

Your code does not compile.

My bad on that one, I posted the wrong log, indeed it did not compile during that time. :/

This one should be the real one.

crash-2017-08-25_13.37.03-client.txt

Edited by Pokeeee

  • Author
3 hours ago, diesieben07 said:

Great. And now your code.

So I added it to a GitHub.

The main class of the GUI is testClientGUI and the class inGameKeyBind is what is actually opening the GUI, those should be the big ones.

In case your curious, I'm making this to see what I can do, to improve my coding skills and understanding of the game.

https://github.com/Ryan-Pereira/GUI

Edited by Pokeeee

  • Author
2 minutes ago, diesieben07 said:

At the time I replied your post did not contain the link to your repository.

 

Your repository is completely broken. The files are not in their correct folders according to their package declarations, you don't have a build.gradle, etc.

Some classes from the crash report are not there either (e.g. AJSGuildModGUI). According to the crash report, the issue is on this line, the only thing on that line that can be null is settings.

You are great, I feel dumb for this, but the issue was the reading of the settings files.

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.