Difference between revisions of "IGLOB.DAT"
m |
|||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | 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. |
||
− | {{STUB}} |
||
+ | <center> |
||
− | ---- |
||
+ | <table {{StdDescTable}}> |
||
+ | <tr> |
||
+ | <th {{StdDescTable_Heading}}>'''Offset<br/>dec (hex)'''</th><th {{StdDescTable_Heading}}>'''Meaning'''</th> |
||
+ | </tr> |
||
+ | <tr><td>0 (0x00)</td><td>Month (0-12)</td></tr> |
||
+ | <tr><td>4 (0x04)</td><td>Weekday (0-6)</td></tr> |
||
+ | <tr><td>8 (0x08)</td><td>Days (0-31)</td></tr> |
||
+ | <tr><td>12 (0x0C)</td><td>Hours (0-24)</td></tr> |
||
+ | <tr><td>16 (0x10)</td><td>Minutes (0-60)</td></tr> |
||
+ | <tr><td>20 (0x14)</td><td>Seconds, all values multiples of 5</td></tr> |
||
+ | <tr><td>24 (0x18)</td><td>Number of Hidden Craft</td></tr> |
||
+ | <tr><td>28 (0x1C)</td><td>Number of Airborne X-craft</td></tr> |
||
+ | <tr><td>32 (0x20)</td><td>Number of Refueling craft</td></tr> |
||
+ | <tr><td>36 (0x24)</td><td>Number of Damaged craft</td></tr> |
||
+ | <tr><td>40 (0x28)</td><td>Number of Repairing craft</td></tr> |
||
+ | <tr><td>44 (0x2C)</td><td>Number of Airborne craft</td></tr> |
||
+ | <tr><td>48 (0x30)</td><td>Number of UFOs on Retaliation Missions</td></tr> |
||
+ | <tr><td>52 (0x34)</td><td>Number of Alien Bases</td></tr> |
||
+ | <tr><td>56 (0x38)</td><td>Current MIDI sound</td></tr> |
||
+ | <tr><td>60 (0x3C)</td><td>If present indicates the difficulty, see below</td></tr> |
||
+ | </table> |
||
+ | </center> |
||
+ | 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. The values seen in the Load/Save screen is read from [[SAVEINFO.DAT]]. |
||
− | 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. |
||
+ | ==Difficulty Setting== |
||
− | {| style ="background:#e0e0e0; border:1px solid black; margin:1em;" |
||
+ | |||
− | |- |
||
− | + | Difficulty setting is not always present, for more information see the [[Known_Bugs#Difficulty_Bug|known bug]] caused by this. If it is the value should be interpreted as: |
|
0 = Beginner<br> |
0 = Beginner<br> |
||
Line 19: | Line 41: | ||
(TFtD uses the same labels for two hardest levels, but their internal values are higher than in EU) |
(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 |
+ | 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]] |
||
+ | [[Category:Game Files]] |
||
− | - [[User:NKF|NKF]] |
||
+ | [[Category:Enemy Unknown/UFO Defense]] |
Latest revision as of 09:19, 2 May 2014
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) | Month (0-12) |
4 (0x04) | Weekday (0-6) |
8 (0x08) | Days (0-31) |
12 (0x0C) | Hours (0-24) |
16 (0x10) | Minutes (0-60) |
20 (0x14) | Seconds, all values multiples of 5 |
24 (0x18) | Number of Hidden Craft |
28 (0x1C) | Number of Airborne X-craft |
32 (0x20) | Number of Refueling craft |
36 (0x24) | Number of Damaged craft |
40 (0x28) | Number of Repairing craft |
44 (0x2C) | Number of Airborne craft |
48 (0x30) | Number of UFOs on Retaliation Missions |
52 (0x34) | Number of Alien Bases |
56 (0x38) | Current MIDI sound |
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. The values seen in the Load/Save screen is read from SAVEINFO.DAT.
Difficulty Setting
Difficulty setting is not always present, for more information see the known bug caused by 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