Jump to content

IGLOB.DAT: Difference between revisions

From UFOpaedia
 
Sfnhltb (talk | contribs)
No edit summary
Line 1: Line 1:
{{STUB}}
The file '''IGLOB.DAT''' in each save game directoy stores the current date and time and for some versions the difficulty setting. It is either 60 or 64 bytes long, and each value is stored as a 4 byte numeric field.


----
<center>
<table {{StdDescTable}}>
<tr>
<th {{StdDescTable_Heading}}>'''Offset<br/>dec (hex)'''</th><th {{StdDescTable_Heading}}>'''Meaning'''</th>
</tr>
<tr><td>0  (0x00)</td><td>Unknown (Values 1)</td></tr>
<tr><td>4  (0x04)</td><td>Unknown (read only Month?)(Values 2,3,6)</td></tr>
<tr><td>8  (0x08)</td><td>Days</td></tr>
<tr><td>12 (0x0C)</td><td>Hours</td></tr>
<tr><td>16 (0x10)</td><td>Minutes</td></tr>
<tr><td>20 (0x14)</td><td>Seconds, all values multiples of 5</td></tr>
<tr><td>24 (0x18)</td><td>Unknown (Values 0,1)</td></tr>
<tr><td>28 (0x1C)</td><td>Unknown (Values 0,1,2,3,4)</td></tr>
<tr><td>32 (0x20)</td><td>Unknown (Values 0,1)</td></tr>
<tr><td>36 (0x24)</td><td>Unknown (Values 0,1)</td></tr>
<tr><td>40 (0x28)</td><td>Unknown (Values 0,2)</td></tr>
<tr><td>44 (0x2C)</td><td>Unknown (Values 0,2,3,4,6)</td></tr>
<tr><td>48 (0x30)</td><td>Unknown (Values 0)</td></tr>
<tr><td>52 (0x34)</td><td>Unknown (Values 0,1)</td></tr>
<tr><td>56 (0x38)</td><td>Unknown (Values 128,146)</td></tr>
<tr><td>60 (0x3C)</td><td>If present indicates the difficulty, see below</td></tr>
</table>
</center>


Until the structure for this file is posted here in its entirety, I felt it to be a good idea to copy and paste the following post by Quantifier on the xcomufo forums that is relevant to this file.  
Note that changing the days, minutes, hours or seconds do not change the values seen in the Load/Save game screen, but do change the values when you actually load the game.  


{| style ="background:#e0e0e0; border:1px solid black; margin:1em;"
==Difficulty Setting==
|-
 
|Difficulty setting is stored in IGLOB.DAT file in save directory. If it is 64 bytes long, then last 4 bytes (double word) indicate level:
Difficulty setting is not always present, see the known bug regarding this. If it is the value should be interpreted as:


0 = Beginner<br>
0 = Beginner<br>
Line 20: Line 42:


If the file is only 60 bytes long, then it must have been saved with DOS version of EU, not patched by XComUtil. In this case, original difficulty setting is lost, and will be restored as 0 (Beginner) when you load.
If the file is only 60 bytes long, then it must have been saved with DOS version of EU, not patched by XComUtil. In this case, original difficulty setting is lost, and will be restored as 0 (Beginner) when you load.
|}


Above information on difficulty taken from a post by Quantifier on the xcomufo forums


- [[User:NKF|NKF]]
==See Also==
[[Saved Game Files]]

Revision as of 23:58, 3 March 2007

The file IGLOB.DAT in each save game directoy stores the current date and time and for some versions the difficulty setting. It is either 60 or 64 bytes long, and each value is stored as a 4 byte numeric field.

Offset
dec (hex)
Meaning
0 (0x00)Unknown (Values 1)
4 (0x04)Unknown (read only Month?)(Values 2,3,6)
8 (0x08)Days
12 (0x0C)Hours
16 (0x10)Minutes
20 (0x14)Seconds, all values multiples of 5
24 (0x18)Unknown (Values 0,1)
28 (0x1C)Unknown (Values 0,1,2,3,4)
32 (0x20)Unknown (Values 0,1)
36 (0x24)Unknown (Values 0,1)
40 (0x28)Unknown (Values 0,2)
44 (0x2C)Unknown (Values 0,2,3,4,6)
48 (0x30)Unknown (Values 0)
52 (0x34)Unknown (Values 0,1)
56 (0x38)Unknown (Values 128,146)
60 (0x3C)If present indicates the difficulty, see below

Note that changing the days, minutes, hours or seconds do not change the values seen in the Load/Save game screen, but do change the values when you actually load the game.

Difficulty Setting

Difficulty setting is not always present, see the known bug regarding this. If it is the value should be interpreted as:

0 = Beginner
1 = Experienced
2 = Veteran
3 = Genius (EU)
4 = Superhuman (EU), Genius (TFtD)
5 - never used
6 = Superhuman (TFtD)

(TFtD uses the same labels for two hardest levels, but their internal values are higher than in EU)

If the file is only 60 bytes long, then it must have been saved with DOS version of EU, not patched by XComUtil. In this case, original difficulty setting is lost, and will be restored as 0 (Beginner) when you load.

Above information on difficulty taken from a post by Quantifier on the xcomufo forums

See Also

Saved Game Files