mirror of
https://github.com/SillyTavern/Extension-Live2d.git
synced 2026-10-15 13:32:13 +00:00
[GH-ISSUE #3] loading of physics / Animations #2
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SillyTavern/Extension-Live2d#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
@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.
@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)
@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 :)