Giter Site home page Giter Site logo

hl-mc-kt's Issues

Update to support microsoft accounts

When the bots connects, it makes an error:

Exception in thread "main" com.github.steveice10.mc.auth.exception.request.RequestException: Migrated
        at com.github.steveice10.mc.auth.util.HTTP.checkForError(HTTP.java:100)
        at com.github.steveice10.mc.auth.util.HTTP.makeRequest(HTTP.java:75)
        at com.github.steveice10.mc.auth.service.AuthenticationService.login(AuthenticationService.java:201)
        at com.github.steveice10.mc.protocol.MinecraftProtocol.createAuthServiceForPasswordLogin(MinecraftProtocol.java:285)
        at com.github.steveice10.mc.protocol.MinecraftProtocol.<init>(MinecraftProtocol.java:245)
        at net.willemml.hlktmc.minecraft.BasicClient.<init>(BasicClient.kt:50)
        at net.willemml.hlktmc.minecraft.bot.ChatBot.<init>(ChatBot.kt:12)
        at net.willemml.hlktmc.minecraft.bot.ChatBotManager.startBot$hl_mc_kt(Manager.kt:12)
        at net.willemml.hlktmc.minecraft.bot.ChatBotManager.startBot$hl_mc_kt(Manager.kt:11)
        at net.willemml.hlktmc.BotManager.start(BotManager.kt:63)
        at net.willemml.hlktmc.cli.commands.LaunchBotKt$launchMinecraftBot$1.invoke(LaunchBot.kt:31)
        at net.willemml.hlktmc.cli.commands.LaunchBotKt$launchMinecraftBot$1.invoke(LaunchBot.kt)
        at net.willemml.ktcmd.Command.run(Command.kt:328)
        at net.willemml.ktcmd.Command.execute(Command.kt:307)
        at net.willemml.ktcmd.CommandManager.runCommand(Manager.kt:71)
        at net.willemml.hlktmc.cli.CLI.<init>(CLI.kt:26)
        at MainKt.main(Main.kt:26)
        at MainKt.main(Main.kt)

Error while building: Too many arguments for public abstract fun get(): Byte defined in java.nio.ByteBuffer

sourtaste000@pineapple-2 hl-mc-kt % ./gradlew build

> Task :compileKotlin FAILED
e: /Users/sourtaste000/hl-mc-kt/src/main/kotlin/protocol/NBT.kt: (82, 28): Too many arguments for public abstract fun get(): Byte defined in java.nio.ByteBuffer
e: /Users/sourtaste000/hl-mc-kt/src/main/kotlin/protocol/NBT.kt: (82, 31): Too many arguments for public abstract fun get(): Byte defined in java.nio.ByteBuffer

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileKotlin'.
> Compilation error. See log for more 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.

* Get more help at https://help.gradle.org

BUILD FAILED in 7s
1 actionable task: 1 executed
sourtaste000@pineapple-2 hl-mc-kt % 

chat message parsing

Need to have correct Minecraft chat message parsing, should work on any server that Mojang's official client can connect to.

proxy mode

Packet passthrough, should open a server that normal clients can connect to, then packets should be passed from client to real server and back, should still be able to control player and read events like chat and movement while client is connected.

replace deprecated function usages

isEmpty(): Boolean usages should be replaced, affected files:

  • LaunchBot.kt: (23, 37) and (24, 37)
  • BasicClient.kt: (47, 29)
  • ChatBot.kt: (26, 79)

Pathing

This should eventually have pathing of some kind, emulating baritone.
#17 needs to be done first though...

Player list method.

Need a method to get currently online players in the server a client is connected to, should also have methods for getting names from UUIDs and UUIDs from names.

Fix movement

Movement physics calculations need to be redone, gravity should be properly implemented to avoid bots getting kicked for fly.

Bad Gateway

Hi,

When building, I'm getting this error:

> Task :compileKotlin FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileKotlin'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not resolve net.daporkchop.lib:minecraft-text:0.5.5-20201106.114836-37.
     Required by:
         project :
      > Could not resolve net.daporkchop.lib:minecraft-text:0.5.5-20201106.114836-37.
         > Could not get resource 'https://dl.bintray.com/kotlin/ktor/net/daporkchop/lib/minecraft-text/0.5.5-SNAPSHOT/minecraft-text-0.5.5-20201106.114836-37.pom'.
            > Could not GET 'https://dl.bintray.com/kotlin/ktor/net/daporkchop/lib/minecraft-text/0.5.5-SNAPSHOT/minecraft-text-0.5.5-20201106.114836-37.pom'. Received status code 502 from server: Bad Gateway

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.