Posted August 23, 20178 yr 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 August 25, 20178 yr by Pokeeee Edited to post real log
August 24, 20178 yr 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 August 25, 20178 yr by Pokeeee Edited to post real log
August 25, 20178 yr 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 August 25, 20178 yr by Pokeeee
August 25, 20178 yr 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 August 25, 20178 yr by Pokeeee
August 25, 20178 yr 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.