MapStudioProject / CTR-Studio

An editor for 3DS formats including BCH and BCRES.
MIT License
91 stars 9 forks source link

[Aikatsu] Animations wont export to .anim (Unsupported primitive type! Vector3D) #45

Closed Sozuke closed 6 months ago

Sozuke commented 10 months ago

sample file L_DollyD_00.zip

log:

Unhandled exception. System.Exception: Unsupported primitive type! Vector3D at CtrLibrary.BchSkelAnimationImporter.Export(H3DAnimation gfxAnimation, H3DModel model, String filePath) in C:\projects\ctr-studio\Plugins\CtrLibrary\Files\BCH\BchSkelAnimationImporter.cs:line 61 at CtrLibrary.Bch.BCH.AnimationNode1.Export(String filePath) in C:\projects\ctr-studio\Plugins\CtrLibrary\Files\BCH\BCH.cs:line 602 at CtrLibrary.Bch.BCH.NodeSection1.ExportDialog() in C:\projects\ctr-studio\Plugins\CtrLibrary\Files\BCH\BCH.cs:line 857 at Toolbox.Core.ViewModels.CommandViewModel.Execute(Object o) in C:\projects\ctr-studio\Toolbox.Core\src\ViewModels\CommandViewModel.cs:line 17 at MapStudio.UI.ImGuiHelper.<>c__DisplayClass7_0.b__0() in C:\projects\ctr-studio\MapStudio.UI\src\Imgui\Helpers\ImGuiHelper.cs:line 119 at UIFramework.Framework.OnRenderFrame(FrameEventArgs e) in C:\projects\ctr-studio\MapStudio.UI\src\UIFramework\Framework.cs:line 84 at OpenTK.GameWindow.RaiseRenderFrame(Double elapsed, Double& timestamp) at OpenTK.GameWindow.DispatchRenderFrame() at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second) at OpenTK.GameWindow.Run() at CTRStudio.Program.Main(String[] args) in C:\projects\ctr-studio\CTR Studio\src\Program.cs:line 53

Sozuke commented 10 months ago

This happens with both skeletal and camera animations

KillzXGaming commented 6 months ago

Fixed as of https://github.com/MapStudioProject/CTR-Studio/commit/4a16956855e7506c797f29725cbc6f32f01d6c96