I thought doors used the simple BRICK type for their base bricks, not the SPECIAL type, weird.
The quad type like Top, North, and Omni only tells the engine which faces to un-render when other bricks' faces are placed adjacent to them after calculating the COVERAGE parameters. Omni quads are never un-rendered, or atleast I haven't found a case where they were un-rendered.
Anyhow as far as Quad POSITION goes, what you are doing is creating a set of square faces to build up the brick's Mesh, all this via script. It's daunting I know but that's what you have to do for these. The POSITION parameters determines where to place the 4 vertexes that will make up the face, and this is with reference to the brick's origin point (the Center of the brick's "box"). The origin point is 0 0 0, from there you move the vertexes left or right, in or out, up or down the axis, just like placing points on a 2D grid and getting the point's position in X and Y values, except the grid is layed out flat in front of you and you now have a height Z parameter axis going through the plane as well.
I have no idea in which order you should place the points though and even if it matters it matters, see edit VVV. All I know is you should never place points across from each other like this
1---3
| |
4---2
POSITION
0 0 0
1 0 -1
1 0 0
0 0 -1
It should be something like this
1---2
| |
4---3
POSITION
0 0 0
1 0 0
1 0 -1
0 0 -1
Now UV mapping
http://en.wikipedia.org/wiki/UV_mappingThe article looks scary, but UV mapping is not so bad. You might find the equations on there useful.
UV mapping is complicated, all I can say it's like placing the Texture (TEX) on a 2D cartesian grid and then placing each vertex from the POSITION on that grid to map the texture to the face. U represent's that vertex' X coordinate and V represents that vertex' Y coordinate. The texture also repeats infinitely on all sides, the general dimensions of the textures borders are 1 x 1. I recommend trying to keep UV mapping parameters as simple as possible and follow a pattern of POSITION vs UV MAPPING within your .blb files.
NORMAL determines in which direction each vertex is facing, it's used in Lighting effects. Not too complicated.
That's all the help I can offer.
Edit: Vertex order matters1---2
| |
4---3
Going Clockwise, the quad will face in your direction.
2---1
| |
3---4
Going Anticlockwise, the quad will face the Opposite direction.
So looking at a brick from the South, you'll be seeing a vertex order like this for the South quad and North quad
2---1
/| N/|
/ 3-/-4
1---2 /
| S |/
4---3
|/
O-
You'll see the South quad but not the North quad, the North quad is facing away from you and has no texture on it's backside. If you flip it around, you'll now see the North quad but not the South quad, see what I mean?