Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Resources and Tools => Topic started by: PhilipTNG on April 16, 2015, 08:18:52 am

Title: [TOOL] WMO Converter 4.x-6.x To LK & TBC - 010 Editor Based
Post by: PhilipTNG on April 16, 2015, 08:18:52 am
I decided to re-write my wmo conversion script, 2 reasons, to speed it up where I could make it go faster and so as to release it to the general public so that all the people that send me messages to convert wmos and or how to fix a certain wmo will be able to do it themself and leave me alone lol.

A couple of my friends and peers recommended that I not share this due to the eventual rise of noobs and leechers using it and acting like they are "King Shit", but in the end, tool users and tool huggers don't ever do a whole lot anyway and what they will end up doing won't be anything new, being 2 years late to the wmoconversion game and all XD.

By default the script is set to attempt to convert a WMO from Cata/MoP/WoD to WoTLK.  If you want it to convert down to TBC(possibly 1.x as well), turn on the tbc switch on Line 13 by making it a 1.
(http://puu.sh/hfETA.png)

I would recommend using atleast 010 Editor 5.0 , but it will run faster in 6.0 and newer.  Script does not work properly on 3.0 and 4.0 versions of 010 Editor.

---For LK, it fixes the wmo so that it will work in the game client and also work in Noggit, I've only tested 1.3 and 1.4.

---For TBC, it fixes the WMO so it will work in the game client as well, I do not know if it will work in Noggit as I do not have Noggit for TBC.  The WMOs may also work for 1.x as well but since I do not have that client, I have made no tests for it.

Manual Directions:


1.) Open Script up in 010 Editor.
2.) Open up WMO Files you want to convert
3.) Click on the WMO File and run the script(F7), I say Click on the File because if you don't, you can sometimes run the script on itself and possibly screw up the script and have to re-download it.

Batch Directions:


0.) Make sure you can open up 010 Editor through the cmd console application by typing in 010editor, this is required to make use of the batch script.
1.) Open up Notepad and Copy and Paste this batch code to the document: http://pastebin.com/SU9K03Gz (http://pastebin.com/SU9K03Gz" onclick="window.open(this.href);return false;)
2.) Modify the Full_Path_To_Script_File to where you extracted the script file.
--Example: If you extracted the file to C:scripts  you would put change the fullpath text to
C:scriptswmo-converter-rebuild_003_distro.1sc
(http://i.imgur.com/VsAUTeE.png)
3.) Save the File somewhere as wmoconverter.bat
4.) Now place the file wherever you have your wmo files that need to be converted, run the batch file and it should go through and convert them for you.

VIDEO Directions:


[media:f2v9dvrm]https://www.youtube.com/watch?v=M9rD29gWI_I[/media:f2v9dvrm]

Pictures of Tanaan Jungle that had it's WMOs converted using this script rewrite., Map can be downloaded from: viewtopic.php?f=93&t=9101&p=45849 (http://modcraft.io/viewtopic.php?f=93&t=9101&p=45849" onclick="window.open(this.href);return false;)

