Code Monkey home page Code Monkey logo

Comments (3)

akdcl avatar akdcl commented on May 27, 2024

Perhaps the command you need to execute is 2db -t spine.

from tools.

akdcl avatar akdcl commented on May 27, 2024

Sorry, 2db -t new is a typo.

from tools.

radu-m avatar radu-m commented on May 27, 2024

Spent some time yesterday digging around and turned out to be a pretty weird problem. I'm porting a game from Flash to Canvas and the animations are exported from as JSON targeting dragonBones @2.x so needed to push them through 2db to upgrade them.
Looks like one of the animations is exported in a strange way that caused a failure within globalToLocal method of dragonbones-tools/out/action/toFormat.js when calling armature.sortBones(). The workaround we settled for is to export the assets from Flash as "parentReference" instead of "globalReference" and therefore circumvent that method.

[line 217]

    if (data.isGlobal) {
      globalToLocal(armature);
    }

...fails at armature.sortBones(); [line 228]

Also, another issue we had was [mis]naming of the input .json file, causing an infinite recursion within path.js. We renamed the file to "texture.json" and then db2 -t binary -i ./source/path -o ./out/path ran nicely.
Not sure if any of this applies to other setups then my own, but maybe saves someone a headache...

from tools.

Related Issues (19)

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.