Jump to content

010 Map editing

By Смердокрыл
in Level Design

Recommended Posts

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?

or not


 skarnnoggitlogpost.thumb.jpg.d752b4e8541

Link to comment
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.

Link to comment
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. 

Link to comment
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?

or not


 skarnnoggitlogpost.thumb.jpg.d752b4e8541

Link to comment
Share on other sites

×
×
  • Create New...