Here is a UDF for managing Objects and Terrain ingame.
It indexes all main and sub chunks of all ADT files, M2 files and WMO files loaded into WoW.exe
These indexes can be used in your own terrain editing apps.
For more info and understanding of the matter you should take a look at;
Terrain - WoW.Dev Wiki For understanding of the memory structure.
ADT - WoW.Dev Wiki For understanding of the ADT structure.
The Rar file contains a Binary + The Source Code and the NomadMemory
www.madx.dk/files/TerrainManagement.rar
[yt]<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/bcZMDrCjAzw&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/bcZMDrCjAzw&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>[/yt]
[yt]<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/8ZzzQcQ1iIA&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/8ZzzQcQ1iIA&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>[/yt]
[yt]<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/4KBL2Ni4T6U&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/4KBL2Ni4T6U&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>[/yt]
V2
So here we have a little sample app. Even tho the source is included this is not going to replace the UDF since the code for this is somewhat ugly ^^.
The release does also contain the binary ofcause.
www.madx.dk/files/TerrainManagementV2.rar
This release include these features:
Terrain editing:
Hold Down: Numpad 1 to lower the terrain underneath the cursor.
Hold Down: Numpad 2 to raise the terrain underneath the cursor.
(NOTE: Put a macro in your button 2 actionbar with the folowing "/Console GXrestart" to get a visual update)
Object Management:
Hold Down: Numpad 3 to select object, you will be able to see the data about the selected object in the GUI.
Hold Down: Numpad 3 to select a object and then Numpad 5 to move it around.
Example:
Object Selection
Lower terrain
Raise Terrain