Code Monkey home page Code Monkey logo

lukflug / panelstudio Goto Github PK

View Code? Open in Web Editor NEW
307.0 9.0 22.0 6.35 MB

An extensible and customizable GUI API/library to create ClickGUIs, HUDEditors and TabGUIs designed for use in Minecraft utility mods.

Home Page: https://lukflug.github.io/panelstudio.html

License: MIT License

Java 100.00%
java library api gui minecraft minecraft-mod utility-mod 2b2t gamesense-client forge forge-mod minecraft-forge minecraft-forge-mod fabric fabricmc fabricmc-mod fabric-mod minecraft-gui hud hacktoberfest

panelstudio's Introduction

PanelStudio

An extensible and customizable GUI API/library to create ClickGUIs, HUDEditors and TabGUIs designed for use in Minecraft utility mods. It was originally designed for a private client, but made open source, so that it could be used for GameSense.

The library has no depedencies (aside from Java 8), so it can be easily used for other purposes, aside from Minecraft utility mods. Thanks to Go_Hoosiers, for suggesting the name of this library. If you use this library, some attribution would be greatly appreciated. Also consider visiting the PanelStudio discord server: https://discord.gg/E3DrF4XvUE.

In addition to the core PanelStudio library, there are the PanelStudio-MC support libraries, which depend on Minecraft:

Library Example Mod Target
panelstudio-mc12 example-mod12 Minecraft Forge 1.12.2
panelstudio-mc16-fabric example-mod16-fabric FabricMC 1.16.5
panelstudio-mc16-forge example-mod16-forge Minecraft Forge 1.16.5
panelstudio-mc8-fabric example-mod8-fabric Legacy Fabric 1.8.9
panelstudio-mc8-forge example-mod8-forge Minecraft Forge 1.8.9
panelstudio-mc17 example-mod17 & example-mod18 FabricMC 1.17.1 & 1.18.2
panelstudio-mc19 example-mod19 FabricMC 1.19.2
panelstudio-mc194 example-mod194 FabricMC 1.19.4
panelstudio-mc20 example-mod20 FabricMC 1.20

Minecraft versions or APIs not in this table can also be used with PanelStudio, but the small PanelStudio-MC library has to be ported, which shouldn't be hard in most cases.

Credits

  • Thanks to NirvanaNevermind for making the original port of PanelStudio-MC to Fabric 1.8.9!
  • Thanks to Go_Hoosiers (aka. GooberTown or IUDevman) for designing the original PanelStudio logo!
  • Thanks to Chomp for making a pull request to change the readme, I guess.
  • Thanks to Diliard for porting PanelStudio-MC to Fabric 1.19.2!
  • Thanks to RitomG69 for porting PanelStudio-MC to Fabric 1.19.4 and 1.20!

Features

  • Everything is flexible and can be extended.
  • Wide variety of widgets.
  • Ability to easily create new themes/skins.
  • A large amount of combinations of layouts.
  • Any combination of theme and layout is possible, thus having a huge amount of options, even with the default themes and layouts.
  • Smooth animations and scrolling.
  • Ability to have HUD components in panels. Unfortunately, performance isn't the best, so not every combination makes sense.

Documentation and Help

Here are some useful resources to figure out PanelStudio:

Screenshots

Here are some examples of what PanelStudio can accomplish (note: some of the presented themes are private an not available on this repository): a b c d e f g h i j k l m n o p

panelstudio's People

Contributors

chompchompdead avatar diliard avatar iudevman avatar lukflug avatar mister-ritom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

panelstudio's Issues

how to get a module

lets say i need to make some modules in mixins and i need to do

if(?.getModule(MyModule.class).isEnabled().isOn())

how do i do it?

1.16.5 Text is getting mad

After compiling jar for 1.16.5 forge, i entered the menu and saw this sh*t:
image
How to fix this bad text.

ClassNotFoundException when clickgui gets initialized

``Hello, i'm having an issue when trying to initialize the clickgui,i think its a gradle problem. everything works fine on the runClient task but when trying to initialize the client from the jar in the minecraft launcher it crashes with this error: https://pastebin.com/wdqdxha0
This is my build.gradle file:

