Baron of Hell
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Calculating map data
 
Author
All times are GMT. The time now is 10:24. Post New Thread    Post A Reply
Eris Falling
Forum Staple


Posts: 2987
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

Old Post 01-27-13 15:49 #
Eris Falling is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
boris
meow


Posts: 3626
Registered: 05-00


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

[edit] 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.

Old Post 01-27-13 16:23 #
boris is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Eris Falling
Forum Staple


Posts: 2987
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! :)

Old Post 01-27-13 16:27 #
Eris Falling is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 10:24. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Calculating map data

Show Printable Version | Email this Page | Subscribe to this Thread

 

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
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.