Hi guys,
Some of you know that I've started some piece of code to convert 2003 alpha adt files.
Actually, it's not only a converter, but can also be used as a base to make other programs related to adt tweaking.
It's here if you're curious :
https://bitbucket.org/Mjollna/gillijimprojectIt's highly unfinished, probably clumsy... but it's the best I can do right now, it will get better over time. That's also an exercise for me to get better at programming and extend my knowledge of Wow files.
Consequently, I decided to use it to create a small utility for quick mh2o handling, until we can manage it correctly in Noggit.
# Initial problem : - It's a pain having to use All Water LK every time you need to save water, especially when the adt has different levels/kinds of liquids in it.
- It's also long to swap manually mh2o alone from one adt to another (ok, that doesn't happen very often, but sometimes it can be useful).
# Purpose : - Save water chunk and being able to re-import it in any adt quickly.
- Make it possible to have a bash/batch file for multiple files processing.
# How it works : -
mh2oExport : saves mh2o in a separate file with extension .mh2o.
Usage :
mh2oExport.exe adtFileName_xx_yy.adt
-
mh2oImport : imports mh2o in an existing adt.
As a bonus, it reintegrates mh2o at the right place (and subsequently re-does all offsets and calculates the right chunk size), and not at the end of the file.
It creates a new adt with the extension ".adt_new" to avoid the source adt to be inadvertently erased.
Usage :
mh2oImport.exe adtFileName_xx_yy.adt mh2oFileName.mh2o
Note that apart from mh2o (and mcin offsets), all other chunks will remain untouched. It means that if you have mclq chunks into your adt they will be kept, and you probably won't get the result you expect. As far as I remember, you can use the "remove all water information" option from All Water LK to get rid of the problem.
Both programs are meant to work with pre-Cata adts... When Cata parsing is finished (= not too soon, it's not my priority right now) I'll make a Cata version, or integrate 4.x somehow in the existing ones.
The whole thing is still experimental. I've tested with lots of different adts, but I may have forgotten something somewhere. Backup your files before playing with it, and let me know about bugs !
# Source & Windows exe : http://gaming.mjollna.org/static/docs/mh2o_utilities.zipSource only includes main, to compile just clone the repo and replace main by one file or the other.
Have fun !
Mjollnà