plugins {
	id 'fabric-loom' version '0.7.27'
	id 'maven-publish'
	id "com.github.johnrengelman.shadow" version "7.0.0"
}

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group

minecraft {
}

repositories {
	mavenLocal()
	mavenLocal()
	jcenter()

	maven {
		url = "https://jitpack.io"
	}

	maven {
		name = 'lukflug'
		url = 'https://lukflug.github.io/maven'
	}
}

dependencies {
	//to change the versions see the gradle.properties file
	minecraft ("com.mojang:minecraft:${project.minecraft_version}")
	mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
	modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

	modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"

	implementation include("com.lukflug:panelstudio:0.1.8")
	modImplementation include("com.lukflug:panelstudio-mc16:0.1.9")


	implementation include('club.minnced:java-discord-rpc:2.0.1')
}

shadowJar{
	dependencies{
		include(dependency("com.lukflug:panelstudio"))
		include(dependency("com.lukflug:panelstudio-mc16"))
		include(dependency('club.minnced:java-discord-rpc:2.0.1'))
	}
}

processResources {
	inputs.property "version", project.version

	filesMatching("fabric.mod.json") {
		expand "version": project.version
	}
}

// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
tasks.withType(JavaCompile).configureEach {
	it.options.encoding = "UTF-8"
	def targetVersion = 8
	if (JavaVersion.current().isJava9Compatible()) {
		it.options.release = targetVersion
	}
}

// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this task, sources will not be generated.
task sourcesJar(type: Jar, dependsOn: classes) {
	classifier = "sources"
	from sourceSets.main.allSource
}

jar {
	from("LICENSE") {
		rename { "${it}_${project.archivesBaseName}"}
	}
}

remapJar {
	dependsOn(shadowJar)
	input.set(shadowJar.archiveFile)
}

java {
	withSourcesJar()
}

// configure the maven publication
publishing {
	publications {
		mavenJava(MavenPublication) {
			// add all the jars that should be included when publishing to maven
			artifact(jar) {
				builtBy remapJar
			}
			artifact("${project.buildDir.absolutePath}/libs/${archivesBaseName}-${project.version}.jar"){
				builtBy remapJar
			}
			artifact(sourcesJar) {
				builtBy remapSourcesJar
			}
		}
	}


	// select the repositories you want to publish to
	repositories {
		// uncomment to publish to the local maven
		// mavenLocal()
	}
}

It works fine in runClient task with panelstudio and it shows up correctly but when building it to jar and launching it it crashes with this error, i checked and deleted the clickgui, then rebuilt the jar and launched and it worked fine again so its probably an issue caused by me importing uncorrectly panelstudio from gradle. would be awesome if you could help me

gradle bad pls help (could not find method shadowJar())

C:\Users\*****\OneDrive\Documents\KeolForge\KeolForge>gradlew genEclipseRuns
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.9/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing

> Configure project :
New Dep: net.minecraftforge:forge:1.12.2-14.23.5.2855_mapped_snapshot_20171003-1.12

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\*****\OneDrive\Documents\KeolForge\KeolForge\build.gradle' line: 130

* What went wrong:
A problem occurred evaluating root project 'KeolForge'.
> Could not find method shadowJar() for arguments [build_3ys6d1w3s9rwa11pm193i5zbz$_run_closure7@63cc372c] on root project 'KeolForge' of type org.gradle.api.Project.

* 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:command_line_warnings

BUILD FAILED in 24s

Help pls

Doesn't work on Mac

My gui works fine on a Windows laptop, but I tested it on my MacBook and suddenly the modules inside the categories wouldn't render (They seem to be displaced by twice the distance they should be).

how to create hudgui?

how to make hudgui render?
I followed the example and used gamesenses resources
in clickgui itself the component has been rendered, but when the gui is closed it disappears

please add more examples using hudgui

Keybinds run while in chat/menus

Trying to use the example-18 in 1.18.2, the keybind is executed even when im in chat which is VERY annoying, any ideas on how I can fix it?

PanelStudio Wont Open

