Empty meshes

Post » Sat May 28, 2011 6:23 am

I've finally figured out what was causing some of the most hard-to-track errors I've come across while modding for Morrowind. It was empty meshes.

Morrowind does not seem to be able to handle .nif files with no objects in them correctly. I've been using such meshes on occasion, and they have the habit of producing some nasty errors simply because they do not have correct position values in the game engine.

As an example, I used to assign empty meshes to activators which I would place in the game world from a script and have them cast a spell on the player or an NPC. This always produced the following error:

Scale parameters for Magic Effect [...] are bad.

Another common problem was when I tried to return or alter the position of an object with an empty mesh assigned to it, it would sometimes crash the game.

The same problems occur with meshes that only have a single vertex in them. In my experience, you need at least one polygon in a mesh to avoid similar issues.

So what's the solution? Use a mesh that has one simple object in it which is hidden and has no collision. You can alter those flags easily in NifSkope.
User avatar
Marine x
 
Posts: 3327
Joined: Thu Mar 29, 2007 4:54 am

Post » Sat May 28, 2011 9:58 am

(...)



Uhm, you script pretty well si I'm guessing you're modding for some time... so why exactly were you using empty meshes when there are already markers in the game that could be used for that? Like those red ones used for sound?
User avatar
Jesus Sanchez
 
Posts: 3455
Joined: Sun Oct 21, 2007 11:15 am

Post » Sat May 28, 2011 4:40 am

I don't know, I've never used those. Do I have a doh moment coming up?

Edit: Well, doh indeed. I guess I've been using my own empty meshes because I figured they couldn't cause any problems. And how wrong I was. Well, thanks for the heads up Chaka. Funny (or sad) thing is I've been using that mesh since 2002.
User avatar
Daniel Brown
 
Posts: 3463
Joined: Fri May 04, 2007 11:21 am

Post » Sat May 28, 2011 6:37 am

I don't know, I've never used those. Do I have a doh moment coming up?

Edit: Well, doh indeed. I guess I've been using my own empty meshes because I figured they couldn't cause any problems. And how wrong I was. Well, thanks for the heads up Chaka. Funny (or sad) thing is I've been using that mesh since 2002.


Don't worry. I too mod since 2002 and I learned few of the most beginner's stuff only recently.
User avatar
Vicki Gunn
 
Posts: 3397
Joined: Thu Nov 23, 2006 9:59 am


Return to III - Morrowind