(http://i.imgur.com/QJhpKNY.png)
(http://i.imgur.com/B689H4j.png)
(http://i.imgur.com/YsT7Dof.png)

EDIT: Updated the script so it can handle WMOs that may also be similar to the 6.2.0 Hellfire Raid WMOs. , 0.004 is the new one.
------

Update(May 12, 2015):


Updated the WMO converter to 0.005, so now it fixes WoD garrison's Doodad Sets and a few MoP WMOs as well, It's not fully tested yet but seems to work fairly well so far. , Thanks to Kranimal for his inputs. Also put in a trigger into the script to force all garrison doodads in the script if there are any that have phased/leveled doodads.

By default I put it on, but for anyone that wants it off, make the 1 a 0:
(http://puu.sh/hLdkC.png)

NOTE:  May Cause a crash due to the a bug in how Windows CMD works since it has a habit of skipping files randomly when your system hits a digital roadbump, mainly from an un-processed m2 file from my tagteam converter if you're using that for doing M2 files.
Title: Re: [TOOL] WMO Converter 4.x-6.x To LK & TBC - 010 Editor Ba
Post by: PhilipTNG on April 16, 2015, 08:51:21 am
added download, totally forgot about it lol. it's an attachment.
Title: Re: [TOOL] WMO Converter 4.x-6.x To LK & TBC - 010 Editor Ba
Post by: MR. Farrare on April 16, 2015, 10:27:45 am
awsome release thank you for your share and nice tut too really helpfull
Title: Re: [TOOL] WMO Converter 4.x-6.x To LK & TBC - 010 Editor Ba
Post by: Xerode on April 16, 2015, 05:08:27 pm
Thank you, your converters (wotlk ADT to Cataclysm ADT, and now this tool) are very helpful, the work you did is really amazing. :)

Regards,
Title: Re: [TOOL] WMO Converter 4.x-6.x To LK & TBC - 010 Editor Ba
Post by: Vatoto on April 17, 2015, 02:37:07 pm
Thx for this tool!

I have found a solution if you can't start the 010editor from the CMD.

You must right-click the computer icon in the start menu and select "properties".

Now klick on "advanced system settings" in the left column and then go to the "advanced" - tab.

Under the table "User variables for xy" click "new" and create a variable with the name "010edtior" and the value is the path to your 010editor folder(!) ("C:Program Files10 Editor" for example).

Then you just have to restart the pc and now it should works.

If you do these steps , you can also use the M2Converter. Thx for this tool too!

I hope I translated the words (advanced system settings, properties) correctly, because I only have the German windows version.
Title: Re: [TOOL] WMO Converter 4.x-6.x To LK & TBC - 010 Editor Ba
Post by: PhilipTNG on April 17, 2015, 05:21:10 pm
Quote from: "MR. Farrare"
awsome release thank you for your share and nice tut too really helpfull
XD, thanks for helping me out when I was working on these things.

Quote from: "Xerode"
Thank you, your converters (wotlk ADT to Cataclysm ADT, and now this tool) are very helpful, the work you did is really amazing. :)
Regards,
^_^ , as soon as I finish remaking some Macros for the ADT Down Converter and documentation, that'll be released too.  It still going to require some work, but not as much if you try to do it without the Script Macros :D

Quote from: "Vatoto"
Thx for this tool!
--snip--
I hope I translated the words (advanced system settings, properties) correctly, because I only have the German windows version.
Maybe you can also put German explanation too incase other user may come here and have German Windows :D.  Thankyou for putting in information. ^_^
Title: Re: [TOOL] WMO Converter 4.x-6.x To LK & TBC - 010 Editor Ba
Post by: PhilipTNG on April 18, 2015, 01:56:22 pm
Updated the script so it can handle WMOs that may also be similar to the 6.2.0 Hellfire Raid WMOs. , 0.004 is the new one.
Title: Re: [TOOL] WMO Converter 4.x-6.x To LK & TBC - 010 Editor Ba
Post by: Xerode on April 18, 2015, 03:10:07 pm
Quote
Updated the script so it can handle WMOs that may also be similar to the 6.2.0 Hellfire Raid WMOs. , 0.004 is the new one.

Thank you again ! :)

Quote
^_^ , as soon as I finish remaking some Macros for the ADT Down Converter and documentation, that'll be released too. It still going to require some work, but not as much if you try to do it without the Script Macros  

Oh dear.  :shock:
Title: Re: [TOOL] WMO Converter 4.x-6.x To LK & TBC - 010 Editor Ba
Post by: MR. Farrare on April 18, 2015, 06:13:09 pm
that would be awsome
Title: Re: [TOOL] WMO Converter 4.x-6.x To LK & TBC - 010 Editor Ba
Post by: PhilipTNG on May 13, 2015, 02:23:29 am
Updated script to 0.005, read the notes on the first post., thanks to Kranimal for his assistance. I put in fixes so it would fix some MoP WMOs that were crashing the client previously.  Also put in trigger into the script to force all garrison doodads in the script if there are any that have phased/leveled doodads.

By default I put it on, but for anyone that wants it off, make the 1 a 0:
(http://puu.sh/hLdkC.png)

Now doing this may cause a crash due to an unprocessed m2 doodad file. the tagteam converter is solid however the interface it uses to run the process is a bit buggy, Windows CMD tends to skip over some files when it does it's batch processing, proved this when I batch processed 10,000 text files, noticed 28 of them were unprocessed.

I plan on doing a re-write on the m2 converter at a later date so it keeps the false reflection/specularity effect intact as well as any texanims that are disabled from using CataToLK, no fault to those who made it, just something that's been bothering me for a while now.

Anyway as for the Garrison thing, here is an after image of one of the mage buildings, the previous script would only have a fire int the fireplace, the current script forces all doodads to load:
(http://puu.sh/hAMw6.jpg)
(http://puu.sh/hAMoC.jpg)
(http://puu.sh/hAMnO.jpg)
(http://puu.sh/hAMOy.jpg)
(http://puu.sh/hAOpb.jpg)

There is a thing where the forced doodads will disappear when you walk away from the wmo, not sure what that's about but the same thing happens when I force all the doodads on WoD as well.
Title: Re: [TOOL] WMO Converter 4.x-6.x To LK & TBC - 010 Editor Ba
Post by: TheBuG on May 13, 2015, 12:02:24 pm
Cheers, while I've always been able to (batch) convert M2s, I was too lazy to get going on WMOs. Thanks for the update ;).
Title: Re: [TOOL] WMO Converter 4.x-6.x To LK & TBC - 010 Editor Ba
Post by: PhilipTNG on May 13, 2015, 01:23:03 pm
Quote from: "TheBuG"
Cheers, while I've always been able to (batch) convert M2s, I was too lazy to get going on WMOs. Thanks for the update ;).
Ahh that's awesome(about your own m2 converter), and glad I could help with the wmo thing. :)
Title: Re: [TOOL] WMO Converter 4.x-6.x To LK & TBC - 010 Editor Ba
Post by: TheBuG on May 13, 2015, 11:26:09 pm
Quote from: "PhilipTNG"
Quote from: "TheBuG"
Cheers, while I've always been able to (batch) convert M2s, I was too lazy to get going on WMOs. Thanks for the update ;).
Ahh that's awesome(about your own m2 converter), and glad I could help with the wmo thing. :)

Well, it wasn't really my own. My brother does some coding stuff for his job, I just told him the things that had to change in files, we did some testing and got it working. It was nothing major ;p. Mostly used Mjollna's converter as a base.
Title: Re: [TOOL] WMO Converter 4.x-6.x To LK & TBC - 010 Editor Ba
Post by: PhilipTNG on May 14, 2015, 01:55:16 am
Quote from: "TheBuG"
Well, it wasn't really my own. My brother does some coding stuff for his job, I just told him the things that had to change in files, we did some testing and got it working. It was nothing major ;p. Mostly used Mjollna's converter as a base.
Ahh gotcha :), that's awesome to have a coder in the family hehe,  Too bad in my family, I'm THAT guy >.< , My brother's a Civil Engineer, crazy smart fellow.  He showed me a plan for a bridge... Me being me thought... hmpf a bridge, can't be anything too difficult.... WRONG!!  Had measurements and all sorts of things I never even thought went into building such things.
Title: Re: [TOOL] WMO Converter 4.x-6.x To LK & TBC - 010 Editor Ba
Post by: detonatorss on May 15, 2015, 06:08:11 pm
PhilipTNG it only work with files and not folders and i think the people want to convert it with folders for do it
you have to add this

(*_?_?.adt)
Title: Re: [TOOL] WMO Converter 4.x-6.x To LK & TBC - 010 Editor Ba
Post by: PhilipTNG on May 15, 2015, 09:06:49 pm
Quote from: "detonatorss"
PhilipTNG it only work with files and not folders)
Yes this is WMO File Converter. What is WMO Folder? If you want to run on multiple file, See Batch Direction or Watch Video.

Quote from: "detonatorss"
(*_?_?.adt)
Um this is WMO Converter, not ADT.
Title: Re: [TOOL] WMO Converter 4.x-6.x To LK & TBC - 010 Editor Ba
Post by: Namiriu on September 10, 2015, 05:41:24 pm
Hi PhillipTNG,

I've some problem /w your method sadly :( ( btw rly thanks for all your other converter ! its work perfectly for me :) )

The problem is attached on this post as .png.

Cant rly describe, just do same you do in your YT vidz, but this is do this error for me :(

Can you help plz ?

PS : I try to convert some custom WMO that was sliced into more little wmo part /w blender. Idk if this the problem ?
Title: Re: [TOOL] WMO Converter 4.x-6.x To LK & TBC - 010 Editor Ba
Post by: yunfan on November 08, 2015, 08:35:45 am
Looked at a lot of your post, your work is going to be great, please forgive my English is not very good, but you write is so great, can't express my mood at this moment, this platform can communicate together for those of us who want to improve their own people, it's wonderful, thank you very much for BBS, thank you very much