I've downloaded the jars, but they wont open. Did I do something wrong?

Edit: Nevermind, I didn't realise it was a mod, not a program.

Issue when compiling and using the library in my mod

Compiling goes fine, but when i try to launch the game, i get a ClassDefNotFound error with the class net.minecraft.gui.screen, which you use in your mod. I somehow cannot get this to work. How can i fix this?

My build script:

plugins {
	id 'fabric-loom' version '0.5-SNAPSHOT'
	id 'maven-publish'
	id "com.github.johnrengelman.shadow" version "6.1.0"
}

archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group

minecraft {
}

shadowJar {
	dependencies {
		include(dependency('com.lukflug:panelstudio'))
		include(dependency('com.lukflug:panelstudio-mc16'))
		exclude(dependency("com.mojang:minecraft:${project.minecraft_version}"))
	}
}

repositories {
	maven {
		name = 'lukflug'
		url = 'https://lukflug.github.io/maven'
	}
}
dependencies {
	//to change the versions see the gradle.properties file
	minecraft "com.mojang:minecraft:${project.minecraft_version}"
	mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
	modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

	modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"
	modCompile "com.lukflug:panelstudio-mc16:0.1.9"
	modCompile "com.lukflug:panelstudio:0.1.8"
	modImplementation(include("com.lukflug:panelstudio-mc16:0.1.9"))
	modImplementation(include("com.lukflug:panelstudio:0.1.8"))
}

processResources {
	inputs.property "version", project.version

	from(sourceSets.main.resources.srcDirs) {
		include "fabric.mod.json"
		expand "version": project.version
	}

	from(sourceSets.main.resources.srcDirs) {
		exclude "fabric.mod.json"
	}
}

// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
tasks.withType(JavaCompile) {
	options.encoding = "UTF-8"
}

// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this task, sources will not be generated.
task sourcesJar(type: Jar, dependsOn: classes) {
	classifier = "sources"
	from sourceSets.main.allSource
}

jar {
	from "LICENSE"
}

// configure the maven publication
publishing {
	publications {
		mavenJava(MavenPublication) {
			// add all the jars that should be included when publishing to maven
			artifact(jar) {
				builtBy remapJar
			}
			artifact("${project.buildDir.absolutePath}/libs/${archivesBaseName}-${project.version}.jar"){
				builtBy remapJar
			}
			artifact(sourcesJar) {
				builtBy remapSourcesJar
			}
		}
	}

	// select the repositories you want to publish to
	repositories {
		// uncomment to publish to the local maven
		// mavenLocal()
	}
}

Notable to mention: Fabric places both libs in the jars dir in META-INF. This may be part of the issue, but i dont know how to compile it otherwise. The shadowjar method you list in the readme includes the mappings and the remapped classes, so that wont work.

Update

Is iti possible to update this to 1.18.2?

HUD rendering causes crash after loading the world

I tried to use OakClient base code for my mod. Let me clarify that there is no HUD in OakClient itself. It shown in ClickGUI or HudEditor, but not in the game itself. I tried to slightly change the code of the main class to make it as close as possible to the example from the PanelStudio repository.

I’ll say right away that I’m just learning Java and I’m not saying that the problem is in PanelStudio itself, but I just don’t know who else I can turn to for help. Sorry.

Crash Log (There are no errors or warns in the rest part the log)
https://paste.gg/p/anonymous/f128659adb004b58ac01cd98ca4f3c90

Main class
https://paste.gg/p/anonymous/df468e2b663d41b28a5436a70dd88195

ClickGUI class (I changed almost nothing, it seems to me)
https://paste.gg/p/anonymous/bcffafd116fe439c81cb7ce62fb25c49

OakClient
https://github.com/desertcod98/OakClient/tree/main/src/main/java/me/leeeaf/oakclient

build.gradle ???
https://paste.gg/p/anonymous/f13e88c4551c49df9ad59bd91f3e2da8

Help me, please

gui.enterGUI() gives an error.

It also doesn't open the ClickGUI.
The source is here.
This is the error:

