Problems with GUI compilation

Started by FLARESGAMING on

Topic category: Help with MCreator software

Last seen on 00:18, 9. Aug 2023
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Problems with GUI compilation
Thu, 07/27/2023 - 23:01 (edited)

i have been having problems with my GUI, im using 1.12.2 generator on 2021.1 it constantly says it cannot compile correctly (10 elements trimmed) and i can't find out what is wrong, i have all of my procedures set up and the block is set to a tile entity, i turned of my firewall and that didn't work, here is the actual error, it seems to be a CompileJava error but i have no idea what that means 

 

Executing Gradle task: runClient
Build info: MCreator 2021.1.18117, forge-1.12.2, 64-bit, 16253 MB, Windows 10, JVM 1.8.0_275, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
> Configure project :
New Dep: net.minecraftforge:forge:1.12.2-14.23.5.2855_mapped_snapshot_20171003-1.12
> Task :compileJava FAILED
C:\Users\sccar\MCreatorWorkspaces\string\src\main\java\net\mcreator\string\gui\GuiWoolPullerGUI.java:271: error: unclosed string literal this.fontRenderer.drawString("-------+"",
^
C:\Users\sccar\MCreatorWorkspaces\string\src\main\java\net\mcreator\string\gui\GuiWoolPullerGUI.java:272: error: not a statement 66, 45, -12829636);
^
C:\Users\sccar\MCreatorWorkspaces\string\src\main\java\net\mcreator\string\gui\GuiWoolPullerGUI.java:272: error: ';' expected 66, 45, -12829636);
^
3 errors
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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:c…
BUILD FAILED in 1s
1 actionable task: 1 executed
BUILD FAILED

Edited by FLARESGAMING on Thu, 07/27/2023 - 23:01
Last seen on 01:04, 13. May 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
C:\Users\sccar…
Fri, 07/28/2023 - 19:38

C:\Users\sccar\MCreatorWorkspaces\string\src\main\java\net\mcreator\string\gui\GuiWoolPullerGUI.java:271: error: unclosed string literal this.fontRenderer.drawString("-------+"",
^
C:\Users\sccar\MCreatorWorkspaces\string\src\main\java\net\mcreator\string\gui\GuiWoolPullerGUI.java:272: error: not a statement 66, 45, -12829636);
^
C:\Users\sccar\MCreatorWorkspaces\string\src\main\java\net\mcreator\string\gui\GuiWoolPullerGUI.java:272: error: ';' expected 66, 45, -12829636);
^

This seems a bit odd, like you mostly modified the GUI code manually or the text you used on some elements might interfere with MCreator generating the code of the GUI

Last seen on 00:18, 9. Aug 2023
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks, it turned out that…
Tue, 08/01/2023 - 00:51

thanks, it turned out that because i was using -------> as an arrow it couldn't compile it for some reason.