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

pc player_info packet being read incorrectly #972

Open
extremeheat opened this issue Jan 9, 2025 · 1 comment
Open

pc player_info packet being read incorrectly #972

extremeheat opened this issue Jan 9, 2025 · 1 comment

Comments

@extremeheat
Copy link
Member

via https://discord.com/channels/413438066984747026/413438150594265099/1326671883042554001

why updata "mineflayer": "^4.24.0", use 1.21.3 join server has this error

Chunk size is 80 but only 21 was read ; partial packet : {"name":"player_info","params":{"action":{"_value":32,"add_player":false,"initialize_chat":false,"update_game_mode":false,"update_listed":false,"update_latency":false,"update_display_name":true,"update_priority":false},"data":[{"uuid":"3b5dec80-c2c9-4da3-b78a-7b0dad698875","displayName":{"type":"byte","value":10}}]}}; 
 buffer :4020013b5dec80c2c94da3b78a7b0dad698875010a080004746578740031c2a730c2a730c2a739c2a739c2a766e7949fe5ad98e88085c2a772c2a7382dc2a77273616e626f6e7a616b757261c2a73800
Chunk size is 75 but only 21 was read ; partial packet : {"name":"player_info","params":{"action":{"_value":32,"add_player":false,"initialize_chat":false,"update_game_mode":false,"update_listed":false,"update_latency":false,"update_display_name":true,"update_priority":false},"data":[{"uuid":"4fd9fbda-61cc-47b8-8d3e-7e6c73f10c56","displayName":{"type":"byte","value":10}}]}}; 
 buffer :4020014fd9fbda61cc47b88d3e7e6c73f10c56010a08000474657874002cc2a730c2a730c2a739c2a739c2a766e7949fe5ad98e88085c2a772c2a7382dc2a77272617031323937c2a73800
Chunk size is 107 but only 21 was read ; partial packet : {"name":"player_info","params":{"action":{"_value":32,"add_player":false,"initialize_chat":false,"update_game_mode":false,"update_listed":false,"update_latency":false,"update_display_name":true,"update_priority":false},"data":[{"uuid":"a57ff05b-abb8-4d0d-bee1-c04497f6d246","displayName":{"type":"byte","value":10}}]}};
 buffer :402001a57ff05babb84d0dbee1c04497f6d246010a08000474657874004cc2a733e5bba2e59c9fe7a59ee8a9b1c2a772c2a7382dc2a772416e5f416e6479c2a7382dc2a772c2a7375bc2a738e296a0c2a7375dc2a772c2a772c2a7375bc2a738e296a1c2a7375dc2a77200
Chunk size is 76 but only 21 was read ; partial packet : {"name":"player_info","params":{"action":{"_value":32,"add_player":false,"initialize_chat":false,"update_game_mode":false,"update_listed":false,"update_latency":false,"update_display_name":true,"update_priority":false},"data":[{"uuid":"135d4a73-b3e3-414a-a39f-5ba614b1203b","displayName":{"type":"byte","value":10}}]}};
 buffer :402001135d4a73b3e3414aa39f5ba614b1203b010a08000474657874002dc2a730c2a730c2a739c2a739c2a766e7949fe5ad98e88085c2a772c2a7382dc2a77269656b636a646d37c2a73800
