Grasscutters / Grasscutter

A server software reimplementation for a certain anime game.
https://grasscutter.io/
GNU Affero General Public License v3.0
16.21k stars 4.47k forks source link

Getting "Unknown Command" | Latest Dev Branch #251

Closed ghost closed 2 years ago

ghost commented 2 years ago

Hello, I'm getting "unknown command" error from latest dev branch.

I compiled it with JDK 17 and tried to use it. Sadly, all commands didn't work, even server side commands like "account create " didn't work too.

That's all, thanks.

soloopooo commented 2 years ago

use JDK 8u202 to compile. Newer than JDK 15 can be unable to input server commands.

Edit: this is my fault. I didn't see "Latest Dev Branch".

soloopooo commented 2 years ago

I guess the use of JDK 18 is different from that of JDK 17. You can try JDK 18 compilation

I just tested with JDK 18.0.1. Nothing happens but Unknown Command. image

yangjiahao0036 commented 2 years ago

image

input the package path in here.(emu.grasscutter.command.commands) I can input commands normally after modifying here.

Lynricsy commented 2 years ago

I have the same problem.Have you solved it yet?

soloopooo commented 2 years ago

I have the same problem.Have you solved it yet?

Plz use @yangjiahao0036 's method,

KingRainbow44 commented 2 years ago

image

input the package path in here.(emu.grasscutter.command.commands) I can input commands normally after modifying here.

while this fixes the issue short term, the reflector is meant to be used across the entire package... this works for now as a workaround yes, but later will need to be properly fixed/debugged

xiu920411 commented 2 years ago

image

input the package path in here.(emu.grasscutter.command.commands) I can input commands normally after modifying here.

while this fixes the issue short term, the reflector is meant to be used across the entire package...

this works for now as a workaround yes, but later will need to be properly fixed/debugged

The fundamental reason is the lack of reflection-0.10.2.jar in lib ,add it in and compile it

Tested, command OK!image