Смердокрыл

010 Map editing

Hey!

I was wondering if the following could be achieved using 010 editor, without any Noggiting:

  • Remove an m2 or a wmo from the map, or replace it (by changing the path)
  • Create a hole

If it is possible, it would be very helpful for me, since I work in Cata and Noggit can't be directly used there.

So, is it achievable, and, if it is, how?

Share this post


Link to post
Share on other sites

Yes, although it will be a lot of fiddling or will have subtle issues.

removing an object: remove from MODF/MDDF, fix all MCRF in MCNK by removing the removed index and decreeing all bigger values by one. Alternative hack: set position to way below ground.

replacing an object: if path not present yet, add to MMDX/MWMO, add offset to MMID/MWID, replace id in MODF/MDDF entry. If model is bigger than before: add to MCRF of all spanned MCNK. If MODF, adjust extents size.

creating a hole: add bit in MCNK's hole mask.

  • Like 2

Share this post


Link to post
Share on other sites
4 hours ago, wungasaurus said:

Yes, although it will be a lot of fiddling or will have subtle issues.

removing an object: remove from MODF/MDDF, fix all MCRF in MCNK by removing the removed index and decreeing all bigger values by one. Alternative hack: set position to way below ground.

replacing an object: if path not present yet, add to MMDX/MWMO, add offset to MMID/MWID, replace id in MODF/MDDF entry. If model is bigger than before: add to MCRF of all spanned MCNK. If MODF, adjust extents size.

creating a hole: add bit in MCNK's hole mask.

Exactly what is said here. Though, this can be done in an automated way using 010 editor scripts. What you need to do is to rewrite the mentioned chunks in the file. I suggest reading it first somewhere, modifying it with your functions, calculating delta size and moving all futher offsets accordingly, inserting the new data instead of the new one. 

  • Like 1

Share this post


Link to post
Share on other sites
11 hours ago, wungasaurus said:

Yes, although it will be a lot of fiddling or will have subtle issues.

removing an object: remove from MODF/MDDF, fix all MCRF in MCNK by removing the removed index and decreeing all bigger values by one. Alternative hack: set position to way below ground.

replacing an object: if path not present yet, add to MMDX/MWMO, add offset to MMID/MWID, replace id in MODF/MDDF entry. If model is bigger than before: add to MCRF of all spanned MCNK. If MODF, adjust extents size.

creating a hole: add bit in MCNK's hole mask.

Is all that done in the adt file? Do I need to edit the wdt/wdl in any way?

Also, is there a proper adt template for Cata?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now