Giter Site home page Giter Site logo

gcgm-plugin's Introduction

Github Stats

Discord Status


Hello, Iโ€™m Benj (4Benj/4Benj_)

๐Ÿ’ป Full Stack Web Developer and ๐ŸŽฎ Game Developer based in Australia ๐Ÿฆ˜

2nd year University student studying Information Technology in Computer Science and Games Technology

IT Help Desk Technician

If you want to contact me, message me on Discord (@4Benj) or Twitter (@4Benj_)


Member of

Active Public Projects

Other Notable Contributions

Languages

Languages

Tools, Frameworks & Databases

Unity

IntelliJ IDEA Visual Studio Code Visual Studio Xcode

Electron.js Express.js

jQuery JWT NPM NodeJS React React Router Redux Socket.io Tauri

MySQL Postgres MongoDB

Socials & Gaming

Quora Reddit Stack Overflow Twitter LinkedIn

Steam Xbox Itch.io Epic Games EA Battle.net

gcgm-plugin's People

Contributors

4benj 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

Watchers

 avatar  avatar  avatar  avatar

gcgm-plugin's Issues

Task :gc-plugin:compileJava FAILED

Hi, I experienced this problem when I try to compile

asriel@AsrielPC:~/gcgm-plugin-development$ ./gradlew build --warning-mode=all

Configure project :gc-plugin
Copying data from NPM output
Zipping web app files
The AbstractArchiveTask.archiveName property has been deprecated. This is scheduled to be removed in Gradle 8.0. Please use the archiveFileName property instead. See https://docs.gradle.org/7.4.2/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html#org.gradle.api.tasks.bundling.AbstractArchiveTask:archiveName for more details.
at build_5jhvvanbo3b1ryytmyt7mkjuj$_run_closure4.doCall(/home/asriel/gcgm-plugin-development/gc-plugin/build.gradle:56)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
The AbstractArchiveTask.destinationDir property has been deprecated. This is scheduled to be removed in Gradle 8.0. Please use the destinationDirectory property instead. See https://docs.gradle.org/7.4.2/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html#org.gradle.api.tasks.bundling.AbstractArchiveTask:destinationDir for more details.
at build_5jhvvanbo3b1ryytmyt7mkjuj$_run_closure4.doCall(/home/asriel/gcgm-plugin-development/gc-plugin/build.gradle:57)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
Deleting non-zipped web app files
The AbstractArchiveTask.baseName property has been deprecated. This is scheduled to be removed in Gradle 8.0. Please use the archiveBaseName property instead. See https://docs.gradle.org/7.4.2/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html#org.gradle.api.tasks.bundling.AbstractArchiveTask:baseName for more details.
at build_5jhvvanbo3b1ryytmyt7mkjuj$_run_closure6.doCall(/home/asriel/gcgm-plugin-development/gc-plugin/build.gradle:68)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)

