Hey,
For the past weeks I have been hard at work to recreate the very first NWN2 Terrain Importer (pre YATT). The original author abandonned it early in the life of NWN2 and didn't leave any source code. So I had to decompile his DLL and go from there. The decompiler had made a mess of the code, but with some preseverance I quickly had a first version where you could import a bitmap heightfile and generate a terrain. It worked but well thats about all it could do. The most famous feature was the L3DT import that could manipulate height, texture and add grass with trees where desired.
Unfourtunatly L3DT hadn't stopped developing either, they made improvements to their file formats, so I was forced to write an entire library in C# (I'm a java developer btw) to read L3DT files. I could have done a half arsed job and just wrote a library to read those files. But I wanted to do things right so I also had to write in a way to save L3DT files (which took me about 10 frigging days). After that I could get back to the importer and finish up what I originally started. Well I'm at a happy stage now cause it is working !
result:
However it is terribly slow, and I had to kill a few features to make sure it would stay managable. Using a bitmap picture for the attributes like texturing, trees and grass is out. It now only works with a modern L3DT project. Old L3DT projects will only work if the attribute map is of the new format. The way the new attribute map format worked was just not in line with how a bitmap would work and I had to take concensus. The Mosaic feature is also out but I have plans for that one.
I have some finishing up to do, disable the features that are out for instance so you can't crash the plugin by being stubborn and still trying to do it the old way. This is currently on my todo list
todo
====
- disable removed feature controls
- move code to a new visual studio form project (the decompiler made a mess of things and I can't alter the GUI)
- attempt to improve performance by drawing the map in one big syncronized action instead of three now
- reintroduce mosaic feature in one way or another, with each mosaic creating a new area and closing the previous generated one + autosave between mosaics
- open source the entire thing so the source code will never be lost again !
for those impatient people that want to try it out again : http://users.telenet...rter 3alpha1.7z
I've included my test L3DT project but in principle you could create your own to try it out. There might still be bugs !





Retour en haut






