tuatec / TTToolbox

TTToolbox provides useful helper scripts to automate your character integration workflows in Unreal Engine
MIT License
107 stars 29 forks source link

Crash when adding virtual bones #40

Closed woodencase01 closed 1 year ago

woodencase01 commented 1 year ago

Describe the bug I'm following the video tutorials and using TTToolbox 0.5 with the IKRig V1.1 fix for Unreal 5.1. At the step of using the script to add the virtual bones, the engine crash. I also tried to manually add the virtual bones, and it also crash. I'm using the Synty skeleton here. It has a few missing finger bones due to the simplified look. image

To Reproduce Steps to reproduce the behavior: image

or

image

Expected behavior Should add the bone.

Screenshots

Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\Core\Public\Containers\Array.h] [Line: 763] Array index out of bounds: 56 from an array of size 56

UnrealEditor_IKRig!FAnimNode_RetargetPoseFromMesh::Evaluate_AnyThread() [C:\workspace\zz_tutorials\Fixing_IKRig\zz_packaging\IKRig_v1.1_UE5.1_win64_release\HostProject\Plugins\IKRig\Source\IKRig\Private\AnimNodes\AnimNode_RetargetPoseFromMesh.cpp:129]
UnrealEditor_Engine
AchimTuran commented 1 year ago

I would need the mesh to reproduce the issue. Sadly this did not yet ever happen to me.

An by the way, it's not a crash it's an assertion we see here. It's a common approach to make some checks and close the tool if the condition is not met. Sadly Unreal Engine error handling shuts down the editor without any chance to save the work. Not very user friendly...

woodencase01 commented 1 year ago

Thanks for your feedback and support!

I forgot to get back to this thread, but I found a solution. Neither the TTToolbox or the IKRig fix are the cause here, as I could do it on other skeleton.

The solution was: Duplicate the skeleton, make sure no animations are attached. Create the virtual bones. Retarget animation from ALS to the new skeleton. Profit.

Thanks for your videos, I'm following them one by one and it's great to understand and slowly progress! I'm not a big fan of the copy pose from mesh result, thus retargeting ALS is much appreciated.