wojtossfm / godot_scml_importer

MIT License
33 stars 6 forks source link

invalid index 'w' and assertion failed #15

Closed CystalCore closed 3 years ago

CystalCore commented 3 years ago

image

I'm testing this out for the first time and I'm running into these errors any idea what caused them?

wojtossfm commented 3 years ago
CystalCore commented 3 years ago

im using godot 3.3.4

CystalCore commented 3 years ago

Laura2.zip this is the scml I am trying to use. It is a test character from my animator.

wojtossfm commented 3 years ago

@CystalCore without the images I cannot really verify how well this works. Can you see if the version from https://github.com/wojtossfm/godot_scml_importer/tree/issue-15-obj-info-type-sprite solves the issue for you?

CystalCore commented 3 years ago

ah, how do the images need to be setup for this to work, "import scml along with images maintaining the relativity that the SCML expects" this makes little sense to me if you could explain it that would be great.

wojtossfm commented 3 years ago

@CystalCore if you open the SCML file in a text editor you will see that it has files listed in it (the images that the character animation is built from). These need to be available in the locations that the SCML file lists for them (relative to where the SCML file is).

To give an example if your SCML file is in project_name/character/Laura2.scml then one of the files it requires will be project_name/character/corps/bras_d2.png (for when it references corps/bras_d2.png).

Hope that was clear enough.

CystalCore commented 3 years ago

image So properly setting up the file and images and using the suggested link i got this error

wojtossfm commented 3 years ago

Replicated and spotted the new issue. Try again now with the latest code from https://github.com/wojtossfm/godot_scml_importer/tree/issue-15-obj-info-type-sprite

CystalCore commented 3 years ago

that fixed it

CystalCore commented 3 years ago

thank you for you help this is going to save so much time.