bedrock-tool / bedrocktool

a mostly working minecraft bedrock tool for downloading server worlds, skins and others
GNU General Public License v3.0
164 stars 20 forks source link

Command line interface error #194

Open NhanAZ opened 4 days ago

NhanAZ commented 4 days ago

* Bedrocktool Version 1.38.0-16

I don't know how to describe this error. But look at the reproduction steps below I think you'll understand what's going on.

To Reproduce Steps to reproduce the behavior:

  1. Type any command and press Enter (I use packs in this step) image Here Enter Server: should be a line break.
  2. Since I use packs, I will enter a random server address in this step (I enter poggit.pmmp.io) and press Enter image Here the message INFO[0473] Connecting to poggit.pmmp.io:19132 should be a newline. The previous Input Command: packs message also disappeared.

What happens in the bedrocktool.log file looks quite chaotic?

time="2024-07-01T12:50:10+07:00" level=info msg="Bedrocktool Version 1.38.0-16" part=main
Available Commands:
    chat-log    logs chat to a file

    update  self updates to latest version

    skins   download skins from players on a server

    capture capture packets in a pcap file

    debug-proxy verbose debug packets

    realm-address   gets realms address

    list-realms prints all realms you have access to

    packs   download resource packs from a server

    worlds  download a world from a server

    trans   

    blind-proxy raknet proxy

Use 'bedrocktool <command>' to run a command
Input Command: 
Input Command: p
Input Command: p  ❌
Input Command: pa
Input Command: pa  ❌
Input Command: pak
Input Command: pak  ❌
Input Command: pa
Input Command: pa  ❌
Input Command: pac
Input Command: pac  ❌
Input Command: pack
Input Command: pack  ❌
Input Command: packs
Input Command: packs  βœ…
Enter Server: 
Enter Server: p
Enter Server: po
Enter Server: pog
Enter Server: pogg
Enter Server: poggi
Enter Server: poggit
Enter Server: poggit.
Enter Server: poggit.p
Enter Server: poggit.pm
Enter Server: poggit.pmm
Enter Server: poggit.pmmp
Enter Server: poggit.pmmp.
Enter Server: poggit.pmmp.i
Enter Server: poggit.pmmp.io
Enter Server: poggit.pmmp.io  ❌
Enter Server: poggit.pmmp.io  βœ…
time="2024-07-01T12:58:03+07:00" level=info msg="Connecting to poggit.pmmp.io:19132"
time="2024-07-01T12:58:16+07:00" level=error msg="dial raknet: dial udp: lookup poggit.pmmp.io: i/o timeout"
time="2024-07-01T12:58:16+07:00" level=info msg="Press Enter to exit."
olebeck commented 4 days ago

the log showing all inputs is a go limitation, can fix that once next version of go releases. other issue might be the validation causing too many dns queries