TheOverfloater / pathos-public

Public release of Pathos Engine
MIT License
36 stars 8 forks source link

flex importing issues #35

Open AnthonyPython opened 1 week ago

AnthonyPython commented 1 week ago

am trying to add flexes to a simple cube as a test since I had problems with my own model but I seem to not even be-able to get any flexes to work despite my best effort. idk if am just exporting it wrong or if it's a different issue.

but it seems to either load fine in model viewer and not crash but no flexes work or it just crashes on load.

Blender 3.6, blender source tools, smd, .vta (same results with BST 3.0 on blender 2.8) 2 flexes one basis flex(which apparently counts)

studiomdl settings -l -q

example: cube.zip

AnthonyPython commented 1 week ago

to note I imported harrison's head and then re-exported it and it also worked fine so am very confused at this point.

TheOverfloater commented 1 week ago

Let me take a look at the data you provided, I'll try to compile it from my side and see what's happening, then I'll come back to you.

TheOverfloater commented 5 days ago

I found the root cause, and it's got to do with how flex values are indexed when you're viewing just the "Flexes" tab. If you go into "Flex scripting", specify a length and try using them there by binding timings and values, they should work just fine. I have a heap corruption issue in the code right now so I can't just push a quick fix, but it'll be part of the next major update.

AnthonyPython commented 5 days ago

hmm, I'll try again with my main model again then. I am curious what the crash is that I get with my main model so I'll debug that if I run into that again.

TheOverfloater commented 4 days ago

I've pushed an immediate fox for this issue. Can you please check from your end also?

AnthonyPython commented 1 day ago

textures_2.zip example2.zip I was able to fix the cube example eventually with the current fixes pushed but it still seems something is causing a crash with my main test model, when you have the time you can look at it your self. The model works fine when no flexes are used in the qc file so I guess it's still something related to it, I would debug it myself but it seems the pmlviewer code isn't too happy being updated to 2022 it just crashes during window creation but that's a different problem.