Hi there.
So I've pretty much been referencing this website: http://www.shikadi.n..._Format_(Build) for documentation on Duke3D file formats. The documentation on this website is pretty awesome, but I'm worried there's some errors as I seem to have run into some. It does link to this https://github.com/j...oc/buildinf.txt which does have a lot more detailed information, but I really like the condensed documentation of the map format.
I've been trying to avoid going through code because even something like eduke32 is so C like it's just so ridiculous to try to read.
Anyway, the issues I'm worried about regarding this documentation are that the types specified are wrong, and I would like to write better\easier to read documentation.
The first issue I came across was with the "cursectnum." Here it's specified as a uint32. I was getting wonky results reading it from the map file. The fact that "numsectors" was a uint16 kind of tipped me off that it was probably wrong. It doesn't make sense for the sector number to be bigger than the total number of sectors. So I assume this is supposed to be a uint16 as well?
The other thing I noticed is that the positions here are written as unsigned, yet looking in mapster32, the position is definitely signed. Is that because of additions to eduke32, or is it supposed to be signed?
Looking at the buildinf.txt, I don't even see it using unsigned. It uses longs and shorts. Also the posZ is apparently shifted up 4, but in the buildinf.txt, it doesn't show this being used. Should it then be read as posZ = posZ >> 4? What is the significance of posZ supposedly being shifted like that?
Can anyone verify that this documentation isn't completely broken?

Help
Duke4.net
DNF #1
Duke 3D #1


