User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
 Doomworld Forums > Classic Doom > Doom Editing > Calculating map data
Author
 All times are GMT. The time now is 04:42.
Eris Falling
Forum Staple

Posts: 3488
Registered: 07-12

Recently I got into a muddle with calculating the number of vertices in a map (so I could add it to Doom Wiki articles).
I was told that the actual number of vertices in a map is calculated as follows:
`code:Vertices Lump size / 4 `
Since Doom Builder 2 can display the correct number of other things such as linedefs, all is well.
Except for a selection of maps (Knee Deep in ZDoom) which are so big, Doom Builder 2 crashes upon trying to open them.

So I've been looking up how to calculate Sidedefs, Linedefs, Things and Sectors without DB2 - Statistics mode.

From what I can work out:
```code:Sidedefs - Lump size / 30
Sectors - Lump size / 26
Things - Lump size / 10
```
Indeed, those sums do give out round numbers, so I'm fairly sure they're right, but do correct me if I'm wrong.

The problem is linedefs. I saw that ZDoom linedefs are different than those of vanilla, so I assume this is the case for KDiZD.
Nevertheless, I tried calculating KDiZD linedef count both ways:
```code:Vanilla linedefs - Lump size / 14 (gave a decimal number)
ZDoom linedefs - Lump size / 18 (gave a decimal number)```
Can someone tell me where I am going wrong? Thanks

Jan 27 2013 15:49 #
 || Blog || PM || Post History || Add Buddy IP || Edit || Quote
boris
meow

Posts: 3716
Registered: 05-00

Yes, linedefs in Hexen format have more bytes (for the line special arguments). But isn't it 16 and not 18?

 Oh, and each Hexen thing also has more bytes. It'd be best to go to the Doom wiki and just use the sizes given there.

Jan 27 2013 16:23 #
 || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Eris Falling
Forum Staple

Posts: 3488
Registered: 07-12

Yep. 16

I can't add up, it seems.

EDIT: Yes, Hexen is 20 bytes. Although I did use Doom Wiki, I probably read Heretic as Hexen when I came up with 10.

Thanks! :)

Jan 27 2013 16:27 #
 || Blog || PM || Post History || Add Buddy IP || Edit || Quote
 All times are GMT. The time now is 04:42.
 Doomworld Forums > Classic Doom > Doom Editing > Calculating map data

Forum Rules:
 You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is OFF vB code is ON Smilies are OFF [IMG] code is ON