Oh Hey, here ya go, found the section definitions. I downloaded this from somewhere in like 2002 or something
PUD Format Spoiler
Nope lol sorry was too big... so I attached it instead
So your offset 0x80 is the very start of the data for the 'UDTA' section.
You can see it here - random cusom PUD is Mini BGH (SS of my trusty Hex Editor - I wrote that golden oldie in '97 - been using it ever since
).
So the red box shows the section 4CC 'UDTA' the blue box contains the dword length of the data for that section - in this case 0x1640 bytes (5696 in ape numbers), and following that inthe green box is the value you are setting, which is actually a 2-byte 'WORD' value, but as it is either 0 or 1, the high byte (which comes second) is always 0, so only the first byte is modified.
As you can see from the included file:
------------------------------------------------------------
6: Section 'UDTA', Unit Data
word use default data (0 no, 1 yes) 110 words overlap frames
508 words obselete data (ignore it) was .....
-------------------------------------------------------------
... it's that first WORD value "use default data"
and just to illustrate the issue with using file offsets for this type of file, here's the same information from an earlier description of PUD internals, which is entitled "PUD Maximum File Format"
-------------------------------------------------------------------------
00:006A-00:006B W Era number
0=Forest,1=Icelands,2=Wastelands,3=Swamps
*4-255=forest
00:006C-00:006F $ Header description "ERAX"
00:0070-00:0073 L Expansion era data length ( 2 B)
00:0074-00:0075 W Expansion Era number
0=Forest,1=Icelands,2=Wastelands,3=Swamps
*4-255=forest
00:0076-00:0079 $ Header description "DIM "
00:007A-00:007D L Dimensions data length ( 4 B)
00:007E-00:0081 W Map X and Y dimensions (0 ?? .. 128max)
*Map is always loaded only by Y size
*i.e. Y*Y map size
00:0082-00:0085 $ Header description "UDTA"
00:0086-00:0089 L Unit data length ( 5950 B )
00:008A-00:008B W Set if Should be used default data
0=no,1=yes00:008C-00:0167 W Overlap frames for each unit (0..109)
* group to belong number
* see "UNIT" section for units order
00:0168-00:0265 W Obsolete General grafix frames
-------------------------------------------------------------------
However as you can see here the value is denoted as being at offset 0x8A because the PUD file being described also contains the optional 'ERAX' section.
The only thing that can be guaranteed is that it is the first WORD in the data for the 'UDTA' section.The data lengths in each section header construct the file i.e. as the 'UDTA' section in the Mini BGH PUD here is 0x1640 bytes long and starts at 0x80 then the next section header will be at 0x1640 + 0x0080 = 0x16C0, and indeed if you go to offset 0x16C0 in this PUD you will find 'UGRD' the "Upgrades" section 4CC followed by the DWORD 0x0000030E because the data for this section is 0x30E bytes long...