Modcraft - The community dedicated to quality WoW modding!

Content creation => Modelling and Animation => Topic started by: Zantas on June 27, 2010, 07:56:37 pm

Title: Hex-editing M2s
Post by: Zantas on June 27, 2010, 07:56:37 pm
Hello, as my first post on this forum, I've decided to post a question regarding hex-editing M2s.

Now my goal was to recreate what Glitchy on MMOwned made some years ago. Which is Character races doing dance-animation instead of stand-animation.

Now I know this can't be done in the dbcfiles, so I've opened up for example HumanMale.M2 in XVI32(A hex-editor)and I've looked on wowdev-wiki for advice on how to find what's what.

Now I have found and changed animationID of stand to emotedance instead, but it crashed in-game so I
thought about it and it seems either I most also changed the nextanimationID or maybe all of the things in the animation-sequence.

Well frankly I'm just having trouble to do so.

Here's the links to the wowdev-wiki page I've been browsing.

http://www.madx.dk/wowdev/wiki/index.ph ... _sequences (http://www.madx.dk/wowdev/wiki/index.php?title=M2/WotLK#Animation_sequences" onclick="window.open(this.href);return false;)

http://www.madx.dk/wowdev/wiki/index.ph ... onData.dbc (http://www.madx.dk/wowdev/wiki/index.php?title=AnimationData.dbc" onclick="window.open(this.href);return false;)
Title: Re: Hex-editing M2s
Post by: Tigurius on June 27, 2010, 10:40:38 pm
The animation lookup is also important :P
Title: Re: Hex-editing M2s
Post by: Zantas on June 28, 2010, 01:18:18 am
Hmm I'm trying to figure out if it's important that I swap all the fields in the sequence for stand to the one in dance.


Another problem if that's so is that I don't know how I can navigate myself to where the values of the sequence for dance start.
Title: Re: Hex-editing M2s
Post by: Tigurius on June 28, 2010, 05:48:46 pm
Solution 1:
Offset Sequences + sequence number * sizeof(SequenceBlock)

Solution 2:
http://www.sweetscape.com/010editor/ (http://www.sweetscape.com/010editor/" onclick="window.open(this.href);return false;) + templates: http://www.nomorepasting.com/getpaste.php?pasteid=33480 (http://www.nomorepasting.com/getpaste.php?pasteid=33480" onclick="window.open(this.href);return false;)

Solution 3:
Use PyM2/wait till PyModelEditor can do this.
Title: Re: Hex-editing M2s
Post by: Zantas on June 28, 2010, 07:14:05 pm
Thanks Tigurius.

The hex editor you linked seems a lot easier to navigate in than the one I'm using, which is in dos even ^^

But still I need to know if I need to change all the addresses for the animation sequence or just the id.



UPDATE:

I've been experimenting a bit and I noticed there's 4 dance animation.

Well they follow each other and I've been swapping all the values in stand with the first dance animation.
One time with all values swapped and 1 time I left out the animationindexnumber as 0 (stand).

Neither of these resulted well, AKA crash is what happened.

Anyone else experimented with this sometimes? (I know Glitchy made it possible once, so why not now)
Title: Re: Hex-editing M2s
Post by: Zantas on July 03, 2010, 02:03:29 pm
Sorry for bumping.


I've been experimenting with most animation now and so far I either get an error or the model turns into a "monster"