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] [VIDEO] How to Convert Cata/MoP WMOs to WoTLK  (Read 12555 times)

Krang Stonehoof

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 164
    • View Profile
Re: [TUTORIAL] [VIDEO] How to Convert Cata/MoP WMOs to WoTLK
« Reply #30 on: March 28, 2014, 08:15:18 pm »
Uhm, why is the video unavailable?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

PhilipTNG

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 709
    • View Profile
Re: [TUTORIAL] [VIDEO] How to Convert Cata/MoP WMOs to WoTLK
« Reply #31 on: March 29, 2014, 03:56:17 am »
Quote from: "Krang Stonehoof"
Uhm, why is the video unavailable?

My account was terminated by YouTube. I've got all the wmo's up to 5.4.0 converted 3.3.5a in this archive here:
viewtopic.php?f=59&t=7136
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Krang Stonehoof

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 164
    • View Profile
Re: [TUTORIAL] [VIDEO] How to Convert Cata/MoP WMOs to WoTLK
« Reply #32 on: March 29, 2014, 09:43:16 am »
Yes but I was looking to learn how to do it.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

PhilipTNG

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 709
    • View Profile
Re: [TUTORIAL] [VIDEO] How to Convert Cata/MoP WMOs to WoTLK
« Reply #33 on: March 29, 2014, 06:58:31 pm »
Quote from: "Krang Stonehoof"
Yes but I was looking to learn how to do it.

Unfortuanately stuff happens.  Anyway if you've got a good head on your shoulders and have already manually converted M2 and Skin files without the use of a converter, that should be more than enough knowledge to convert most wmo's.

Of the various WMO files, you'll have the base WMO file and then various extra ones that contain the actual geometry of the object(s), and they have a suffix of _000.wmo / _001.wmo and so on.

The base WMO file, you'll want to drop that into 010 Editor and apply a WMO Tempate, the templates are somewhere on this site, can't remember where.  go through the textures and the flags, if there are any flags higher than 6 I think it was, make them a 0.  It's been months since I last did this so I'm just rambling from memory.  And that should be enough with the base file.

For the Geometry files, like the name_000.wmo files, drop them into 010 Editor, there's no template for these I don't think.  Anyway for the most part, they are pretty simple to do but not always.  Look for the text search of the letters SBOM, make sure you do a case sensitive search.  When you find it, take out that chunk of data.  If I remember right, the 4 bytes after the SBOM bytes is the size of the chunk, so it's SBOM, Chunk size, Actual Chunk.  So you'll have to remove that entire part.

Like this file here for example:


The 53 42 4F 4D is the Hex values for the Text SBOM, the 18 00 00 00 after it is the Chunk size, which is 24(Twenty-Four) bytes. With that said, the 24 bytes after this is the chunk for SBOM(MobS actually but that's unimportant for a hobbyist.)   So the 97 FF A9 FF A2 FF 58 00 57 00 7D 01 00 00 00 00 3B C7 00 00 31 52 00 09  is the SBOM Chunk.  So this entire section you would need to take out, as shown selected here:



Just right click and hit delete. then save and move onto the next file.  If there is no SBOM chunk, then move onto the next file.

This doesn't always work, sometimes more steps need to be applied but it's been so long since I did this so I can't recall what all the steps were.

The I would recommend trying to do something with smaller sets of geometry and not trying to take on something that has 80-100 geosets.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Gurluas

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 344
    • View Profile
Re: [TUTORIAL] [VIDEO] How to Convert Cata/MoP WMOs to WoTLK
« Reply #34 on: April 09, 2014, 08:09:48 pm »
Any luck remembering what some of those other steps may be?
I looked through some of your converted wmos, and in many of them the UINT32_flags_2 is 10
While the UINT32_flags is usually a very odd number like "00000000 00000000 00000000 00001100,b"

I have set the long value to 0 every time it exceeded 110b because that's what was done in the others.
I removed SBOM, yet it crashes immediately ingame.

EDIT: Both Flags 2 and flags 1 have to be set.
So values like 1100b just change them to 0
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Gurluas

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 344
    • View Profile
Re: [TUTORIAL] [VIDEO] How to Convert Cata/MoP WMOs to WoTLK
« Reply #35 on: June 22, 2014, 10:00:17 am »
A little update:
Certain textures in Cata/MOP/WOD wmos may have black textures in spite of you fixing everything.
I have discovered that this is related to a version tag. For example: The WOD Townhall level 3 has black windows, and the window texture has a version 17. Change that to 0 and the texture works.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Shelldon

  • Contributors
  • Loreweaver
  • *****
  • Posts: 92
    • View Profile
Re: [TUTORIAL] [VIDEO] How to Convert Cata/MoP WMOs to WoTLK
« Reply #36 on: June 24, 2014, 04:17:31 pm »
Quote from: "Gurluas"
Any luck remembering what some of those other steps may be?
I looked through some of your converted wmos, and in many of them the UINT32_flags_2 is 10
While the UINT32_flags is usually a very odd number like "00000000 00000000 00000000 00001100,b"

I have set the long value to 0 every time it exceeded 110b because that's what was done in the others.
I removed SBOM, yet it crashes immediately ingame.

EDIT: Both Flags 2 and flags 1 have to be set.
So values like 1100b just change them to 0

Set them to 0 is not very good decision. You will lost a lot of wonderful effects of your wmo. Try to convert some cave or mine from MoP/Cata using this method and you'll get what I'm talking about. Few experiments with this values allowed me to make this script (most of textures' blending and effects will work, maybe not the same way they works on cata/mop, but better then setting them to 0).

You have to use wmo template on your root wmo using this.

uint32 i;
for( i = 0; i < wmo_file.momt.i; i++ )
 {
if (wmo_file.momt.entry.flags == 7)
{
wmo_file.momt.entry.flags = 6;
}
else if (wmo_file.momt.entry.flags == 13)
{
wmo_file.momt.entry.flags = 6;
}
else if (wmo_file.momt.entry.flags == 6)
{
wmo_file.momt.entry.flags = 6;
}
else if (wmo_file.momt.entry.flags == 4)
{
wmo_file.momt.entry.flags = 4;
}
else if (wmo_file.momt.entry.flags == 3)
{
wmo_file.momt.entry.flags = 3;
}
else if (wmo_file.momt.entry.flags == 1)
{
wmo_file.momt.entry.flags = 1;
}
else if (wmo_file.momt.entry.flags == 2)
{
wmo_file.momt.entry.flags = 2;
}
else if (wmo_file.momt.entry.flags != 5)
{
wmo_file.momt.entry.flags = 0;
}
}

FileSave();
FileClose();

Looks not very good, made it long time ago, but works as it should.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
My imgur collection. My youtube collection.

darksoke

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 20
    • View Profile
Re: [TUTORIAL] [VIDEO] How to Convert Cata/MoP WMOs to WoTLK
« Reply #37 on: February 15, 2018, 12:37:06 pm »
Does anybody have by any chance working Mogu'Shan Vaults and Firelands ? I'm wiling to pay for working adts and wmos, having the dbc data is a plus :D thank you :)