Difference between revisions of "SAVEINFO.DAT"

From UFOpaedia
Jump to navigation Jump to search
m (→‎See Also: Category)
(fix mistake in previous reformatting)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
This file is present in any save.<br>
+
This file is present in any save.
<br>
+
 
 
There are 8 values. 7 of these are made of 2 bytes each, and the<br>
 
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.<br>
 
other is a string value made up of 26 bytes. Total of 40 bytes.<br>
<br>
+
 
saveinfo[0] - <br>
+
== Structure ==
If 0, then certain resource files (list these BB!) will be used<br>
+
 
from the missdat folder. If this is 1, then check direct.dat<br>
+
{| class="wikitable"
to see which save folder to go to.<br>
+
|-
<br>
+
!Offset<br>(Decimal)
saveinfo[1] - <br>
+
!Offset<br>(Hex)
This is the 26 byte string, which details the name of<br>
+
!Usage
the save file. The name may be 25 characters long;<br>
+
 
the final byte is always of value 0. A 0 also marks<br>
+
|- valign="top"
the end of the save name, should it not use all 25<br>
+
!<span id="0-1"></span>0-1
characters.<br>
+
!<span id="0x00-0x01"></span>0x00-0x01
<br>  
+
|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[2] - The current year.<br>
+
 
saveinfo[3] - The current month. Note that 0 is January.<br>
+
|- valign="top"
saveinfo[4] - The current day of the month.<br>
+
!<span id="2-27"></span>2-27
saveinfo[5] - The current hour (24 hour time).<br>
+
!<span id="0x02-0x1D"></span>0x02-0x1D
saveinfo[6] - The current minute.<br>
+
|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.
saveinfo[7] - 0 for geoscape save, 1 for tactical save.<br>
+
 
 +
|- 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==
 
==See Also==
 
* [[Saved Game Files]]
 
* [[Saved Game Files]]
 
* [[Saved_Game_Files#Geoscape_Files|Geoscape 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