[15:51:30] [main/INFO] (Minecraft) [STDERR]: java.lang.reflect.InvocationTargetException
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at net.dent.client.event.Event.lambda$call$0(Event.java:41)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:807)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at net.dent.client.event.Event.call(Event.java:39)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at net.minecraft.client.Keyboard.handler$zhh000$onOnKey(Keyboard.java:517)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at net.minecraft.client.Keyboard.onKey(Keyboard.java)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at net.minecraft.client.Keyboard.method_22678(Keyboard.java:385)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at net.minecraft.util.thread.ThreadExecutor.execute(ThreadExecutor.java:86)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at net.minecraft.client.Keyboard.method_22676(Keyboard.java:385)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at org.lwjgl.glfw.GLFWKeyCallbackI.callback(GLFWKeyCallbackI.java:37)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at org.lwjgl.system.JNI.invokeV(Native Method)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3101)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:89)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at net.minecraft.client.util.Window.swapBuffers(Window.java:339)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at net.minecraft.client.MinecraftClient.render(MinecraftClient.java:1026)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at net.minecraft.client.MinecraftClient.run(MinecraftClient.java:624)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at net.minecraft.client.main.Main.main(Main.java:187)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:226)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:139)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:27)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: Caused by: java.lang.NullPointerException
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at net.dent.client.module.modules.render.GUI.onEnable(GUI.java:20)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at net.dent.client.module.Module.toggle(Module.java:91)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	at net.dent.client.module.ModuleManager.onKey(ModuleManager.java:61)
[15:51:30] [main/INFO] (Minecraft) [STDERR]: 	... 28 more

The game does not crash.

How do I fix this?

Non-draggable? (Feature request)

I am not aware of any way to modify the panels so that they aren't draggable... any chance you could add this functionality? If not, how would I go about doing this myself?

Game crashes when trying to load the mod(i added mixins so that might be the problem)

---- Minecraft Crash Report ----

WARNING: coremods are present:
  MixinLoader (AsdawareGUI-0.1-release.jar)
Contact their authors BEFORE contacting forge

// Why did you do that?

Time: 2/2/22 8:19 AM
Description: There was a severe problem during mod loading that has caused the game to fail

net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Asdaware (awc)
Caused by: java.lang.NoClassDefFoundError: me/asdacashier/asdaware/module/Category
	at me.asdacashier.asdaware.AsdaWare.addModules(AsdaWare.java:46)
	at me.asdacashier.asdaware.AsdaWare.init(AsdaWare.java:62)

Tutorial

It would be awesome when you could release a tutorial on how to use this because im frickin stupid

gg, compiled mod wont open (cum issue)

net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Cum Hack (cumhack)
Caused by: java.lang.NoSuchMethodError: net.minecraft.client.renderer.GLAllocation.createDirectFloatBuffer(I)Ljava/nio/FloatBuffer;
at com.lukflug.panelstudio.mc12.GLInterface.(GLInterface.java:37)
at com.newcummer.cumhack.gui.Gui.(Gui.java:32)
at com.newcummer.cumhack.Main.init(Main.java:52)

how do i fix this

"Could not find shadowJar()"?

I have hardly any experience with gradle, and this is probably a mistake on my end. This is my build.gradle:

plugins {
	id 'fabric-loom' version '0.5-SNAPSHOT'
	id 'maven-publish'
}

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group

repositories {
    // Add repositories to retrieve artifacts from in here.
    // You should only use this when depending on other mods because
    // Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
    // See https://docs.gradle.org/current/userguide/declaring_repositories.html
    // for more information about repositories.
	maven {
		name = 'lukflug'
		url = 'https://lukflug.github.io/maven'
	}
}

dependencies {
	// To change the versions see the gradle.properties file
	minecraft "com.mojang:minecraft:${project.minecraft_version}"
	mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
	modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

	// Fabric API. This is technically optional, but you probably want it anyway.
	modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

	//Lukflug's PanelStudio
	compile('com.lukflug:panelstudio:0.1.8')
	modCompile('com.lukflug:panelstudio-mc16:0.1.9')
	
	// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
	// You may need to force-disable transitiveness on them.
}

