Topic category: Troubleshooting, bugs, and solutions
Hi. I have had a lot of issues with this mod for a while and I was supposed to have it finished a long time ago. I really want to get this mod out but I have another error with it. Whenever I try to open the code or just open one of my GUI mod elements, it doesn't respond. In the console, it says that none of the GUI mod elements exist but that's not true. I get build errors for every procedure calling a GUI to open. It is as if the GUIs dont exist but I see them in my workspace as mod elements. Please help soon. Thanks!
Here is the console:
Executing Gradle task: build
Build info: MCreator 2022.2.34517, forge-1.16.5, 64-bit, 65536 MB, Mac OS X, JVM 17.0.3, JAVA_HOME: /Applications/MCreator 1.16.app/Contents/MacOS/jdk/Contents/Home, started on: 2023-03-02-08:22:11
> Task :compileJava
/Users/colvin/MCreatorWorkspaces/shmevp_mod/src/main/java/net/mcreator/shmeevpmod/procedures/Task1OnBlockRightClickedProcedure.java:71: error: package Task1GUIGui does not exist return new Task1GUIGui.GuiContainerMod(id, inventory, new PacketBuffer(Unpooled.buffer()).writeBlockPos(_bpos));
^
/Users/colvin/MCreatorWorkspaces/shmevp_mod/src/main/java/net/mcreator/shmeevpmod/procedures/GameTeleporterRightClickedInAirProcedure.java:68: error: package GameteleporterGUIGui does not exist return new GameteleporterGUIGui.GuiContainerMod(id, inventory, new PacketBuffer(Unpooled.buffer()).writeBlockPos(_bpos));
^
/Users/colvin/MCreatorWorkspaces/shmevp_mod/src/main/java/net/mcreator/shmeevpmod/procedures/Next2Procedure.java:68: error: package ChoosekitGUI3Gui does not exist return new ChoosekitGUI3Gui.GuiContainerMod(id, inventory, new PacketBuffer(Unpooled.buffer()).writeBlockPos(_bpos));
^
/Users/colvin/MCreatorWorkspaces/shmevp_mod/src/main/java/net/mcreator/shmeevpmod/procedures/EraseallmsgsCommandExecutedProcedure.java:68: error: package AreyousureerasemessagesGUIGui does not exist return new AreyousureerasemessagesGUIGui.GuiContainerMod(id, inventory,
^
/Users/colvin/MCreatorWorkspaces/shmevp_mod/src/main/java/net/mcreator/shmeevpmod/procedures/ChooseakitOnBlockRightClickedProcedure.java:68: error: package ChoosekitGUIGui does not exist return new ChoosekitGUIGui.GuiContainerMod(id, inventory, new PacketBuffer(Unpooled.buffer()).writeBlockPos(_bpos));
^
/Users/colvin/MCreatorWorkspaces/shmevp_mod/src/main/java/net/mcreator/shmeevpmod/procedures/NextProcedure.java:68: error: package ChoosekitGUI2Gui does not exist return new ChoosekitGUI2Gui.GuiContainerMod(id, inventory, new PacketBuffer(Unpooled.buffer()).writeBlockPos(_bpos));
^
6 errors
> Task :compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 8s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 1 minute
Also, in the workspace folder, I see the GUIs in the elements folder so that means there there. Here is the code for one of them:
{
"_fv": 39,
"_type": "gui",
"definition": {
"type": 0,
"width": 267,
"height": 166,
"inventoryOffsetX": 0,
"inventoryOffsetY": 0,
"renderBgLayer": true,
"doesPauseGame": false,
"components": [
{
"type": "label",
"data": {
"name": "label_are_you_sure_you_want_to_erase_a",
"text": {
"fixedValue": "Are you sure you want to erase all messages?"
},
"color": {
"value": -65383,
"falpha": 0.0
},
"x": 96,
"y": 44
}
},
{
"type": "button",
"data": {
"name": "button_no_take_me_back",
"text": "No, take me back",
"onClick": {
"name": "Closeallguis"
},
"width": 108,
"height": 20,
"x": 96,
"y": 107
}
},
{
"type": "button",
"data": {
"name": "button_yes_im_sure",
"text": "Yes, Im sure",
"onClick": {
"name": "Eraseallmessages"
},
"width": 87,
"height": 20,
"x": 231,
"y": 107
}
}
],
"gridSettings": {
"sx": 18,
"sy": 18,
"ox": 11,
"oy": 15,
"snapOnGrid": true
}
}
}
I was able to make a new GUI and that worked.
I noticed that in the src/main/java/gui i only see the .java codes for the new gui I made. The other ones arent there. Is there a way to get them back?
Idk why but this forum topic wont appear on my profile. Does that mean no one else can see it?