Skyrim Mod talk:Save File Format/TES

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

I always get 60 extra empty bytes after this structure. :/ Ixpf 17:46, 3 May 2012 (UTC)

That's because this definition is incorrect. Looking into it. Trira 22:30, 15 August 2012 (UTC)

Extra empty bytes.[edit]

For some reason, I'm getting extra bytes at the end of this section. But it only is with some save files. Some saves match this section definition exactly, but other saves will have empty bytes at the end.

For instance: I am reading in a 7 for count2. This means that Unknown1[count2] should be 105 bytes long. However, when I go forward 105 bytes, I have 43 empty bytes remaining in this section before I get to the Global Variables section.

Obviously, this should not be happening. Since they are all empty bytes, it's not possible for count3 and RefID[count3] to cover these remaining 43 bytes, because count3 would be 0. Not only is that not possible, but if count3 is indeed 0, then it is also impossible for count2 to represent any configuration of these 147 bytes correctly, since 147 is not divisible by 15 (the size of the Unknown1 structure).

I suppose it's possible for the save to be corrupted in some way, but the save will load perfectly fine in Skyrim. It's also worth noting that the length of my TES section as specified in the beginning of the section is correct. Jumping forward the specified number of bytes will correctly get me to the Global Variables section. So, clearly Skyrim is well aware of these "extra" bytes; and, presumably, they are supposed to be there. Is it possible that this definition is somehow slightly wrong? Or that one of these unknown values specifies whether extra field(s) exists?

Or maybe I am misunderstanding something...?

Dremth (talk) 18:17, 30 July 2013 (GMT)