Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => "Retro-Porting" => Topic started by: MR. Farrare on November 29, 2015, 07:20:48 pm

Title: [TUTORIAL:] a way to fix legion m2 anim
Post by: MR. Farrare on November 29, 2015, 07:20:48 pm
change unit32playbackspeed to 150 in m2 template by 010editor
[attachment=3:e74jh70c]Untitled.png[/attachment:e74jh70c]
[attachment=1:e74jh70c]WoWScrnShot_113015_003227.jpg[/attachment:e74jh70c]
[attachment=0:e74jh70c]WoWScrnShot_113015_003215.jpg[/attachment:e74jh70c]
[attachment=2:e74jh70c]WoWScrnShot_112915_230426.jpg[/attachment:e74jh70c]
[attachment=6:e74jh70c]WoWScrnShot_112915_211650.jpg[/attachment:e74jh70c]
[attachment=5:e74jh70c]WoWScrnShot_112915_211722.jpg[/attachment:e74jh70c]
[attachment=4:e74jh70c]WoWScrnShot_112915_211803.jpg[/attachment:e74jh70c]
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: Nupper on November 29, 2015, 08:53:53 pm
Quote from: "MR. Farrare"
change unit32playbackspeed to 150 in m2 template by 010editor

[attachment=2:2ssyt17e]WoWScrnShot_112915_211650.jpg[/attachment:2ssyt17e]
[attachment=1:2ssyt17e]WoWScrnShot_112915_211722.jpg[/attachment:2ssyt17e]
[attachment=0:2ssyt17e]WoWScrnShot_112915_211803.jpg[/attachment:2ssyt17e]
Could post a screenshot of the editor
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: MR. Farrare on November 29, 2015, 08:57:05 pm
Quote from: "Nupper"
Could post a screenshot of the editor
ok friend
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: Nupper on November 29, 2015, 09:05:16 pm
Quote from: "MR. Farrare"
Quote from: "Nupper"
Could post a screenshot of the editor
ok friend
all animations?
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: MR. Farrare on November 29, 2015, 09:07:42 pm
try it worked for me changed all animation to 150 or see other creature that have the same anim that work in wotlk
try to copy it number if you had a problem right it and I will try to fix it  :)
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: Nupper on November 29, 2015, 09:42:49 pm
Quote from: "MR. Farrare"
try it worked for me changed all animation to 150 or see other creature that have the same anim that work in wotlk
try to copy it number if you had a problem right it and I will try to fix it  :)
Very big improvements thank you :)
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: MR. Farrare on November 29, 2015, 10:05:36 pm
your welcome friend :)
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: TheMetalCarrots on November 29, 2015, 10:24:27 pm
Nice, thanks to you, Greymane doesn't act like a man with some form of paralysis
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: MR. Farrare on November 29, 2015, 10:28:08 pm
I cant see the image but im testing him now
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: MR. Farrare on November 29, 2015, 10:34:47 pm
Quote from: "TheMetalCarrots"
Nice, thanks to you, Greymane doesn't act like a man with some form of paralysis
his anim is fine
[attachment=4:2t9xvswv]WoWScrnShot_113015_003212.jpg[/attachment:2t9xvswv]
[attachment=3:2t9xvswv]WoWScrnShot_113015_003214.jpg[/attachment:2t9xvswv]
[attachment=2:2t9xvswv]WoWScrnShot_113015_003215.jpg[/attachment:2t9xvswv]
[attachment=1:2t9xvswv]WoWScrnShot_113015_003225.jpg[/attachment:2t9xvswv]
[attachment=0:2t9xvswv]WoWScrnShot_113015_003227.jpg[/attachment:2t9xvswv]
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: Alastor on November 30, 2015, 03:37:36 pm
Nice work Raeef keep it up
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: MR. Farrare on November 30, 2015, 03:50:30 pm
Quote from: "Alastor"
Nice work Raeef keep it up
thx friend  :)
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: spik96 on November 30, 2015, 06:58:01 pm
Nice work.
Anybody has a theory about how this works ? Why 150 ? Can we automate it ?
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: MR. Farrare on November 30, 2015, 07:09:15 pm
because most of the creature that has anim working have this number but the m2 that cant do the anim have big number  :)
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: spik96 on November 30, 2015, 08:31:15 pm
Strange, do you have exact examples of these big numbers ?
Maybe the playback speed is not uint32 anymore but 2*uint16, giving a big number in the 010 template if the first uint16 is different than 0.
uint32 playbackSpeed = 150 = 0x0096.
If Blizzard divided into two fields, let's say playbackSpeedNew and playbackSpeed, we may have
uint16 playbackSpeedNew = 5 = 0x05 (random number)
uint16 playbackSpeed = 150 = 0x96

If you watch them as uint32, you'll get 0x0596 = 1430.
With an old playbackSpeed of 150 you could get as big as 65430 (0xFF96).
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: schlumpf on November 30, 2015, 08:43:25 pm
can you name a model where this is required?
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: MR. Farrare on November 30, 2015, 08:54:58 pm
CreatureGennGreymaneGennGreymane.m2
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: Alastor 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 "
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: Alastor 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
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: spik96 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 (https://github.com/Koward/jM2converter" onclick="window.open(this.href);return false;)
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: Alastor 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
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: MR. Farrare 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
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: monoman 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.
Title: Re: [TUTORIAL:] a way to fix legion m2 anim
Post by: Alastor 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