Code Monkey home page Code Monkey logo

Comments (12)

MHProDev avatar MHProDev commented on May 25, 2024

build.gradle

buildscript {
    repositories {
        mavenLocal()
        maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
        maven { url "https://jitpack.io" }
        maven { url = "https://maven.minecraftforge.net/" }
        maven { url = "https://lukflug.github.io/maven/" }
    }
    dependencies {
        classpath "com.github.asbyth:ForgeGradle:6f53277"
    }
}

repositories {
    mavenLocal()
    maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
    maven { url "https://jitpack.io" }
    maven { url = "https://maven.minecraftforge.net/" }
    maven { url = "https://lukflug.github.io/maven/" }
}

version = "1.0"
group = "net.dumbteam.clients"


apply plugin: 'scala'
apply plugin: 'net.minecraftforge.gradle.forge'

minecraft {
    version = '1.8.9-11.15.1.2318-1.8.9'
    runDir = 'debug'
    mappings = 'stable_22'
}

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

    from(sourceSets.main.resources.srcDirs) {
        include 'mcmod.info'
        expand 'version': project.version, 'mcversion': project.minecraft.version
    }

    from(sourceSets.main.resources.srcDirs) {
        exclude 'mcmod.info'
    }
}


dependencies {
    implementation "org.projectlombok:lombok:1.18.22"
    compile "com.google.code.gson:gson:2.8.5"
    compile "com.lukflug:panelstudio:0.2.1"
    compile "com.lukflug:panelstudio-mc8-forge:0.2.0"
}

from panelstudio.

lukflug avatar lukflug commented on May 25, 2024

Could you tell me what you changed?

from panelstudio.

MHProDev avatar MHProDev commented on May 25, 2024

no changes

from panelstudio.

MHProDev avatar MHProDev commented on May 25, 2024

only i sort packages, (setting, module)

from panelstudio.

MHProDev avatar MHProDev commented on May 25, 2024

image

from panelstudio.

MHProDev avatar MHProDev commented on May 25, 2024

clients.zip

from panelstudio.

MHProDev avatar MHProDev commented on May 25, 2024
package net.dumbteam.clients;

import lombok.Getter;
import lombok.Setter;
import net.dumbteam.clients.module.Category;
import net.dumbteam.clients.module.modules.ClickGUIModule;
import net.dumbteam.clients.module.modules.TabGUIModule;
import net.dumbteam.clients.module.modules.WatermarkModule;
import net.dumbteam.clients.ui.game.ClickGUI;
import net.minecraftforge.client.event.RenderGameOverlayEvent;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.ServerChatEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.InputEvent;
import org.apache.logging.log4j.Logger;
import org.lwjgl.input.Keyboard;

@Getter
@Setter
@Mod(
        modid = InstanceClient.MODID,
        version = InstanceClient.VERSION,
        name = InstanceClient.NAME
)
public class InstanceClient {
    public static final String MODID = "instanceclient";
    public static final String NAME = "Instance Client";
    public static final String VERSION = "1.0-SNAPSHOT";
    private Logger logger;
    private ClickGUI gui;

    @EventHandler
    public void onEnable(FMLPreInitializationEvent event) {
        logger = event.getModLog();
    }

    @SubscribeEvent
    public void onChat(ServerChatEvent event) {
        System.out.println(event.getComponent().getFormattedText());
    }

    @EventHandler
    public void init(FMLInitializationEvent event) {
        Category.init();
        Category.OTHER.modules.add(new ClickGUIModule());
//        Category.OTHER.modules.add(new HUDEditorModule());
        Category.HUD.modules.add(new TabGUIModule());
        Category.HUD.modules.add(new WatermarkModule());
//        Category.HUD.modules.add(new LogoModule());
        MinecraftForge.EVENT_BUS.register(this);

        this.setGui(new ClickGUI());
    }

    @SubscribeEvent
    public void onRender(RenderGameOverlayEvent.Post event) {
//        try {
//            if (event.type == RenderGameOverlayEvent.ElementType.HOTBAR) gui.render();
//        } catch (Exception e) {
//            logger.error(e.getMessage());
//        }
    }

    @SubscribeEvent
    public void onKeyInput(InputEvent.KeyInputEvent event) {
        if (Keyboard.isKeyDown(ClickGUIModule.keybind.getKey())) gui.enterGUI();
//        if (Keyboard.isKeyDown(HUDEditorModule.keybind.getKey())) gui.enterHUDEditor();
        if (Keyboard.getEventKeyState()) gui.handleKeyEvent(Keyboard.getEventKey());
    }


}

from panelstudio.

lukflug avatar lukflug commented on May 25, 2024

The build.gradle file you sent doesn't match up with the one in the example mod at all. The source of the issue is probably there. I just checked the example mod as it currently is in the GitHub repository and it works both in the IDE and in the Launcher environments.

from panelstudio.

lukflug avatar lukflug commented on May 25, 2024

I see you're using a non-standard version of ForgeGradle. I'd suggest you use the version net.minecraftforge.gradle:ForgeGradle:2.1.3. Do a clean build of the project (gradlew --stop, gradlew clean, gradlew setupDecompWorkspace --refresh-dependencies, gradlew build). If the issue persists, send me the entire project folder (with build.gradle, without .gradle, build and other computer-generated folders, only the things that would typically be in a source repository and that are necessary to reproduce the issue).

from panelstudio.

MHProDev avatar MHProDev commented on May 25, 2024

i got errors
image
how i can fix that ?
@lukflug

from panelstudio.

lukflug avatar lukflug commented on May 25, 2024

There seems to be an issue with your Java https certificates. Are you using any particularly old version of Java (e.g. Java 6)?

This might be relevant:
https://stackoverflow.com/questions/21076179/pkix-path-building-failed-and-unable-to-find-valid-certification-path-to-requ

from panelstudio.

MHProDev avatar MHProDev commented on May 25, 2024

corretto-1.8.0_322

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.