zenoxetine / Iolive

GNU General Public License v3.0
56 stars 9 forks source link

Expression shortcuts don't work #5

Open Hendo112 opened 3 years ago

Hendo112 commented 3 years ago

I made a cfg file for commands for different expression but the program doesn't seem to dettect that it's there. The cfg file is recognized by other programs but not this one.

zenoxetine commented 3 years ago

@Hendo112 There's a bug, delete the "Iolive.settings.json" file to reload the hotkeys. Will it be detected?

jyntran commented 3 years ago

Hello @wahyuandhika, I have tried deleting lolive.settings.json then clicking on "Show model hotkeys" - it still says it didn't see any motion or expressions.

Hendo112 commented 3 years ago

@Hendo112 There's a bug, delete the "Iolive.settings.json" file to reload the hotkeys. Will it be detected?

Still doesn't work sadly, I tried deleting while the application was open and when the application was closed

zenoxetine commented 3 years ago

Aah! shortcuts can only activate model's motion3/exp3 files. Doesn't read .cfg file which made for FaceRig. Sorry i didn't find out much about it.

jyntran commented 3 years ago

I see, so the model3.json file must have the Motions key for the motions to be seen. I referred to a different model from https://github.com/Eikanya/Live2d-model to come up with this.

{
    "Version": 3,
    "FileReferences": {
        "Moc": "char.moc3",
        "Textures": [
            "char.2048/texture_00.png"
        ],
        "Physics": "char.physics3.json",
        "DisplayInfo": "char.cdi3.json",
        "Motions": {
          "": [
            {
              "File": "motions/exp_blush.motion3.json"
            },
            {
              "File": "motions/exp_frown.motion3.json"
            }
          ]
        }
    },
       "Groups":
...

The shortcuts still do not work however, even as default values. The log says Starting/Stoping motion: motions/exp_frown.motion3.json but I do not see the expression change on the model. They appear successfully in PrPrLive. Thanks in advance for any help. Edit: I tried the sample models from Live2D here https://www.live2d.com/en/download/sample-data/, and the motions/expressions work. It definitely needs the Motions and Expressions keys in the model3.json. Currently figuring out why my own model isn't working, but it may have to do with how it's exported. But it's good to know some models do work. Edit 2: I found the cause: the Duration inside my motion3.json files are too short. Once these values are incremented to 5 for example, the animations can be seen. Nothing wrong with the application! Hope this helps someone else if they encounter the same issue.