Jump to content

SAVEINFO.DAT: Difference between revisions

From UFOpaedia
No edit summary
 
Thg2k5 (talk | contribs)
fix mistake in previous reformatting
 
(8 intermediate revisions by 6 users not shown)
Line 1: Line 1:
This file is present in any save.
This file is present in any save.


There are 8 values. 7 of these are made of 2 bytes each, and the
There are 8 values. 7 of these are made of 2 bytes each, and the<br>
other is a string value made up of 26 bytes. Total of 40 bytes.
other is a string value made up of 26 bytes. Total of 40 bytes.<br>


saveinfo[0] - If 0, then certain resource files (list these BB!) will be used
== Structure ==
              from the missdat folder. If this is 1, then check direct.dat
              to see which save folder to go to.


saveinfo[1] - This is the 26 byte string, which details the name of
{| class="wikitable"
              the save file. The name may be 25 characters long;
|-
              the final byte is always of value 0. A 0 also marks
!Offset<br>(Decimal)
              the end of the save name, should it not use all 25
!Offset<br>(Hex)
              characters.
!Usage
             
 
saveinfo[2] - The current year.
|- valign="top"
saveinfo[3] - The current month. Note that 0 is January.
!<span id="0-1"></span>0-1
saveinfo[4] - The current day of the month.
!<span id="0x00-0x01"></span>0x00-0x01
saveinfo[5] - The current hour (24 hour time).
|Ignore this if the file is not in the missdat folder. If 0, then this is a savegame made on the beginning of a new battlescape game. If 1, then check [[DIRECT.DAT]] to see where which save slot to load from.
saveinfo[6] - The current minute.
 
saveinfo[7] - 0 for geoscape save, 1 for tactical save.
|- valign="top"
!<span id="2-27"></span>2-27
!<span id="0x02-0x1D"></span>0x02-0x1D
|This a 26 byte null terminated string, which details the name of the save file. The name may be 25 characters long; the final byte is always of value 0. A 0 also marks the end of the save name, should it not use all 25 characters.
 
|- valign="top"
!<span id="28-29"></span>28-29
!<span id="0x1C-0x1D"></span>0x1C-0x1D
|The current year.
 
|- valign="top"
!<span id="30-31"></span>30-31
!<span id="0x1E-0x1F"></span>0x1E-0x1F
|The current month. Note that 0 is January.
 
|- valign="top"
!<span id="32-33"></span>32-33
!<span id="0x20-0x21"></span>0x20-0x21
|The current day of the month.
 
|- valign="top"
!<span id="34-35"></span>34-35
!<span id="0x22-0x23"></span>0x22-0x23
|The current hour (24 hour time).
 
|- valign="top"
!<span id="36-37"></span>36-37
!<span id="0x24-0x25"></span>0x24-0x25
|The current minute.
 
|- valign="top"
!<span id="38-39"></span>38-39
!<span id="0x26-0x27"></span>0x26-0x27
|0 for geoscape save, 1 for tactical save.
 
|-
|}
 
==See Also==
* [[Saved Game Files]]
* [[Saved_Game_Files#Geoscape_Files|Geoscape Files]]
[[Category:Game Files]]
[[Category:Enemy Unknown/UFO Defense]]

Latest revision as of 14:31, 22 July 2019

This file is present in any save.

There are 8 values. 7 of these are made of 2 bytes each, and the
other is a string value made up of 26 bytes. Total of 40 bytes.

Structure

Offset
(Decimal)
Offset
(Hex)
Usage
0-1 0x00-0x01 Ignore this if the file is not in the missdat folder. If 0, then this is a savegame made on the beginning of a new battlescape game. If 1, then check DIRECT.DAT to see where which save slot to load from.
2-27 0x02-0x1D This a 26 byte null terminated string, which details the name of the save file. The name may be 25 characters long; the final byte is always of value 0. A 0 also marks the end of the save name, should it not use all 25 characters.
28-29 0x1C-0x1D The current year.
30-31 0x1E-0x1F The current month. Note that 0 is January.
32-33 0x20-0x21 The current day of the month.
34-35 0x22-0x23 The current hour (24 hour time).
36-37 0x24-0x25 The current minute.
38-39 0x26-0x27 0 for geoscape save, 1 for tactical save.

See Also