This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [TUTORIAL:] a way to fix legion m2 anim  (Read 4526 times)

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [TUTORIAL:] a way to fix legion m2 anim
« Reply #15 on: November 30, 2015, 08:43:25 pm »
can you name a model where this is required?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

MR. Farrare

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 963
    • View Profile
Re: [TUTORIAL:] a way to fix legion m2 anim
« Reply #16 on: November 30, 2015, 08:54:58 pm »
CreatureGennGreymaneGennGreymane.m2
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Alastor

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1105
    • View Profile
Re: [TUTORIAL:] a way to fix legion m2 anim
« Reply #17 on: December 26, 2015, 06:31:57 pm »
for another example

NightElfFemale.m2 from Legion has plaback speed 9830550
"only from some Emotes like Sit / lay not for Walk / run /fight "
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
No matter how fast light travels it finds the darkness has always got there first and is waiting for it
Star Citizen Referral Code : STAR-XNFS-HVL9

Alastor

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1105
    • View Profile
Re: [TUTORIAL:] a way to fix legion m2 anim
« Reply #18 on: December 26, 2015, 07:05:52 pm »
# Just finished script for 010 Editor that should fix those anims for you its not big deal but i hope it gona help

- thx to Sergei for his help when i were getting into 010 scripting
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
No matter how fast light travels it finds the darkness has always got there first and is waiting for it
Star Citizen Referral Code : STAR-XNFS-HVL9

spik96

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 275
    • View Profile
Re: [TUTORIAL:] a way to fix legion m2 anim
« Reply #19 on: December 26, 2015, 07:11:19 pm »
I already mentionned this change on the wiki. Still needs to be researched.
This is empirical, it needs to be checked on the source, but I believe
uint32 blendTime
has become
uint16 blendTime
uint16 blendTime2

The first blendTime has the old value, and when blendTime2 is set it's often a copy of the first.

So, if originally it was
uint32 blendTime = 150 (0x96 00 00 00).
It becomes
uint16 blendTime = 150 (0x96 00).
uint16 blendTime2 = 150 (0x96 00).

If you try to read it as uint32, you'll obviously get 0x96 00 96 00 = 9830550.

It implies that for a correct conversion, you would need to set the blendTime2 to 0 and not set the 32 bits to 150. Because if for some reason it was 133, you would set the wrong blendTime.
I build a little converter that converts Legion M2 to any other M2 format : https://github.com/Koward/jM2converter
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Github ]https://github.com/Koward[/url]    Skype : koward723 =)

Alastor

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1105
    • View Profile
Re: [TUTORIAL:] a way to fix legion m2 anim
« Reply #20 on: December 26, 2015, 07:46:45 pm »
RIP i have no java but actualy this script worked well for my last character without problems
i want to upgrade this script thats for sure but for now it enough to get it working
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
No matter how fast light travels it finds the darkness has always got there first and is waiting for it
Star Citizen Referral Code : STAR-XNFS-HVL9

MR. Farrare

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 963
    • View Profile
Re: [TUTORIAL:] a way to fix legion m2 anim
« Reply #21 on: December 26, 2015, 10:39:52 pm »
Quote from: "Alastor"
# Just finished script for 010 Editor that should fix those anims for you its not big deal but i hope it gona help

- thx to Sergei for his help when i were getting into 010 scripting
thx for the share Alastor
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

monoman

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 84
    • View Profile
Re: [TUTORIAL:] a way to fix legion m2 anim
« Reply #22 on: April 14, 2016, 06:55:53 pm »
I was looking at this m2one template and i was wondering why would it need to rename the models name that the program opens to "By Alastor Strix'Efuartus" if it just opens a file?

The common M2template1 seems to be working just fine with this legion models anyway.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Alastor

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1105
    • View Profile
Re: [TUTORIAL:] a way to fix legion m2 anim
« Reply #23 on: April 15, 2016, 12:25:19 am »
Since its my script concept its sined by me its that simple
and i am using different M2 template with added advanced options for some things like XY wraping etc ... i am using this template everywhere so i just packed it in case that you dont have any template its nothing special to care about
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
No matter how fast light travels it finds the darkness has always got there first and is waiting for it
Star Citizen Referral Code : STAR-XNFS-HVL9