//Lukflug's PanelStudio
shadowJar {
	dependencies {
		include(dependency('com.lukflug:panelstudio'))
		include(dependency('com.lukflug:panelstudio-mc16'))
	}
}

processResources {
	inputs.property "version", project.version

	filesMatching("fabric.mod.json") {
		expand "version": project.version
	}
}

tasks.withType(JavaCompile).configureEach {
	// ensure that the encoding is set to UTF-8, no matter what the system default is
	// this fixes some edge cases with special characters not displaying correctly
	// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
	// If Javadoc is generated, this must be specified in that task too.
	it.options.encoding = "UTF-8"

	// The Minecraft launcher currently installs Java 8 for users, so your mod probably wants to target Java 8 too
	// JDK 9 introduced a new way of specifying this that will make sure no newer classes or methods are used.
	// We'll use that if it's available, but otherwise we'll use the older option.
	def targetVersion = 8
	if (JavaVersion.current().isJava9Compatible()) {
		 it.options.release = targetVersion
	}
}

java {
	// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
	// if it is present.
	// If you remove this line, sources will not be generated.
	withSourcesJar()
}



jar {
	from("LICENSE") {
		rename { "${it}_${project.archivesBaseName}"}
	}
}

// configure the maven publication
publishing {
	publications {
		mavenJava(MavenPublication) {
			// add all the jars that should be included when publishing to maven
			artifact(remapJar) {
				builtBy remapJar
			}
			artifact(sourcesJar) {
				builtBy remapSourcesJar
			}
		}
	}
    
    // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
    repositories {
        // Add repositories to publish to here.
        // Notice: This block does NOT have the same function as the block in the top level.
        // The repositories here will be used for publishing your artifact, not for
        // retrieving dependencies.
    }
}

and here is the error it shows:
> Could not find method shadowJar() for arguments [build_grs068kl74kuz0pe0gryllew$_run_closure3@3f067d47] on root project 'DentClient' of type org.gradle.api.Project.

How do I fix this?

crash game example code

---- Minecraft Crash Report ----

WARNING: coremods are present:
TLSkinCapeHookLoader (tlskincape_1.8.9-1.4.jar)
Contact their authors BEFORE contacting forge

// You should try our sister game, Minceraft!

Time: 3/9/22 2:29 PM
Description: Unexpected error

java.lang.NoSuchMethodError: net.minecraft.client.Minecraft.getMinecraft()Lnet/minecraft/client/Minecraft;
at com.lukflug.panelstudio.mc8forge.MinecraftGUI.enterGUI(MinecraftGUI.java:40)
at com.lukflug.panelstudio.mc8forge.MinecraftHUDGUI.enterGUI(MinecraftHUDGUI.java:22)
at net.dumbteam.clients.InstanceClient.onKeyInput(InstanceClient.java:70)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_7_InstanceClient_onKeyInput_KeyInputEvent.invoke(.dynamic)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:49)
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:140)
at net.minecraftforge.fml.common.FMLCommonHandler.fireKeyInput(FMLCommonHandler.java:547)
at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1954)
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1024)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:349)
at net.minecraft.client.main.Main.main(SourceFile:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

A detailed walkthrough of the error, its code path and all known details is as follows:

-- Head --
Stacktrace:
at com.lukflug.panelstudio.mc8forge.MinecraftGUI.enterGUI(MinecraftGUI.java:40)
at com.lukflug.panelstudio.mc8forge.MinecraftHUDGUI.enterGUI(MinecraftHUDGUI.java:22)
at net.dumbteam.clients.InstanceClient.onKeyInput(InstanceClient.java:70)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_7_InstanceClient_onKeyInput_KeyInputEvent.invoke(.dynamic)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:49)
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:140)
at net.minecraftforge.fml.common.FMLCommonHandler.fireKeyInput(FMLCommonHandler.java:547)

