Code Monkey home page Code Monkey logo

tools's Issues

Spine json "deform" key is empty

deform must contain "default" when converting to spine json using 'db2 -t spine'.
This line cause this issue:

skin: string = ""; // Deprecated.

It should be skin: string = "default";

"deform": {
    "": {
          "Head Default": {
               "Head Default": [

Like this:

"deform": {
    "default": {
          "Head Default": {
                "Head Default": [

BUG: converting from version 2.x/3.x

I tried to convert an animation exported from Flash using the DesignPanel v3.0.1 to the new v5.5 format, but it seems that one of the two is failing:

  • db2 while converting 2.3 to 5.5
  • dragonBones v5.1.0 at importing/visualizing the data

I attach two images and the two skeletons with their textures/atlases.

This is how it is expected to look like:
expected_result
...and this is how it ends up
issue

This is exported.zip from DesignPanel 3.0.1, using the command
$ db2 -t new -i ./exported -o ./converted
i got to this skeleton converted.zip

The exported spine json file can not be used properly.

The exported spine json file will ignore the key at frame 0 if there is no animation for the bone.
But the spine runtime will not use a default 0 value for animations.
So problems may happend when animations transition happens,

I made a script to fix this issue:: db_spine_fix

Hope this can be solved in the next dragonbones version.

Convert live2d moc3 format to DragonBones format

I have tired 2db -t live2d on a folder with *.model3.json but noting happens. I rename the json file to *.model.json, but the 2db raised a Model parse error.

Is there any way to convert a moc3 file to DragonBones format ?

BUG: FrameEvents off after converting from version 2.x/3.x to "new"

I add an exported skeleton v2.3 i am converting with [email protected].
The old version has the event firing at the expected frame, and in the skeleton it looks like:

"frame": [
    {
        "duration": 59
    },
    {
        "duration": 41,
        "event": "event_label"
    }
],

as expected, the animation is 100 frames long, and at frame 60 i have a label "@event_label".
Now the updated skeleton is missing any duration data after conversion with db2 -t new, and looks like (again, only the interesting part):

"animation": [
    {
        "duration": 100,
        "name": "animation_label",
        "frame": [
            {},
            {
                "event": "event_label"
            }
        ]
    }
]

If i "correct" it manually adding the missing "duration" data, it works as expected:

"frame": [
    {
        "duration": 59 // adding this line does the job!
    },
    {
        "event": "event_label",
        "duration": 41  // not sure if this does anything...
    }
]

frameevent.zip

关于DragonBonesPro无法导出的问题

点击预览没有反应,且导出之后也没有任何提示,导出不出来(dragonbones JSON5.5,spine,dragonbones二进制,html点击导出后直接退出导出对话框并且没有返回任何对话框,当然也没有导出),png、gif、dragonbones JSON5.0等能正常导出,请问是什么原因?版本为5.6.2

command -d参数可能有误

.option("-d, --delete-raw", "Delete raw files after convert complete")
命令行无法获得-d参数, 改为--delete_raw可以获得

[已解决]用tsc编译的时候报了“未使用的变量的错误“

以为编译的时候没问题了,结果报错了:

Tools-master>tsc
src/helper/helperRemote.ts(49,9): error TS6133: 'jsonString' is declared but its value is never read.
src/remote.ts(249,21): error TS6133: 'jsonString' is declared but its value is never read.

一查原来是变量定义了,但是没有使用
然后不负责任地加了

    if (jsonString) {

    }

编译通过

2db -t new fails

Running the command 2db -t new fails with the message Unknown type: none and I was unable to find any workaround to this.
Conversely, db2 -t new on the same path prints Convert complete but there are no changes to the original file or any new files.

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.