Eris Falling
Forum Staple
Posts: 3260
Registered: 0712 
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
