Code Monkey home page Code Monkey logo

Comments (23)

ChompChompDead avatar ChompChompDead commented on May 24, 2024

What i notice is that when u open youf clickgui, you instantly toggle it after making it disable. For the crash, im still trying to figure out what is wrong with it

from panelstudio.

ChompChompDead avatar ChompChompDead commented on May 24, 2024

I think i know the reason why it is crashing. First, you need a colormodel mode setting that tells whether or not to use HSB or RGB. The fields in toggleable need to be filled with that setting. The toggle() method should be filled with the ColorModel setting incrementing. (think about it as a mode setting incrementing from one mode to another.) The isOn method should be filled with whether or not to use RGB or HSB, with the colorModel setting too. Hopefully this helped you, if not then idk what else to think of

from panelstudio.

lukflug avatar lukflug commented on May 24, 2024

Are you sure the PanelStudio classes are even loaded? Are you running this in a dev environment or in the launcher?

from panelstudio.

Whop42 avatar Whop42 commented on May 24, 2024

Are you sure the PanelStudio classes are even loaded? Are you running this in a dev environment or in the launcher?

I'm running it from IntelliJ, and it builds so I think the classes are loading

you need a colormodel mode setting that tells whether or not to use HSB or RGB

I'm doing that right now, but I'm not sure it will work

from panelstudio.

Whop42 avatar Whop42 commented on May 24, 2024

Nope, I'm still getting the same error.

from panelstudio.

ChompChompDead avatar ChompChompDead commented on May 24, 2024

You need to make your seettings and module system implement panelstudios. For your settings, there are 5 that panelstudio has. EnumSetting (mode) ColorSetting,KeybindSetting, Toggleable (boolean), and NumberSetting make your settings implement that and also include the override methods that the interface requires. Next make your module file (not a modulemanager) implement Toggleable too and also include the override methods that it needs. Hoped this help you

from panelstudio.

lukflug avatar lukflug commented on May 24, 2024

Ok, it's almost certainly caused by DentClient.instance.gui never being initialized.

from panelstudio.

Whop42 avatar Whop42 commented on May 24, 2024

Is this how it should be initialized?

public enum DentClient {

    instance;

    public static String name = "Dent Client";
    public static String author = "Whop42";
    public static String version = "0.2.42";
    public static String game = "1.16.5";
    private boolean ghostMode = false;

    public EventManager eventManager;
    public ModuleManager moduleManager;
    public SettingManager settingManager;
    public CommandManager commandManager;
    public ConfigManager configManager;
    public Guey gui;


    public void run() {
        eventManager = new EventManager();
        moduleManager = new ModuleManager();
        settingManager = new SettingManager();
        commandManager = new CommandManager();
        configManager = new ConfigManager();
        gui = new Guey();
        moduleManager.loadMods();
        commandManager.loadCommands();
        configManager.loadConfig();

    }

    public void stop() {
        configManager.saveConfig();
    }

    public static String getVersion() {
        return version;
    }

    public static String getName() {
        return name;
    }

    public boolean isGhost() {
        return ghostMode;
    }

    public void setGhostMode(boolean value) {
        ghostMode = value;
    }

}

Because if it is, it returns this slightly different error:

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

from panelstudio.

ChompChompDead avatar ChompChompDead commented on May 24, 2024

You need to implement panelstudio setting interfaces within your settings, like what i said in the post above. Also implement the Toggleable interface in your module class.

from panelstudio.

ChompChompDead avatar ChompChompDead commented on May 24, 2024

Also yes that is how you instantiate the clickgui class

from panelstudio.

ChompChompDead avatar ChompChompDead commented on May 24, 2024

You may want to create seperate classes inside the setting instead of seperate constructors so you can implement them

from panelstudio.

lukflug avatar lukflug commented on May 24, 2024

This is a build.gradle issue:

compile "com.lukflug:panelstudio:0.1.8"
modCompile "com.lukflug:panelstudio-mc16:0.1.8"

instead of

compile "com.lukflug:panelstudio:0.1.8"
compile "com.lukflug:panelstudio-mc16:0.1.8"

from panelstudio.

Whop42 avatar Whop42 commented on May 24, 2024

This is a build.gradle issue:

Still get an error for that

You need to implement panelstudio setting interfaces within your settings, like what i said in the post above. Also implement the Toggleable interface in your module class.

The Module class implements Toggleable, and I have converters/shells/whatever for the settings (I might just rewrite my setting base if i need to...)

from panelstudio.

ChompChompDead avatar ChompChompDead commented on May 24, 2024

yeah maybe u need to rewrite your settings to use panelstudio

from panelstudio.

Whop42 avatar Whop42 commented on May 24, 2024

I don't think the settingbase being different than panelstudio's would cause the gui to not even open

from panelstudio.

ChompChompDead avatar ChompChompDead commented on May 24, 2024

I saw an error in the events system, maybe u wanna check it out and see how it works?

from panelstudio.

Whop42 avatar Whop42 commented on May 24, 2024

It's just the keyboard event being called

from panelstudio.

ChompChompDead avatar ChompChompDead commented on May 24, 2024

Can u push the lastest changes to github so i can see or is it already updated

from panelstudio.

lukflug avatar lukflug commented on May 24, 2024

The settings don't have anything to do with the runtime issue.

This is a build.gradle issue:

Still get an error for that

You need to implement panelstudio setting interfaces within your settings, like what i said in the post above. Also implement the Toggleable interface in your module class.

The Module class implements Toggleable, and I have converters/shells/whatever for the settings (I might just rewrite my setting base if i need to...)

What do you mean with "Still get an error for that"? Is it the same error or a different one, have you tried a clean build?

from panelstudio.

Whop42 avatar Whop42 commented on May 24, 2024

Its the same one

from panelstudio.

lukflug avatar lukflug commented on May 24, 2024

Could you push your newest changes on GitHub and I will make a pull request trying to fix this for you soon?

from panelstudio.

Whop42 avatar Whop42 commented on May 24, 2024

The changes were pushed when ChompChompDead asked for it, I forgot to say something sry.

from panelstudio.

lukflug avatar lukflug commented on May 24, 2024

Use PanelStudio 0.1.8 and PanelStudio-MC16 0.1.9!

from panelstudio.

Related Issues (20)

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.