Giter Site home page Giter Site logo

Comments (5)

ca1e avatar ca1e commented on August 15, 2024 1

其原因是有一些dump软件在保存数据时会添加/省略一些额外的配置字节。这些配置字节在正常ntag21x卡片中提供功能,但在amiibo识别中被忽略。amiitool工具在加解密时不在乎这些数据,pixljs在模拟时也会忽略这些数据从而可以更简单的实现amiibo的功能。

标准的ntag215卡片的dump数据大小就是540字节,这是毋庸置疑的。其他'非标'大小(532/572)的数据完全可以通过手动补'0'/截断来转换成标准dump数据,这对模拟amiibo没有任何影响。并且我也并不建议对这些'非标'文件进行兼容,要解决这个问题也很简单,在上传/接受文件时判断一下size就行

另外,目前bin的来源可以通过https://github.com/ca1e/amiitool.net 这个项目的-g命令来生成全部数据,在pixljs的v3分支也在实现内置生成数据的功能,可以说以后在模拟流程中bin数据其实已经不再重要了。

from pixl.js.

solosky avatar solosky commented on August 15, 2024

感谢反馈,有意思的BUG,我回家测试下先。

from pixl.js.

x-magic avatar x-magic commented on August 15, 2024

更新一下,导致错误的bin比可以使用的bin大了32B。还没来得及看Amiibo dump的结构,难不成是数据部分?(但也不应该啊,毕竟NTAG215也只能写540B)前面的540B其实是一样的。

Update: 代码里是检测540B大小:https://github.com/solosky/pixl.js/blob/0783e4d85e1b5281c394124e2db47993ca617d32/fw/application/src/app/amiibo/scene/amiibo_scene_amiibo_detail.c#L60C1-L62

from pixl.js.

x-magic avatar x-magic commented on August 15, 2024

在pixljs的v3分支也在实现内置生成数据的功能,可以说以后在模拟流程中bin数据其实已经不再重要了。

这个蛮有意思的,这么说的话验证逻辑完全可以做进客户端(iOS/Android/Web),而不是服务端(pixl.js)。那么如果假设写入pixl.js的数据一定是有效的(540字节),睡眠死机的问题还需要debug吗?

from pixl.js.

ca1e avatar ca1e commented on August 15, 2024

功能函数执行失败返回报错时睡眠死机这个问题还是要解决的,这个issue只是导致报错的原因之一

from pixl.js.

Related Issues (20)

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.