-- Affected level --
Details:
Level name: MpServer
All players: 6 total; [EntityOtherPlayerMP['NPC #1'/8906, l='MpServer', x=1.47, y=4.00, z=-278.41], EntityOtherPlayerMP['NPC #3'/13, l='MpServer', x=-9.50, y=4.00, z=-281.50], EntityOtherPlayerMP['NPC #4'/16, l='MpServer', x=-15.59, y=4.00, z=-281.56], EntityOtherPlayerMP['NPC #5'/19, l='MpServer', x=-15.50, y=4.00, z=-275.50], EntityOtherPlayerMP['NPC #2'/9028, l='MpServer', x=-9.50, y=4.00, z=-275.50], EntityPlayerSP['mmad'/10412, l='MpServer', x=26.07, y=4.00, z=-289.50]]
Chunk stats: MultiplayerChunkCache: 169, 169
Level seed: 0
Level generator: ID 01 - flat, ver 0. Features enabled: false
Level generator options:
Level spawn location: 8.00,64.00,8.00 - World: (8,64,8), Chunk: (at 8,4,8 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 28332 game time, 1000 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
Forced entities: 30 total; [EntityPlayerSP['mmad'/10412, l='MpServer', x=26.50, y=4.00, z=-289.50], EntityVillager['Villager'/10368, l='MpServer', x=16.38, y=1.00, z=-276.34], EntityOtherPlayerMP['NPC #1'/8906, l='MpServer', x=1.47, y=4.00, z=-278.41], EntityVillager['Villager'/10370, l='MpServer', x=13.44, y=1.00, z=-276.75], EntityVillager['Villager'/10371, l='MpServer', x=19.75, y=1.00, z=-273.44], EntityOtherPlayerMP['NPC #2'/9028, l='MpServer', x=-9.50, y=4.00, z=-275.50], EntityVillager['Villager'/10375, l='MpServer', x=20.41, y=1.00, z=-283.25], EntityVillager['Villager'/10377, l='MpServer', x=15.19, y=1.06, z=-280.19], EntityOtherPlayerMP['NPC #1'/8906, l='MpServer', x=1.47, y=4.00, z=-278.41], EntityOtherPlayerMP['NPC #3'/13, l='MpServer', x=-9.50, y=4.00, z=-281.50], EntityOtherPlayerMP['NPC #4'/16, l='MpServer', x=-15.59, y=4.00, z=-281.56], EntityOtherPlayerMP['NPC #5'/19, l='MpServer', x=-15.50, y=4.00, z=-275.50], EntityVillager['Villager'/10329, l='MpServer', x=14.38, y=1.00, z=-276.16], EntityVillager['Villager'/10393, l='MpServer', x=10.28, y=1.00, z=-282.70], EntityVillager['Villager'/10337, l='MpServer', x=20.69, y=1.00, z=-278.28], EntityVillager['Villager'/10338, l='MpServer', x=12.06, y=1.00, z=-283.34], EntityVillager['Villager'/10339, l='MpServer', x=15.41, y=1.00, z=-283.44], EntityVillager['Villager'/10404, l='MpServer', x=10.63, y=1.00, z=-281.81], EntityVillager['Villager'/10405, l='MpServer', x=20.69, y=1.00, z=-274.41], EntityVillager['Villager'/10408, l='MpServer', x=11.16, y=1.00, z=-283.59], EntityOtherPlayerMP['NPC #3'/13, l='MpServer', x=-9.50, y=4.00, z=-281.50], EntityOtherPlayerMP['NPC #4'/16, l='MpServer', x=-15.59, y=4.00, z=-281.56], EntityOtherPlayerMP['NPC #5'/19, l='MpServer', x=-15.50, y=4.00, z=-275.50], EntityOtherPlayerMP['NPC #2'/9028, l='MpServer', x=-9.50, y=4.00, z=-275.50], EntityPlayerSP['mmad'/10412, l='MpServer', x=26.07, y=4.00, z=-289.50], EntityVillager['Villager'/10357, l='MpServer', x=19.09, y=1.00, z=-283.72], EntityVillager['Villager'/10358, l='MpServer', x=11.16, y=1.00, z=-273.91], EntityVillager['Villager'/10363, l='MpServer', x=15.22, y=1.00, z=-282.41], EntityVillager['Villager'/10365, l='MpServer', x=11.60, y=1.00, z=-274.79], EntityVillager['Villager'/10367, l='MpServer', x=10.28, y=1.00, z=-283.59]]
Retry entities: 0 total; []
Server brand: NachoSpigot
Server type: Non-integrated multiplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.func_72914_a(WorldClient.java:402)
at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2536)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:378)
at net.minecraft.client.main.Main.main(SourceFile:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

-- System Details --
Details:
Minecraft Version: 1.8.9
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 193147664 bytes (184 MB) / 434499584 bytes (414 MB) up to 3207856128 bytes (3059 MB)
JVM Flags: 3 total; -Xmn128M -Xmx3071M -XX:+UseConcMarkSweepGC
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP 9.19 Powered by Forge 11.15.1.1764 Optifine OptiFine_1.8.9_HD_U_M5 5 mods loaded, 5 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJA mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)
UCHIJA FML{8.0.99.99} [Forge Mod Loader] (forge-1.8.9-11.15.1.1764.jar)
UCHIJA Forge{11.15.1.1764} [Minecraft Forge] (forge-1.8.9-11.15.1.1764.jar)
UCHIJA instanceclient{1.0-SNAPSHOT} [Instance Client] (InstanceClient.jar)
UCHIJA tlauncher_custom_cape_skin{1.4} [TLSkinCape] (tlskincape_1.8.9-1.4.jar)
Loaded coremods (and transformers):
TLSkinCapeHookLoader (tlskincape_1.8.9-1.4.jar)
gloomyfolken.hooklib.minecraft.PrimaryClassTransformer
GL info: ' Vendor: 'NVIDIA Corporation' Version: '3.3.0' Renderer: 'GeForce 210/PCIe/SSE2'
Launched Version: ForgeOptiFine 1.8.9
LWJGL: 2.9.4
OpenGL: GeForce 210/PCIe/SSE2 GL version 3.3.0, NVIDIA Corporation
GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

