Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No support for protocol v338 #63

Open
vakkq opened this issue Sep 24, 2017 · 15 comments
Open

No support for protocol v338 #63

vakkq opened this issue Sep 24, 2017 · 15 comments

Comments

@vakkq
Copy link

vakkq commented Sep 24, 2017

[Bot] Error connecting: org.darkstorm.darkbot.minecraftbot.protocol.UnsupportedProtocolException: No protocol support for v338 found.
org.darkstorm.darkbot.minecraftbot.protocol.UnsupportedProtocolException: No protocol support for v338 found.
        at org.darkstorm.darkbot.minecraftbot.MinecraftBot.<init>(Unknown Source)
        at org.darkstorm.darkbot.minecraftbot.MinecraftBot.<init>(Unknown Source)
        at org.darkstorm.darkbot.minecraftbot.MinecraftBot$Builder.build(Unknown Source)
        at org.darkstorm.darkbot.mcwrapper.cli.CLIBotWrapper.createBot(Unknown Source)
        at org.darkstorm.darkbot.mcwrapper.cli.CLIBotWrapper.main(Unknown Source)
        at org.darkstorm.darkbot.mcwrapper.Main.main(Unknown Source)
@vakkq
Copy link
Author

vakkq commented Sep 24, 2017

My name is Stanley Kenway, and I'm necroing over here!

@DarkStorm652
Copy link
Owner

Protocol system is being rewritten for another project and will be ported over here. Progress is looking good. Additionally, the development-cleanup branch contains many new features that you can test on 1.7.x, like simple physics.

@vakkq
Copy link
Author

vakkq commented Sep 25, 2017

How can we know when it's finished?

@ghost
Copy link

ghost commented Sep 25, 2017

You only know when the code has updated. Untill then, theres nothing to do but wait!

@vakkq
Copy link
Author

vakkq commented Sep 25, 2017

How to import the Gradle project? i'm stuck in eclipse ;-;
I'm of course talking about the dev branch.

@vakkq
Copy link
Author

vakkq commented Sep 25, 2017

Going off topic here, but after compiling it with "gradle build", i cannot run it because
no main manifest attribute, in DarkBotDev3.jar

@DarkStorm652
Copy link
Owner

The Gradle scripts replacing the old Ant scripts are crappy at best and have many issues. The most effective thing you can do right now is the following:

  1. Run gradle build
  2. Remove the META-INF folder from core/build/libs/core-all.jar (due to signing issues)
  3. Run java -cp "core/build/libs/core-all.jar:protocol/build/libs/DarkBot.jar" org.darkstorm.minecraft.darkbot.wrapper.Main <args> (replace : with ; on Windows)

Additionally, importing the project (via existing sources, build.gradle) in IntelliJ and setting up a run configuration for org.darkstorm.minecraft.darkbot.wrapper.Main with your arguments should work out of the box, but you know how that usually goes 😒

I hope to find some time to make the project more presentable in the near future. 1.8+ support comes first, though.

@vakkq
Copy link
Author

vakkq commented Sep 26, 2017

java.lang.ClassNotFoundException: 5
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at org.darkstorm.minecraft.darkbot.wrapper.cli.CLIWrapperUtils.getProtocolProvider(CLIWrapperUtils.java:59)
	at org.darkstorm.minecraft.darkbot.wrapper.cli.CLISpamBotWrapper.main(CLISpamBotWrapper.java:246)
	at org.darkstorm.minecraft.darkbot.wrapper.Main.main(Main.java:47)
No protocol provider found for '5'.

It also says that I need a protocol name
I typed --protocols and it seems that there are none, so I copied all protocols from the regular version.
Idk where to copy it to, the error is still present.

@vakkq
Copy link
Author

vakkq commented Sep 26, 2017

Also why am i getting EOFExceptions on the old version

@DarkStorm652
Copy link
Owner

DarkStorm652 commented Sep 26, 2017

The protocol loader uses the Java SPI system for discovering protocols, which won't work without the protocols being specially packaged. That packaging is one of the most important things missing from the new build scripts. You can specify a protocol class explicitly instead: --protocol 'org.darkstorm.minecraft.darkbot.protocol.v5x.Protocol5X$Provider'.

There will be sporadic EOFExceptions on connection due to a race condition bug in the networking code, probably related to encryption, that I never took the time to fix. They only happen during the initial handshaking and logging in steps of connecting to a server.

@undercoverGuy
Copy link

Is minecraft 1.8 and up supported with the new (protocolsystem)-version?

@vakkq
Copy link
Author

vakkq commented Oct 3, 2017

No, minecraft 1.8 protocol is under development.

@undercoverGuy
Copy link

any updates?

@undercoverGuy
Copy link

guess not

@lol7344
Copy link

lol7344 commented May 16, 2019

guess not

Lol I've been waiting years for him to update this bot... :( There's a pretty good API I found tho, it's named mineflayer and if you know just a little of JavaScript you can do pretty good things with it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants