DarklightGames / io_scene_psk_psa

A Blender extension for importing and exporting Unreal PSK and PSA files
GNU General Public License v3.0
310 stars 20 forks source link

Error when importing .psa to armature #64

Closed wr4thful closed 5 months ago

wr4thful commented 5 months ago

Versions Blender: 4.0.2 io_scene_psk_psa: 6.1.0 and 6.0.0 (tried both)

Describe the bug blender_2024-01-12_19 34 00 blender_2024-01-12_19 32 19

To Reproduce Steps to reproduce the behavior:

  1. Select Armature
  2. File > Import > Unreal PSA (.psa)
  3. See error

both psk and psa file is exported using latest version of umodel as of now (12/01/2024) i am aware of what caused the error by the warning mark in blender but i am wondering if this is simply caused by the addon or umodel export itself

hoping to see responses and help, thank you very much :)

cmbasnett commented 5 months ago

Can you provide the PSK and PSA you are using to get these warnings?

wr4thful commented 5 months ago

hi, thanks for responding. sorry for the late responses,

heres the psk and psa file deleted due to privacy

please let me know if u had trouble accessing the file

cmbasnett commented 5 months ago

The ThirdPersonRun.psa seems to be for a completely different rig than the one in the PSK. There are no matching bones, which is a pretty telltale giveaway that the two files aren't meant to work together.

wr4thful commented 5 months ago

okay i understand, but the LV_Character01_Run.psa are meant to work together right? cus theyre obtained from same directory. i assume issue came from umodel export itself because the game is small and not very popular and the process may have not been properly optimized. but i thought i just came here to ask if theres anything that can be done to solve it or any workarounds

cmbasnett commented 5 months ago

Yes, LV_Character01_Run.psa works fine with it, I tested it myself.

wr4thful commented 5 months ago

that is strange, sadly it doesnt work for me with any of the .psa

this is what i got blender_2024-01-18_23 59 16

ive also recorded the process, please let me know if im doing things wrong or ive missed something crucial in the steps https://streamable.com/vrn5iz

ive also checked the addon version again blender_2024-01-19_00 12 19

Equbuxu commented 5 months ago

that is strange, sadly it doesnt work for me with any of the .psa

I'm getting the same error when trying to import a different file (can't post it sadly), deleting the corresponding .config file resolves it

Edit; error: image

cmbasnett commented 5 months ago

Yea, the issue here is that the .config file is not a correctly formatted INI file, so the script fails to parse it. Deleting the .config file will resolve the immediate error. I will look into adding special handling for UEViewer's broken file formatting.

cmbasnett commented 5 months ago

@Equbuxu @wr4thful I've published a new version that should fix this issue.

https://github.com/DarklightGames/io_scene_psk_psa/releases/tag/6.1.1

Please give this a try and let me know if this resolved the issue for you.

wr4thful commented 5 months ago

just tried the new version and it gives this error

blender_2024-01-21_20 50 04

deleting the corresponding .config file does makes the process succesfull, but i dont see any keyframe in blender timeline or any animation strips in the NLA editor. the object pose also did not change at all and im not entirely sure how to check if the animation set is there or not.

cmbasnett commented 5 months ago

Please send the files you are using for this, otherwise I can't reproduce your problem.

but i dont see any keyframe in blender timeline or any animation strips in the NLA editor. the object pose also did not change at all and im not entirely sure how to check if the animation set is there or not.

https://github.com/DarklightGames/io_scene_psk_psa#why-cant-i-see-the-animations-imported-from-my-psa

wr4thful commented 5 months ago

hey man after carefully checking everything i realized the addon actually succesfully imports the .psa even though theres an error pop up like i posted in last screenshots. after following the instruction from the FAQ i can now see the animation set and its working just fine. terribly sorry for causing all noise and thanks for the help and fixes. much appreciated :)