Using VBOs: No
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: 
Current Language: English (US)
Profiler Position: N/A (disabled)
CPU: 2x Pentium(R) Dual-Core CPU E5300 @ 2.60GHz
OptiFine Version: OptiFine_1.8.9_HD_U_M5
OptiFine Build: 20210124-163719
Render Distance Chunks: 8
Mipmaps: 4
Anisotropic Filtering: 1
Antialiasing: 0
Multitexture: false
Shaders: null
OpenGlVersion: 3.3.0
OpenGlRenderer: GeForce 210/PCIe/SSE2
OpenGlVendor: NVIDIA Corporation
CpuCount: 2

my game crashes when i execute enterGui()

the console will tell you that the error is in this block of code:
DraggableContainer categoryPanel = new DraggableContainer( "Exploits", null, theme.getPanelRenderer(), new SimpleToggleable(false), new SettingsAnimation(Settings.animationSpeed), null, new Point(10, 10), 100 ); gui.addComponent(categoryPanel);

all the necessary components were inherited from the library classes, there should be no errors.
but on startup I get a gray screen with 5 small squares in the middle lined up in a row.
in a second it disappears and i get a crash

My HUD GUI is not rendering.

The render() method is in the handler for the RenderGameOverlayEvent.Text event. But the HUD is not rendered when loading the world. But I still see the render only when I open my ClickGUI.

EventHandler:
public class EventProcessor {
public EventProcessor() {
MinecraftForge.EVENT_BUS.register(this);
}
@SubscribeEvent
public void onRender(RenderGameOverlayEvent.Text e) {
Client.getInstance().gui.render(); //gui - instance of MinecraftHUDGUI
}
}

Block of code with initialization of HUDClickGUI:
gui = new HUDClickGUI(guiInterface, null);
Toggleable hudToggle=new Toggleable() {
@Override public void toggle() {}
@Override public boolean isOn() {return hudEditor;}
};
Client.getInstance().moduleManager.getAllHUDModules().forEach(m -> {
m.init(theme);
gui.addComponent(new HUDPanel(m.getComponent(), theme.getCategoryRenderer(), m, new SettingsAnimation(ClickGUI.animationSpeed), hudToggle, 2));
});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.