Page 1 of 1

Elsword motion files

Posted: Fri Nov 15, 2019 7:49 pm
by harky
just some motion files, load editing programs and etc... I would like to know if anyone has any idea why this happens, I will leave a link with two motion files, one that load and one that doesn't,if it is possible someone give me a help or explanation of why this happens, thank you in advance

https://www.mediafire.com/file/bm2r59z0 ... u.rar/file

Re: Elsword motion files

Posted: Fri Nov 15, 2019 9:12 pm
by shakotay2
The "not loading" one with signature "KSM" is uncompressed, contains mesh, bones and (assumed) animation frames.
.
Motion_Lu-mesh.png

Re: Elsword motion files

Posted: Fri Nov 15, 2019 11:53 pm
by harky
shakotay2 wrote: Fri Nov 15, 2019 9:12 pm The "not loading" one with signature "KSM" is uncompressed, contains mesh, bones and (assumed) animation frames.
.
Motion_Lu-mesh.png
Is there any way to "extract" what's inside?

Re: Elsword motion files

Posted: Sat Nov 16, 2019 8:59 am
by shakotay2
why not? You could start to build a skeleton with hierarchy, bones are easy to find:

RWeapon_Position
Bip01_Footsteps
Bip01_Pelvis Bip01_Spine
Bone01 Bone03 Bone05 Bone07
COLLISION_SPHERE3_Lowbody

Bip01_Head
Bip01_L_Clavicle
Bip01_R_Clavicle
Bip01_R_UpperArm
Bip01_R_Forearm
Bip01_R_Hand
Dummy01_RWeapon

Bone_RForearm

Bone_RHand
ATTACK_SPHERE1_Rfoot

...

Bip01_Ponytail11
Bip01_Ponytail12
Bip01_Ponytail1Nub
Bip01_R_Calf
Bip01_R_Foot
Bip01_R_Toe0
Bip01_R_Toe0Nub
Bip01_L_Calf
Bip01_L_Foot
Bip01_L_Toe0
Bip01_L_Toe0NubKAC

In case you can't do it you need to wait for someone who can.

Re: Elsword motion files

Posted: Mon Dec 19, 2022 2:23 pm
by einherjar007
Regarding Elsword, I believe that this directx animation file itself was probably converted (or produced) by a third party.
I checked older clients (2011,2014) and since that time KSM has been used for character animation and the format has not been changed until now.
the KSM format has been uploaded to github (2014).
There is also a firm file separation within the KSM, and the animation seems to start with the KAC as a header.

Re: Elsword motion files

Posted: Mon Dec 19, 2022 2:49 pm
by shakotay2
yeah, well, since we have two skeleton builder apps now, I might give the skeleton a go. But I'm too busy with other things. (Like always... :eek: )

Re: Elsword motion files

Posted: Mon Dec 19, 2022 5:17 pm
by Durik256
I took a quick look and made a test plugin. (Maybe I'll add weight later)
Image
shakotay2 wrote: Mon Dec 19, 2022 2:49 pm I might give the skeleton a go
( ̶n̶e̶e̶d̶ ̶p̶a̶r̶e̶n̶t̶s̶)Edit: I sloved it:
Image

Re: Elsword motion files

Posted: Mon Dec 19, 2022 11:15 pm
by einherjar007
Durik256 wrote: Mon Dec 19, 2022 5:17 pm I took a quick look and made a test plugin. (Maybe I'll add weight later)
Image
Thank you!
I know there is a mesh file in directx format for just the mesh for this game, but it is very fragmented, so being able to preview it as a cohesive model in ksm would be very useful! Perhaps it is a reference for animation in game.

I have recently learned to use skeletal animation conversion from vertex animation using NinjaRipper2,
so having the base bone information would be very useful for capturing. Of course, whether or not I actually do that is another story...

It would be very nice to have animations available as well, as this game seems to employ very good animations.

Re: Elsword motion files

Posted: Mon Dec 19, 2022 11:33 pm
by Durik256
einherjar007 wrote: Mon Dec 19, 2022 11:15 pm very good animations.
I still don’t understand why ksm is needed if there is such a *.x (DirectX) file which can be opened (:
Image

Re: Elsword motion files

Posted: Mon Dec 19, 2022 11:42 pm
by einherjar007
Durik256 wrote: Mon Dec 19, 2022 11:33 pm
einherjar007 wrote: Mon Dec 19, 2022 11:15 pm very good animations.
I still don’t understand why ksm is needed if there is such a *.x (DirectX) file which can be opened (:
As for animation, only data beginning with KAC in KSM. The game does not use dirextx animations for the human characters. We believe that these animations were created or converted by a third party.

*Edit
Here are some samples. Files are very scattered and will be added when main characters and other files are found.
https://drive.google.com/drive/folders/ ... sp=sharing

Here is the source for the animation controller KAC within KSM.
https://github.com/haywoodspartan/Elswo ... roller.cpp

The KAC is followed by the version, number of animation sets, etc. Animation near separators can be found at 00 00 00 00 00 02 00 00 00 00 00, with exceptions depending on the file.

Re: Elsword motion files

Posted: Tue Dec 20, 2022 3:59 am
by Durik256
I started making and it turns out you have the source code. haha, I feel like I wasted my time. I won't continue anymore... I'll leave what I did here. :]

Re: Elsword motion files

Posted: Tue Dec 20, 2022 4:06 am
by einherjar007
Durik256 wrote: Tue Dec 20, 2022 3:59 am I started making and it turns out you have the source code. haha, I feel like I wasted my time. I won't continue anymore... I'll leave what I did here. :]
Sorry if I have offended you. I was just trying to introduce the information I found to help.
By the way, I have been gradually researching the format lately and will try my best to build on the data you left.

"Good men mean well. We just don't always end up doing well."

Re: Elsword motion files

Posted: Tue Dec 20, 2022 4:04 pm
by Durik256
i made plugin for Noesis
for *.x files [KSM(mesh) and KAC(animations)]

Image

couple animations ("Walk_D", "Walk"):
Motion_Lu.x.gif

Re: Elsword motion files

Posted: Tue Dec 20, 2022 10:50 pm
by einherjar007
Durik256 wrote: Tue Dec 20, 2022 4:04 pm I'm not offended in any way, just why reinvent the wheel when the source code is available. this is not the first time. I after all spent the time that from scratch to sort a format. (:

**(remove image from quote :ninja: )
Thank you! I didn't mean to offend. I was just following someone's previous request to create a Cocos2D plugin, for which they were grateful to find the source code. I think people take it differently.

By the way, I think I can handle this format. The part you prepared has already been very helpful. I am not familiar with Noesis functions so I will have to do it differently, but I think I can get the results.

And I have learned to remove images from quotes. Will be careful next time!

Re: Elsword motion files

Posted: Sat Jan 07, 2023 5:34 am
by ProbiusPrime
image >> https://ibb.co/VBqJtqT
(img tag doesnt work. sorry)

How did you guys see that animations?

I need this game's motion, and used fmt.py on the top thread.
But I can't see animation. I can see only like this.
What should I do to extract these animations for other tools like blender?