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: Hex-editing M2s  (Read 2919 times)

Zantas

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 6
    • View Profile
Hex-editing M2s
« 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.wowdev.wiki/index.ph ... _sequences

http://www.wowdev.wiki/index.ph ... onData.dbc
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Every great dream begins with a dreamer. Always remember, you have within you the strength, the patience, and the passion to reach for the stars to change the world.

Tigurius

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 126
    • View Profile
Re: Hex-editing M2s
« Reply #1 on: June 27, 2010, 10:40:38 pm »
The animation lookup is also important :P
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Zantas

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 6
    • View Profile
Re: Hex-editing M2s
« Reply #2 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Every great dream begins with a dreamer. Always remember, you have within you the strength, the patience, and the passion to reach for the stars to change the world.

Tigurius

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 126
    • View Profile
Re: Hex-editing M2s
« Reply #3 on: June 28, 2010, 05:48:46 pm »
Solution 1:
Offset Sequences + sequence number * sizeof(SequenceBlock)

Solution 2:
http://www.sweetscape.com/010editor/ + templates: http://www.nomorepasting.com/getpaste.php?pasteid=33480

Solution 3:
Use PyM2/wait till PyModelEditor can do this.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Zantas

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 6
    • View Profile
Re: Hex-editing M2s
« Reply #4 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)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Every great dream begins with a dreamer. Always remember, you have within you the strength, the patience, and the passion to reach for the stars to change the world.

Zantas

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 6
    • View Profile
Re: Hex-editing M2s
« Reply #5 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"
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Every great dream begins with a dreamer. Always remember, you have within you the strength, the patience, and the passion to reach for the stars to change the world.