DF-21 Forums Forum Index DF-21 Forums
The Dark Forces Community
 
DF-21.net Home | FAQ | Search | Memberlist  | Register 
Profile | Log in to check your private messages | Log in

lev file

 
Post new topic   Reply to topic    DF-21 Forums Forum Index -> Dark Forces Levels & Editing
View previous topic :: View next topic  
Author Message
chris the cynic
Dianoga

Joined: 11 Jun 2005

PostPosted: Mar 07, 2006 03:02    Post subject: lev file View user's profile Send private message Reply with quote

I'm an odd person, if you accept that and don't ask me why I ask what I ask it will save some trouble.

I was looking in a lev file and trying to picture what I was looking at in 3d now the vertices are listed and that is simple enough, but when it gets to walls I get confused:

Each wall is represented by:
WALL LEFT: 0 RIGHT: 1 MID: 31 0.00 0.00 0 TOP: 31 0.00 0.00 0 BOT: 31 0.00 0.00 0 SIGN: -1 0.00 0.00 ADJOIN: 0 MIRROR: 2 WALK: 0 FLAGS: 0 0 0 LIGHT: 7

So what do all of these vaules actually mean, and what describes the height (and elevation) of the wall?

Darth Oosha
Trandoshan

Joined: 24 Sep 2003

PostPosted: Mar 07, 2006 04:04    Post subject: View user's profile Send private message Reply with quote

I'm not reading from the specs or anything, but I know that MID, TOP, and BOT are the three sections of a wall that can be independently textured. The two decimal numbers after each are probably the texture offset coordinates, and one of the integers must be a texture number; but I don't know what the other integer is, if LIGHT is stored separetly. Something to do with anchoring the texture?

The MAZZTer
Death Star
Death Star

Joined: 25 Sep 2003

PostPosted: Mar 11, 2006 16:04    Post subject: View user's profile Send private message Send e-mail Reply with quote

The DF Specs are your friend.

_________________
http://www.mzzt.net/ | I am a respectable admin with a respectable sig.

Fenwar
Admiral Ackbar
Admiral Ackbar

Joined: 15 Sep 2003

PostPosted: Mar 15, 2006 08:55    Post subject: Re: lev file View user's profile Send private message Reply with quote

chris the cynic wrote:
what describes the height (and elevation) of the wall?



To answer this one directly - the heights are set on the sector, not the wall.

If a wall happens to adjoin a wall in another sector, it is automatically "cut to size" to create a window through to that sector. So if a wall in sector 1 (floor 0, ceiling 16) adjoins sector 2 (floor 4, ceiling 12), that wall will be drawn as a bottom section from 0-4 and a top section from 12-16. As Oosha says they can be textured separately but as far as the .lev file is concerned they're the same wall.

But yes, the DF Specs are your "powerful ally". Or you could open an existing level in WDFUSE and play with the values... the WDFUSE tutorial is the best introduction to editing DF.

Unless you're trying to convert the .levs to another format... which is the initial impression I get from your post, but I won't ask, you asked me not to ask. Smile

Display posts from previous:   
Post new topic   Reply to topic    DF-21 Forums Forum Index -> Dark Forces Levels & Editing All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group