Page 1 of 1

nwnmdlcomp.exe and supermodels

Posted: Sun Aug 22, 2010 2:43 pm
by rdx
OK, since there's no alternatives to this small tool + NWN_compDcomp.exe, which is just a shell for it, it is good to know how to avoid some nasty bugs

Many may have noticed that some models do not compile cause nwnmdlcomp.exe cannot locate supermodels mentioned in ASCII mdl. Does anyone know how to compile a model with non-default supermodel (like a_ba, a_ba_casts etc)?

Posted: Sun Aug 22, 2010 5:47 pm
by Bannor Bloodfist
I think you just need to have a copy of any super mdl in the same folder as the file you are compiling.

Of course, I may be entirely wrong on that... it's been a while since I ever looked into that sort of thing.

Posted: Mon Aug 23, 2010 3:52 pm
by Pstemarie
rdx wrote:OK, since there's no alternatives to this small tool + NWN_compDcomp.exe, which is just a shell for it, it is good to know how to avoid some nasty bugs

Many may have noticed that some models do not compile cause nwnmdlcomp.exe cannot locate supermodels mentioned in ASCII mdl. Does anyone know how to compile a model with non-default supermodel (like a_ba, a_ba_casts etc)?
Leave the models uncompiled - the game actually seems to run better. The compDcomp tool also has a nasty habit of borking some animations when it compiles a model with them. Its very rare, but it happens. Compiled models can also cause toolset errors - replace the compiled model with its uncompiled version and the error goes away.

Trust me - after pawing through 25,000+ compiled models looking for the one causing a toolset error, you'll wish compDcomp only decompiled models.

Posted: Tue Aug 24, 2010 5:46 am
by rdx
Well thanks, I know it is OK to have all of the models decompiled.. but some complex models are better precompiled if used on slow client PCs. Animations - that's what I was hoping to fix. imho precompiled models should reduce animation lag when the models are loaded for the first time (like when a mounted pc with custom horse enters the area)
Am I wrong?

Posted: Tue Aug 24, 2010 1:50 pm
by Bannor Bloodfist
pre-compiled models load faster, no matter how fast your pc is. It might not be as noticeable, but any step that slows things down, adds up.

Posted: Tue Aug 24, 2010 9:33 pm
by Pstemarie
Bannor Bloodfist wrote:pre-compiled models load faster, no matter how fast your pc is. It might not be as noticeable, but any step that slows things down, adds up.
True. I tend to think more in terms of SP and not so much what MP's needs and requirements might be.

Another thing you can do to reduce lag on models like the horses is to use the method they used in the 1.69 horse scripts - keep a horse loaded in the area. I use cutscene invisibility on a horse, set it to plot and immortal, and place it in a location in the area that the PCs can't get to. That way the animations will already be in the cache from when the area loaded.