Difference between revisions of "SAVEINFO.DAT"

From UFOpaedia
Jump to navigation Jump to search
m (→‎See Also: Category)
m (Formatting and clarification.)
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>
+
<b>0</b> - 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.
to see which save folder to go to.<br>
+
 
<br>
+
<b>1</b> - 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[1] - <br>
+
 
This is the 26 byte string, which details the name of<br>
+
<b>2</b> - The current year.
the save file. The name may be 25 characters long;<br>
+
 
the final byte is always of value 0. A 0 also marks<br>
+
<b>3</b> - The current month. Note that 0 is January.
the end of the save name, should it not use all 25<br>
+
 
characters.<br>
+
<b>4</b> - The current day of the month.
<br>  
+
 
saveinfo[2] - The current year.<br>
+
<b>5</b> - The current hour (24 hour time).
saveinfo[3] - The current month. Note that 0 is January.<br>
+
 
saveinfo[4] - The current day of the month.<br>
+
<b>6</b> - The current minute.
saveinfo[5] - The current hour (24 hour time).<br>
+
 
saveinfo[6] - The current minute.<br>
+
<b>7</b> - 0 for geoscape save, 1 for tactical save.
saveinfo[7] - 0 for geoscape save, 1 for tactical save.<br>
 
  
 
==See Also==
 
==See Also==
 
* [[Saved Game Files]]
 
* [[Saved Game Files]]
 
* [[Saved_Game_Files#Geoscape_Files|Geoscape Files]]
 
* [[Saved_Game_Files#Geoscape_Files|Geoscape Files]]

Revision as of 04:21, 17 June 2006

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

0 - 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.

1 - 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.

2 - The current year.

3 - The current month. Note that 0 is January.

4 - The current day of the month.

5 - The current hour (24 hour time).

6 - The current minute.

7 - 0 for geoscape save, 1 for tactical save.

See Also