Task :gc-plugin:compileJava FAILED
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/GCGMPlugin.java:10: error: package emu.grasscutter.server.dispatch does not exist
import emu.grasscutter.server.dispatch.DispatchServer;
^
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/GCGMPlugin.java:16: error: package express does not exist
import express.Express;
^
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/server/websocket/WebSocketServer.java:6: error: package express does not exist
import express.Express;
^
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/GCGMPlugin.java:95: error: cannot find symbol
public static DispatchServer getDispatchServer() {
^
symbol: class DispatchServer
location: class GCGMPlugin
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/utils/web/WebUtils.java:6: error: package express does not exist
import express.Express;
^
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/GCGMPlugin.java:67: error: method register in class EventHandler cannot be applied to given types;
serverTickEventHandler.register();
^
required: Plugin
found: no arguments
reason: actual and formal argument lists differ in length
where T is a type-variable:
T extends Event declared in class EventHandler
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/GCGMPlugin.java:96: error: cannot find symbol
return ServerHook.getInstance().getDispatchServer();
^
symbol: method getDispatchServer()
location: class ServerHook
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/server/websocket/WebSocketServer.java:21: error: cannot find symbol
Express app = GCGMPlugin.getDispatchServer().getServer();
^
symbol: class Express
location: class WebSocketServer
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/utils/GCGMUtils.java:18: error: cannot find symbol
return "http" + (Grasscutter.getConfig().getDispatchOptions().FrontHTTPS ? "s" : "") + "://" +
^
symbol: method getDispatchOptions()
location: class ConfigContainer
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/utils/GCGMUtils.java:19: error: cannot find symbol
(Grasscutter.getConfig().getDispatchOptions().PublicIp.isEmpty() ? Grasscutter.getConfig().getDispatchOptions().Ip : Grasscutter.getConfig().getDispatchOptions().PublicIp) +
^
symbol: method getDispatchOptions()
location: class ConfigContainer
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/utils/GCGMUtils.java:19: error: cannot find symbol
(Grasscutter.getConfig().getDispatchOptions().PublicIp.isEmpty() ? Grasscutter.getConfig().getDispatchOptions().Ip : Grasscutter.getConfig().getDispatchOptions().PublicIp) +
^
symbol: method getDispatchOptions()
location: class ConfigContainer
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/utils/GCGMUtils.java:19: error: cannot find symbol
(Grasscutter.getConfig().getDispatchOptions().PublicIp.isEmpty() ? Grasscutter.getConfig().getDispatchOptions().Ip : Grasscutter.getConfig().getDispatchOptions().PublicIp) +
^
symbol: method getDispatchOptions()
location: class ConfigContainer
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/utils/GCGMUtils.java:20: error: cannot find symbol
":" + (Grasscutter.getConfig().getDispatchOptions().PublicPort != 0 ? Grasscutter.getConfig().getDispatchOptions().PublicPort : Grasscutter.getConfig().getDispatchOptions().Port);
^
symbol: method getDispatchOptions()
location: class ConfigContainer
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/utils/GCGMUtils.java:20: error: cannot find symbol
":" + (Grasscutter.getConfig().getDispatchOptions().PublicPort != 0 ? Grasscutter.getConfig().getDispatchOptions().PublicPort : Grasscutter.getConfig().getDispatchOptions().Port);
^
symbol: method getDispatchOptions()
location: class ConfigContainer
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/utils/GCGMUtils.java:20: error: cannot find symbol
":" + (Grasscutter.getConfig().getDispatchOptions().PublicPort != 0 ? Grasscutter.getConfig().getDispatchOptions().PublicPort : Grasscutter.getConfig().getDispatchOptions().Port);
^
symbol: method getDispatchOptions()
location: class ConfigContainer
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/utils/web/WebUtils.java:17: error: cannot find symbol
Express app = GCGMPlugin.getDispatchServer().getServer();
^
symbol: class Express
location: class WebUtils
16 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':gc-plugin: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.

BUILD FAILED in 1s
1 actionable task: 1 executed

I don't know what I have missed, I did install openjdk and used the latest version of grasscutter

NoSuchMethodError: emu.grasscutter.server.dispatch.DispatchServer.getServer()

I am using lastest dev erison of grasscutter.
And loaded the gcgm plugin, but it throw this error.

Exception in thread "main" java.lang.NoSuchMethodError: 'com.sun.net.httpserver.HttpServer emu.grasscutter.server.dispatch.DispatchServer.getServer()'
at com.benj4.gcgm.GCGMPlugin.onEnable(GCGMPlugin.java:88)
at emu.grasscutter.plugin.PluginManager.lambda$enablePlugins$2(PluginManager.java:116)
at java.base/java.util.HashMap.forEach(HashMap.java:1421)
at emu.grasscutter.plugin.PluginManager.enablePlugins(PluginManager.java:114)
at emu.grasscutter.Grasscutter.main(Grasscutter.java:100)

Task :web-interface:npm_run_build FAILED

Task :web-interface:npm_run_build FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':web-interface:npm_run_build'.

Process 'command '/root/resoureces/gcgm-plugin/gcgm-plugin/web-interface/.gradle/npm/npm-v8.1.2/bin/npm'' finished with non-zero exit value 1

  • 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.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 17s
6 actionable tasks: 1 executed, 5 up-to-date

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.