GithubHelp home page GithubHelp logo

maxopoly / angelia-core Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 8.0 3.17 MB

Open source command line minecraft client with focus on botting/automation

License: GNU General Public License v3.0

Java 100.00%

angelia-core's Introduction

Hi there, I'm Max

A few years ago I got into programming by making small Minecraft mods and a Master in CS later that's what I still mostly do on here. I'm proud to have contributed to many open source projects, like ansible or Nextcloud.

  • Working as IT-Security consultant
  • Linux enthusiast
  • Open source nerd

Maxopoly's github stats

angelia-core's People

Contributors

arowshot avatar dependabot[bot] avatar masecla22 avatar maxopoly avatar okx-code avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

angelia-core's Issues

issue logging in after connecting

issues logging into servers - do they need certain server-side support?

when i log into vanilla mc 1.12.2 server on localhost with the 1.0.02 core i get:

[08:59:15 INFO]: Beginning login to localhost
[08:59:15 ERROR]: Could not connect to server
java.io.IOException: Received invalid packet with id 1 while waiting for login success
        at com.github.maxopoly.angeliacore.connection.login.GameJoinHandler.parseLoginSuccess(GameJoinHandler.java:29) ~[Angelia-Cmd.jar:?]
        at com.github.maxopoly.angeliacore.connection.ServerConnection.connect(ServerConnection.java:179) ~[Angelia-Cmd.jar:?]
        at com.github.maxopoly.angeliacore.connection.ActiveConnectionManager.initConnection(ActiveConnectionManager.java:27) [Angelia-Cmd.jar:?]
        at com.github.maxopoly.angelia_cmd.Main.main(Main.java:23) [Angelia-Cmd.jar:?]

when i try to connect to civ classics i get:

[09:03:10 INFO]: No access tokens were loaded from save file as safe file didn't exist
[09:03:11 INFO]: Successfully authenticated ***** with UUID *****
[09:03:11 INFO]: Initializing connection process for account ***** to mc.civclassic.com:25565
[09:03:11 INFO]: Connected socket to mc.civclassic.com
[09:03:11 INFO]: Requesting protocol version from mc.civclassic.com
[09:03:11 INFO]: mc.civclassic.com is on version Spigot 1.12.2 with protocol 340
[09:03:11 INFO]: Sending handshake to mc.civclassic.com
[09:03:11 INFO]: Beginning login to mc.civclassic.com
[09:03:11 INFO]: Parsing encryption request from mc.civclassic.com
[09:03:11 INFO]: Authenticating connection attempt to mc.civclassic.com against Yggdrassil session server
[09:03:12 INFO]: Sending encryption reply to mc.civclassic.com
[09:03:12 INFO]: Enabling sync encryption with mc.civclassic.com
[09:03:12 INFO]: Enabling compression with 256 as compression threshhold for connection to mc.civclassic.com
[09:03:12 INFO]: Received login success package for player ******** with UUID ********************
[09:03:12 INFO]: Switching connection to play state
[09:03:12 INFO]: Registering plugin DiggingBot
[09:03:12 INFO]: Registering plugin dummy
[09:03:12 INFO]: Registering plugin IronBot
[09:03:12 INFO]: Registering plugin ObbyBot
[09:03:12 INFO]: Registering plugin TunnelBot
[09:03:12 INFO]: Registering plugin MelonBot
[09:03:12 INFO]: Registering plugin TreeBot
[09:03:12 INFO]: Registering plugin SnitchBot
[09:03:12 INFO]: Loaded a total of 8 plugin(s)
[09:03:12 INFO]: Disconnected from mc.civclassic.com due to timeout
[09:03:12 INFO]: Closing socket with mc.civclassic.com

in the first case do i need to do something else?I looked on http://wiki.vg/Protocol#Clientbound_4 and found:

Packet ID State Bound To
0x01 Login Client
Field Name Field Type Notes
Server ID String (20) Appears to be empty
Public Key Length VarInt Length of Public Key
Public Key Byte Array ย 
Verify Token Length VarInt Length of Verify Token. Always 4 for Notchian servers.
Verify Token Byte Array A sequence of random bytes generated by the server

are they the same issue and do i need to do something differently?

error

fix

java.lang.reflect.InvocationTargetException: null
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
        at com.github.maxopoly.angeliacore.event.EventBroadcaster.broadcast(EventBroadcaster.java:45) [angelia.jar:?]
        at com.github.maxopoly.angeliacore.connection.play.packets.in.ChatMessagePacketHandler.handlePacket(ChatMessagePacketHandler.java:21) [angelia.jar:?]
        at com.github.maxopoly.angeliacore.connection.play.Heartbeat.processPacket(Heartbeat.java:87) [angelia.jar:?]
        at com.github.maxopoly.angeliacore.connection.play.Heartbeat.run(Heartbeat.java:168) [angelia.jar:?]
        at java.util.TimerThread.mainLoop(Timer.java:556) [?:?]
        at java.util.TimerThread.run(Timer.java:506) [?:?]
Caused by: org.json.JSONException: JSONObject["value"] not a string.
        at org.json.JSONObject.getString(JSONObject.java:721) ~[angelia.jar:?]
        at com.github.maxopoly.angeliacore.model.chat.ChatComponentParser.parseHoverEvent(ChatComponentParser.java:183) ~[angelia.jar:?]
        at com.github.maxopoly.angeliacore.model.chat.ChatComponentParser.parseChatComponentInternal(ChatComponentParser.java:70) ~[angelia.jar:?]
        at com.github.maxopoly.angeliacore.model.chat.ChatComponentParser.parseChatComponent(ChatComponentParser.java:43) ~[angelia.jar:?]
        at com.github.maxopoly.angeliacore.event.events.ChatMessageReceivedEvent.getParsedChat(ChatMessageReceivedEvent.java:45) ~[angelia.jar:?]

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.