Chunk size is 1213 but only 1154 was read ; partial packet : {"name":"player_info","params":{"action":{"_value":127,"add_player":true,"initialize_chat":true,"update_game_mode":true,"update_listed":true,"update_latency":true,"update_display_name":true,"update_priority":true},"data":[{"uuid":"3b5dec80-c2c9-4da3-b78a-7b0dad698875","player":{"name":"sanbonzakura","properties":[{"key":"textures","value":"ewogICJ0aW1lc3RhbXAiIDogMTczNjM3MzYzMzY5NiwKICAicHJvZmlsZUlkIiA6ICIzYjVkZWM4MGMyYzk0ZGEzYjc4YTdiMGRhZDY5ODg3NSIsCiAgInByb2ZpbGVOYW1lIiA6ICJzYW5ib256YWt1cmEiLAogICJzaWduYXR1cmVSZXF1aXJlZCIgOiB0cnVlLAogICJ0ZXh0dXJlcyIgOiB7CiAgICAiU0tJTiIgOiB7CiAgICAgICJ1cmwiIDogImh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmQxOTYyZmYyOWMwMzVhYzAwYjAzOWVhMGRjMGE2YzI4OTk5NDdmYzQwNGY4YTVmMDNkMzQyMDNkOTg1YThjYyIKICAgIH0KICB9Cn0=","signature":"gVibw5cL4J3KbhKXUXPWxv0d7k5jvhSrsR0I/2qpfoABDTrFCjY8bZwy30rRFw8b4JZfxYkrYa6Sw5pMM0GBZ2Xm6oMcsy4wSZneNZo42M/6d6brtybMiJtz5d6RvOBjk/qLqnBe9B7GSNoqX+NMLlm0MXVVsLZxE3Mu/VQnP5UMZTktnTwVka6BPpX1w0QeIWnwCTPkFMtzQwb5DwseBL6/iAeP0LTrSu/XF7FCOMUduG+gUG3ohkUBvThy7rbzl03ic+uCQjgURw9VuVELhei+Z8+SQ0ta6WJY+bGIUZBOvTXZlnWnkuvX4sP04sXC65uwP/VWy1w3qm4vVyrWJ1BlAKk5UoC3yjf3IeM3dUwDKPP52xdjFFOE1Fyx7j8A6mKyDuOWOh/2BErOw8+wqz62vX818hl+PvOPLJ7sAmwEL8zMCW91Vy/1zuMP1PuPgHme0i6dcPtsHwWWsGFtevaY+npyrebZbjP6Mmlo9RiBI7OsmfKkZx+4CajG2OmjNWOJalm+Cm3lHIn4zvZYM1Jb5NfGDQ3o8Cf5Br1Q+S6/6NuanDtfX61QKjk0SLcfRumWF/JUb/r0Gh9dRPl7kzc21DZGy8cCOzhsVg3DsmSulVctsyKpJCYE4iWFT6tMGrzoWz2Xtee529ox6pDTB2QE69rH2uS7uvAsm7NN/BI="}]},"gamemode":0,"listed":1,"latency":0,"displayName":{"type":"byte","value":10},"listPriority":8}]}}; 
 buffer :407f013b5dec80c2c94da3b78a7b0dad6988750c73616e626f6e7a616b75726101087465787475726573a00365776f6749434a306157316c633352686258416949446f674d54637a4e6a4d334d7a597a4d7a59354e69774b4943416963484a765a6d6c735a556c6b496941364943497a596a566b5a574d344d474d79597a6b305a47457a596a6334595464694d4752685a4459354f4467334e53497343694167496e427962325a706247564f5957316c4969413649434a7a595735696232353659577431636d45694c416f6749434a7a6157647559585231636d56535a58463161584a6c5a4349674f694230636e566c4c416f6749434a305a58683064584a6c637949674f69423743694167494341695530744a546949674f694237436941674943416749434a31636d776949446f67496d6830644841364c7939305a58683064584a6c637935746157356c59334a685a6e5175626d56304c33526c65485231636d5576596d51784f5459795a6d59794f574d774d7a5668597a4177596a417a4f5756684d47526a4d474532597a49344f546b354e44646d597a51774e4759345954566d4d444e6b4d7a51794d444e6b4f5467315954686a5979494b494341674948304b49434239436e303d01ac05675669627735634c344a334b62684b585558505778763064376b356a76685372735230492f327170666f414244547246436a5938625a77793330725246773862344a5a6678596b72596136537735704d4d3047425a32586d366f4d6373793477535a6e654e5a6f34324d2f36643662727479624d694a747a35643652764f426a6b2f714c716e426539423747534e6f71582b4e4d4c6c6d304d585656734c5a7845334d752f56516e5035554d5a546b746e5477566b613642507058317730516549576e774354506b464d747a5177623544777365424c362f69416550304c547253752f58463746434f4d556475472b675547336f686b5542765468793772627a6c303369632b7543516a6755527739567556454c6865692b5a382b535130746136574a592b624749555a424f7654585a6c6e576e6b757658347350303473584336357577502f565779317733716d3476567972574a31426c414b6b35556f4333796a663349654d33645577444b5050353278646a46464f4531467978376a3841366d4b7944754f574f682f324245724f77382b77717a36327658383138686c2b50764f504c4a3773416d77454c387a4d4357393156792f317a754d503150755067486d6530693664635074734877575773474674657661592b6e70797265625a626a50364d6d6c6f3952694249374f736d664b6b5a782b3443616a47324f6d6a4e574f4a616c6d2b436d336c48496e347a765a594d314a62354e66474451336f38436635427231512b53362f364e75616e447466583631514b6a6b30534c636652756d57462f4a55622f72304768396452506c376b7a633231445a47793863434f7a687356673344736d53756c56637473794b704a435945346957465436744d47727a6f577a32587465653532396f7836704454423251453639724832755337757641736d374e4e2f42493d00000100010a080004746578740031c2a730c2a730c2a739c2a739c2a766e7949fe5ad98e88085c2a772c2a7382dc2a77273616e626f6e7a616b757261c2a7380000
@extremeheat
Copy link
Member Author

Can confirm it's failing in master but fixed in #948

{
  data: {
    name: 'player_info',
    params: {
      action: {
        _value: 32,
        add_player: false,
        initialize_chat: false,
        update_game_mode: false,
        update_listed: false,
        update_latency: false,
        update_display_name: true,
        update_list_order: false
      },
      data: [
        {
          uuid: '3b5dec80-c2c9-4da3-b78a-7b0dad698875',
          player: undefined,
          chatSession: undefined,
          gamemode: undefined,
          listed: undefined,
          latency: undefined,
          displayName: {
            type: 'compound',
            value: {
              text: {
                type: 'string',
                value: '§0§0§9§9§f生存者§r§8-§rsanbonzakura§8'
              }
            }
          },
          listPriority: undefined
        }
      ]
    }
  },

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

1 participant