wojtossfm / godot_scml_importer Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
OS: Windows 11 x64
Godot version: 4.1 stable
addon version: 0.9.0, 0.9.1
Example Project:
scml_test_4_1.zip
Description:
I'm just trying this out with Godot 4.0 and it doesn't work. I get syntax errors as well as api usage errors.
Thanks for this btw! Looking forward to trying it out if it ends up working on 4.0.
In #6 the parsing breakage from including character maps was fixed but there was no work put into checking whether they are handled correctly. This issue has been raised to see if it works correctly and potentially can be improved.
Most of the errors were a repeat of the first one here:
res://addons/import_scml/import_plugin.gd:202 - Invalid get index 'folder' (on base: 'Dictionary'). res://addons/import_scml/import_plugin.gd:202 - Invalid get index 'folder' (on base: 'Dictionary'). res://addons/import_scml/import_plugin.gd:202 - Invalid get index 'folder' (on base: 'Dictionary'). res://addons/import_scml/import_plugin.gd:202 - Invalid get index 'folder' (on base: 'Dictionary'). res://addons/import_scml/import_plugin.gd:202 - Invalid get index 'folder' (on base: 'Dictionary'). res://addons/import_scml/import_plugin.gd:404 - Assertion failed. scene/resources/packed_scene.cpp:1053 - Parameter "p_scene" is null. scene/resources/packed_scene.cpp:1053 - Parameter "p_scene" is null. core/io/file_access.cpp:807 - Condition "f.is_null()" is true. Continuing. core/io/file_access.cpp:807 - Condition "f.is_null()" is true. Continuing.
An older save file of the character did import, but only the first animation. Could be related to that older save file using less features, such as hitboxes, events, sound events or properties.
Project with issue submitted on #5 (comment)
Blocked by #6
While the effect on a single character is correct when multiple character cross this seems to break.
A solution seems to be:
Seemed in the scenes where I tried it this led to the expected ordering visually being maintained while removing the issue of multiple characters crossing and sprites clipping over each other in awkward ways.
Here's a way to demonstrate the issue I mentioned. I've been tinkering with the animations from CraftPix, and you can reproduce the situation using one of their free downloads, such as the goblin from this set. In the download, you'll find Goblin/PNG/VectorParts, which contains the figure parts as well as Animations.scml
.
The animations look fine in isolation; the problem only arises when crossfading between them, as the rotations will sometimes go "the long way around." There are different ways to reproduce the problem, but here's a particular workflow that I was commonly using.
Animations.scml
file and create a New Inherited scene when prompted. Save that as a new scene, then remove the inheritance by right-clicking on the root of tree and selecting "Clear Inheritance." This is required to be able to edit the animations.I hope that helps!
Originally posted by @doctor-g in #21 (comment)
I cannot find the "Import SCML" button, can you make a little tutorial, please?
Thanks.
Trying to import the following project, generate wrong scene
https://drive.google.com/file/d/1XdxASfW5ILD8Yxi_M3aJfb3R_c45V96E/view?usp=sharing
With the changes that came from #21 the rotation logic now has a bit of a split brain issue dealing with both degrees and radians in the code.
This should be adjusted to attempt to focus on one.
There are cases where between animations items may move between parents. This is currently not supported and needs work.
Broken out of #7
related to #13
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.