[GH-ISSUE #3] loading of physics / Animations #2

Closed
opened 2026-10-15 13:25:47 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @Baromeus on GitHub (Dec 24, 2023).
Original GitHub issue: https://github.com/SillyTavern/Extension-Live2d/issues/3

In most Browsers the loading of a file that begins with a dot (like the ".physics3.json") is disabled/not working.
I was able to create a workaround if I renamed the file (a copy of it) without the dot and changed the loading to that file.

Edit:
After carefully checking i noticed the difference with successfully loaded physics. Clothes (like skirts) react correct in animations.

Do you know of a better alternative to load this file without the need of users renaming it?

Originally created by @Baromeus on GitHub (Dec 24, 2023). Original GitHub issue: https://github.com/SillyTavern/Extension-Live2d/issues/3 In most Browsers the loading of a file that begins with a dot (like the ".physics3.json") is disabled/not working. I was able to create a workaround if I renamed the file (a copy of it) without the dot and changed the loading to that file. Edit: After carefully checking i noticed the difference with successfully loaded physics. Clothes (like skirts) react correct in animations. Do you know of a better alternative to load this file without the need of users renaming it?
Author
Owner

@Tony-sama commented on GitHub (Dec 25, 2023):

Probably in the minified code of live2d.min.js there is something that clash with file starting with a dot but no idea where it is :(
easier to correct the live2d model file name and json content accordingly yes.

<!-- gh-comment-id:1869044011 --> @Tony-sama commented on GitHub (Dec 25, 2023): Probably in the minified code of live2d.min.js there is something that clash with file starting with a dot but no idea where it is :( easier to correct the live2d model file name and json content accordingly yes.
Author
Owner

@Baromeus commented on GitHub (Dec 25, 2023):

My idea would be to modify the loading to first try the doted variant and if that is not possible, load the renamed variant - if no renamed variant is found a error message could show the problem and that a renamed file would work.

btw. the error persists even if you have a not minified version of the code - for me it seems that all my browsers don't like files that are started with a dot (i can't even open them in the browser if i use a direct link, it's fine with the not doted version)

<!-- gh-comment-id:1869046100 --> @Baromeus commented on GitHub (Dec 25, 2023): My idea would be to modify the loading to first try the doted variant and if that is not possible, load the renamed variant - if no renamed variant is found a error message could show the problem and that a renamed file would work. btw. the error persists even if you have a not minified version of the code - for me it seems that all my browsers don't like files that are started with a dot (i can't even open them in the browser if i use a direct link, it's fine with the not doted version)
Author
Owner

@Tony-sama commented on GitHub (Dec 25, 2023):

Maybe it's the ST server that hide the files starting with a dot actually, it's common name style for hidden file. Also we have people who fix model manually on the discord, join the live2d thread of advanced features to share knowledge please :)

<!-- gh-comment-id:1869060764 --> @Tony-sama commented on GitHub (Dec 25, 2023): Maybe it's the ST server that hide the files starting with a dot actually, it's common name style for hidden file. Also we have people who fix model manually on the discord, join the live2d thread of advanced features to share knowledge please :)
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SillyTavern/Extension-Live2d#2
No description provided.