-
-
Notifications
You must be signed in to change notification settings - Fork 926
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
Bug for download filled map. #3487
Comments
Send errors and bugs
…On Sun, Oct 27, 2024, 16:49 shved255 ***@***.***> wrote:
Hello everyone, please help, I have a problem with the filled map. My bot
logs into the server, I instruct it to download the image from the map that
is in the frame. It seems that it is possible to pump out, but all the
cards are turned over and downloaded randomly. If anyone knows, please help
how to download images from the filled map normally, not upside down? And
how can you implement the download of maps so that they are not downloaded
randomly, for example, from left to right? Probably a bug of MineFlayer
itself, if not, sorry. I've tried using the item-map-downloader plugin, but
it's still the same. I went through many forums, did not find an answer. On
github, I found one code that can be used to download maps. I edited it a
little, I also tried and it didn't work out to download the map normally,
here is his link: https://pastebin.com/jE3KF5XL I will be very grateful
for your help, thank you. I tried using different versions of the bot, it
didn't work either. Image filled maps:
default.png (view on web)
<https://github.com/user-attachments/assets/65ff92c4-7bc6-4685-8bf6-be9c92ac5628>
—
Reply to this email directly, view it on GitHub
<#3487>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAR437U4B7J4TTYJKABQ3YLZ5UDP7AVCNFSM6AAAAABQV55ERCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYYTMNRYHE2TEMI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Please help, I really need a bug fix |
https://github.com/PrismarineJS/minecraft-data/blob/master/data/pc/latest/proto.yml#L1878 This is the definition of this packet You need the use the other fields, not only data |
Also see https://wiki.vg/Protocol#Map_Data This packet updates a part of a map. It is sent many times, you need to all the values to assemble the image. |
Would welcome a PR implementing this directly in mineflayer |
thanks, but I don't understand how to use it. Maybe there are examples? |
There's nothing to use, new code needs to be written. You can try it out, maybe you can ask chatgpt for help (giving it existing code and API doc as context) |
Thank you very much, I'll try, I'll write what yes |
Thats workd! Thanks you veru much. But how do you get the coordinates of the frame whose data you received? I used MapData and x, y, z methods, also used PosY, PosX, writes for instead of the first case 1 in all maps, in the other one completely undefined. Please tell me how to get the coordinates of the frame, and whether there is such a thing at all. I use the event bot._client.on('map'.... |
You need to keep track using the map id |
Of course, I'm embarrassed to ask, but what functions or methods should I use? The neural network does not help me ;( |
Can you log the map packets you get (without the data field) and send them here ? |
Thats map data: itemDamage: 83, |
but all maps are x and y this 0 code: https://pastebin.com/raw/S9EvZkWX on "Данные карты" - this is map data. |
Can you send the other ones |
yes, this code on English: |
Sorry for the long wait |
No I am asking for the other map packets logs |
I didn't understand what kind of data, it seems that's all there is. |
I got it, I'm going to do it now |
I have shortened the bytes of the cards, |
This seems to contain every packet. What I am asking is all the |
Most likely it is, or I do not know which logs to issue. I just started working with mineflayer recently, sorry. |
Would be easier to read without the data field.
But anyway that confirms what I was thinking.
"ItemDamage" field is what contains the coordinates.
We need to parse it better
…On Tue, Oct 29, 2024, 19:38 shved255 ***@***.***> wrote:
map_logs.txt
<https://github.com/user-attachments/files/17561602/map_logs.txt>
Most likely it is, or I do not know which logs to issue. I just started
working with mindflayer recently, sorry.
—
Reply to this email directly, view it on GitHub
<#3487 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAR437SJSNNFXMUYUJVX3E3Z57IZRAVCNFSM6AAAAABQV55ERCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBVGA2TOOBQGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
and how to analyze it? item Damage has only 1 digit, but the coordinate axes are 3. |
No very unlikely.
We need to check the decompiled code
…On Tue, Oct 29, 2024, 19:59 shved255 ***@***.***> wrote:
x=64+128×(itemDamage)
z=64+128×(itemDamage)
should the formulas work?
—
Reply to this email directly, view it on GitHub
<#3487 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAR437U7DTIJSO276SPLN43Z57LHXAVCNFSM6AAAAABQV55ERCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBVGA4TMMJVG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
https://github.com/IceTank/mineflayer-item-map-downloader/blob/master/index.js#L68 seems to think this damage field is the map id. Maybe the position information is in entity metadata |
Yeah looking at your log above, I believe the information is present in objectData field. Will need a bit of code to piece it all together |
thanks, I'll try this. |
of course, I also noticed that map Data X and Y are empty only on verification. And with the help of item Damage, random numbers just appear, that is, they are similar, but in fact this is nonsense, for example, I have X = 0, Y = 2, the next card is X = 64, Y = -128. |
Here's an example of a map if you go to the Bukkit core and its forks: Received map data: { X and Z has numbers. Although the coordinates are in icons, they are also true. If you go to the verification server, then ICONS will be zero there. |
Hello everyone, please help, I have a problem with the filled map. My bot logs into the server, I instruct it to download the image from the map that is in the frame. It seems that it is possible to pump out, but all the cards are turned over and downloaded randomly. If anyone knows, please help how to download images from the filled map normally, not upside down? And how can you implement the download of maps so that they are not downloaded randomly, for example, from left to right? Probably a bug of MineFlayer itself, if not, sorry. I've tried using the item-map-downloader plugin, but it's still the same. I went through many forums, did not find an answer. On github, I found one code that can be used to download maps. I edited it a little, I also tried and it didn't work out to download the map normally, here is his link: https://pastebin.com/jE3KF5XL I will be very grateful for your help, thank you. I tried using different versions of the bot, it didn't work either. Image filled maps:
The text was updated successfully, but these errors were encountered: