开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 766|回复: 3
收起左侧

[求助] 求ByteA 数据包 用 ByteArray 来解析的易列子或帮忙解惑下

[复制链接]
结帖率:0% (0/3)
发表于 2023-2-14 16:18:40 | 显示全部楼层 |阅读模式   广西壮族自治区南宁市
各位大佬本人是易语言初学者,希望用易语言列子解解析下面的数据包


{170,85,137,0,0,1,0,192,0,122,0,118,0,86,9,16,107,0,113,0,80,9,1,37,0,0,2,0,0,0,92,22,58,32,5,6,0,0,24,8,175,47,1,32,9,2,73,13,3,32,5,224,5,2,1,69,148,224,25,35,2,192,57,60,96,19,224,19,35,2,66,98,63,96,19,0,23,160,35,2,125,174,10,32,5,224,5,2,2,77,188,61,96,19,224,19,35,2,50,244,62,96,19,224,19,35,224,246,0,224,246,0,224,246,0,224,246,0,224,246,0,224,246,0,224,246,0,224,246,0,224,111,0,0,0,0,0,0,0,0,0,85,170}                                 
'第1-3格的物品ID{24,8,175,47}属性{73,13,3}            第4-6格的物品ID{23,8,175,47}属性{125,174,10}
{170,85,144,0,0,1,0,192,0,129,0,125,0,86,9,16,107,0,113,0,80,9,1,37,0,0,2,0,0,0,92,22,58,32,5,6,0,0,24,8,175,47,1,32,9,2,73,13,3,32,5,224,5,2,1,69,148,224,25,35,2,192,57,60,96,19,224,19,35,224,246,0,224,246,0,224,246,0,224,246,0,224,51,253,2,50,244,62,96,253,4,23,8,175,47,1,32,9,2,125,174,10,32,5,224,5,2,2,77,188,61,96,19,224,19,35,2,66,98,63,96,19,224,19,35,224,246,0,224,246,0,224,246,0,224,246,0,224,51,0,0,0,0,0,0,0,0,0,85,170}     
' 第1-3格的物品ID{24,8,175,47}属性{73,13,3}            第34-36格的物品ID{23,8,175,47}属性{125,174,10}
{170,85,141,0,0,1,0,192,0,126,0,122,0,86,9,11,107,0,113,0,80,9,1,37,0,0,2,0,224,101,0,2,77,188,61,96,113,4,23,8,175,47,1,32,9,2,125,174,10,32,5,224,5,2,2,66,98,63,96,19,224,19,35,2,50,244,62,96,19,224,19,35,224,246,0,224,246,0,224,246,0,224,90,253,2,92,22,58,96,253,4,24,8,175,47,1,32,9,2,73,13,3,32,5,224,5,2,1,69,148,224,25,35,2,192,57,60,96,19,224,19,35,224,246,0,224,246,0,224,246,0,224,246,0,224,159,0,0,0,0,0,0,0,0,0,85,170}      
' 第4-6格的物品ID{23,8,175,47}属性{125,174,10}      第31-33格的 物品ID{24,8,175,47}属性{73,13,3}  
{170,85,137,0,0,1,0,192,0,122,0,118,0,86,9,16,107,0,113,0,80,9,1,37,0,0,2,0,0,0,66,98,63,32,5,6,0,0,23,8,175,47,1,32,9,2,125,174,10,32,5,224,5,2,2,77,188,61,96,19,224,19,35,2,50,244,62,96,19,224,19,35,2,92,22,58,96,19,0,24,160,35,2,73,13,3,32,5,224,5,2,1,69,148,224,25,35,2,192,57,60,96,19,224,19,35,224,246,0,224,246,0,224,246,0,224,246,0,224,246,0,224,246,0,224,246,0,224,246,0,224,111,0,0,0,0,0,0,0,0,0,85,170}                                 
' 第1-3格的物品ID{23,8,175,47}属性{125,174,10}      第4-6格的 物品ID{24,8,175,47}属性{73,13,3}
以上物品数量都是一个占一格

{170,85,152,0,0,1,0,192,0,137,0,133,0,86,9,16,107,0,113,0,80,9,1,37,0,0,2,0,0,0,92,22,58,32,5,6,0,0,24,8,175,47,1,32,9,2,73,13,3,32,5,224,5,2,1,69,148,224,25,35,2,192,57,60,96,19,224,19,35,2,77,188,61,96,19,0,23,160,35,2,125,174,10,32,5,224,5,2,2,66,98,63,96,19,224,19,35,2,50,244,62,96,19,224,19,35,224,246,0,224,246,0,224,246,0,224,162,253,2,175,236,73,96,253,5,168,202,154,59,185,1,96,10,224,246,0,224,246,0,224,246,0,224,246,0,224,176,0,0,0,0,0,0,0,0,0,85,170}
'第1-3格的物品ID{24,8,175,47}属性{73,13,3}            第4-6格的物品ID{23,8,175,47}属性{125,174,10}        第33格的物品ID{168, 202, 154, 59}数量{185,1}=441个 无属性
{170,85,166,0,0,1,0,192,0,151,0,147,0,86,9,16,107,0,113,0,80,9,1,37,0,0,2,0,0,0,92,22,58,32,5,6,0,0,24,8,175,47,1,32,9,2,73,13,3,32,5,224,5,2,1,69,148,224,25,35,2,192,57,60,96,19,224,19,35,2,77,188,61,96,19,0,23,160,35,2,125,174,10,32,5,224,5,2,2,66,98,63,96,19,224,19,35,2,50,244,62,96,19,224,19,35,2,182,236,73,96,19,4,171,202,154,59,44,64,36,224,246,0,224,246,0,224,246,0,224,145,253,2,175,236,73,96,253,5,168,202,154,59,185,1,96,10,224,246,0,224,246,0,224,246,0,224,246,0,224,176,0,0,0,0,0,0,0,0,0,85,170}
'第1-3格的物品ID{24,8,175,47}属性{73,13,3}            第4-6格的物品ID{23,8,175,47}属性{125,174,10}     第7格的物品ID{171, 202, 154, 59}数量{44,64}【正常应该是{44,1}才对有时也有32,或192求怎么对应前面的字节集】=300个无属性,  第33格的物品ID{168, 202, 154, 59}数量{185,1}=441个无属性,

求解惑或给个思路是怎么判断物品位置,物品ID,物品数量


结帖率:0% (0/3)
 楼主| 发表于 2023-2-17 12:22:38 | 显示全部楼层   广西壮族自治区南宁市
有没有大佬啊,
回复 支持 反对

使用道具 举报

结帖率:50% (5/10)

签到天数: 1 天

发表于 2023-6-8 18:29:54 | 显示全部楼层   河南省郑州市
啥游戏
希望用易语言列子解解析下面的数据包
这个很简单的
read相应的位数就行了
回复 支持 反对

使用道具 举报

结帖率:0% (0/3)
 楼主| 发表于 2023-6-9 18:36:03 | 显示全部楼层   广西壮族自治区玉林市
吴桐 发表于 2023-6-8 18:29
啥游戏
希望用易语言列子解解析下面的数据包
这个很简单的

大佬!能不能拿上面的字节集写个列子,这种是字节流吗
回复 支持 反对

使用道具 举报

  高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:wp@125.la
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表