Difference between revisions of "ALIEN.DAT"

From UFOpaedia
Jump to navigation Jump to search
m (Added category link)
m
 
(11 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
==Structure==
 
==Structure==
The format is rather tedious and the best line width is 124 bytes, which will cover an entire month of both Countries and Regions. There are a total of 12 months stored in this file. Each value is stored in 4 bytes in the usual low then high manner. It is presumed that they are signed and will go negative after FF FF FF 7F (0x7FFFFFFF in normal notation), but this has not been tested, nor should it be possible in the game normally.
+
The format is rather tedious and the best line width is 124 bytes, which will cover an entire month of both Countries and Regions. There are a total of 12 months stored in this file. Each value is stored in 4 bytes in the usual low then high manner. It is signed and will go negative after FF FF FF 7F (0x7FFFFFFF in normal notation), for ALIEN.DAT negative values will not occur, but they are possible in the XCOM.DAT when missions go bad. Very high or highly negative values in these files (certainly once you get up to 2 billion or so) will cause the game to freeze up if you try to view the graphs.
  
The first record contains this month's information. The second last month's and so on.
+
The first record contains this month's information. The second last month's and so on. Each UFO adds one to the appropriate territory it is over on each 30 minute update period, so a score of 100 would indicate UFOs spent 50 hours (roughly) over that territory in the month. If it is over a specific country, it will also add one to that counter each 30 minutes, as well as incrementing the territory. There are also other, more rapid, ways of the [[Scoring#Alien_Scoring|Aliens scoring]] that will be recorded here.
 +
 
 +
For XCOM the same basic method happens, but different things will [[Scoring#X-COM_Scoring|score]] points - for example shooting down a very small ufo (100 points) in the UK would add 100 to UK, and 100 to Europe, downing the same craft would get 50, and completing a 25 point mission would gain 25 in both the UK and Europe. Negative values would also be added, decreasing the score and potentially making it negative (shows as 0 on graph, but is actually stored as a negative number internally).
  
 
These offsets were completely ripped from [http://www.stonepool.com/xcom/hacking/alien.html Hatfarm's] website, with some rearrangement to aid look-up (''hopefully'')
 
These offsets were completely ripped from [http://www.stonepool.com/xcom/hacking/alien.html Hatfarm's] website, with some rearrangement to aid look-up (''hopefully'')
Line 10: Line 12:
 
<table {{StdDescTable}}>
 
<table {{StdDescTable}}>
 
<tr>
 
<tr>
<th {{StdDescTable_Heading}}>'''Offset<br/>dec (hex)'''</th><th {{StdDescTable_Heading}}>'''Area Name'''</th>
+
<th {{StdDescTable_Heading}}>'''Offset<br/>dec (hex)'''</th><th {{StdDescTable_Heading}}>'''Country'''</th>
 
<th {{StdDescTable_Heading}}> </th>
 
<th {{StdDescTable_Heading}}> </th>
<th {{StdDescTable_Heading}}>'''Offset<br/>dec (hex)'''</th><th {{StdDescTable_Heading}}>'''Area Name'''</th>
+
<th {{StdDescTable_Heading}}>'''Offset<br/>dec (hex)'''</th><th {{StdDescTable_Heading}}>'''Region'''</th>
 
</tr>
 
</tr>
<tr><td>0 (0x0)</td><td>USA            </td><td></td><td>68 (0x44)</td><td>Arctic</td></tr>
+
<tr><td>0 (0x0)</td><td>USA            </td><td></td><td>64 (0x40)</td><td>North America</td></tr>
<tr><td>4 (0x4)</td><td>Russia        </td><td></td><td>72 (0x48)</td><td>Antarctica</td></tr>
+
<tr><td>4 (0x4)</td><td>Russia        </td><td></td><td>68 (0x44)</td><td>Arctic</td></tr>
<tr><td>8 (0x8)</td><td>UK            </td><td></td><td>76 (0x4C)</td><td>South America</td></tr>
+
<tr><td>8 (0x8)</td><td>UK            </td><td></td><td>72 (0x48)</td><td>Antarctica</td></tr>
<tr><td>12 (0xC)</td><td>France        </td><td></td><td>80 (0x50)</td><td>Europe</td></tr>
+
<tr><td>12 (0xC)</td><td>France        </td><td></td><td>76 (0x4C)</td><td>South America</td></tr>
<tr><td>16 (0x10)</td><td>Germany      </td><td></td><td>84 (0x54)</td><td>North Africa</td></tr>
+
<tr><td>16 (0x10)</td><td>Germany      </td><td></td><td>80 (0x50)</td><td>Europe</td></tr>
<tr><td>20 (0x14)</td><td>Italy        </td><td></td><td>88 (0x58)</td><td>Southern Africa</td></tr>
+
<tr><td>20 (0x14)</td><td>Italy        </td><td></td><td>84 (0x54)</td><td>North Africa</td></tr>
<tr><td>24 (0x18)</td><td>Spain        </td><td></td><td>92 (0x5C)</td><td>Central Asia</td></tr>
+
<tr><td>24 (0x18)</td><td>Spain        </td><td></td><td>88 (0x58)</td><td>Southern Africa</td></tr>
<tr><td>28 (0x1C)</td><td>China        </td><td></td><td>96 (0x60)</td><td>Southeast Asia</td></tr>
+
<tr><td>28 (0x1C)</td><td>China        </td><td></td><td>92 (0x5C)</td><td>Central Asia</td></tr>
<tr><td>32 (0x20)</td><td>Japan        </td><td></td><td>100 (0x64)</td><td>Siberia</td></tr>
+
<tr><td>32 (0x20)</td><td>Japan        </td><td></td><td>96 (0x60)</td><td>Southeast Asia</td></tr>
<tr><td>36 (0x24)</td><td>India        </td><td></td><td>104 (0x68)</td><td>Australasia</td></tr>
+
<tr><td>36 (0x24)</td><td>India        </td><td></td><td>100 (0x64)</td><td>Siberia</td></tr>
<tr><td>40 (0x28)</td><td>Brazil      </td><td></td><td>108 (0x6C)</td><td>Pacific</td></tr>
+
<tr><td>40 (0x28)</td><td>Brazil      </td><td></td><td>104 (0x68)</td><td>Australasia</td></tr>
<tr><td>44 (0x2C)</td><td>Australia    </td><td></td><td>112 (0x70)</td><td>North Atlantic</td></tr>
+
<tr><td>44 (0x2C)</td><td>Australia    </td><td></td><td>108 (0x6C)</td><td>Pacific</td></tr>
<tr><td>48 (0x30)</td><td>Nigeria      </td><td></td><td>116 (0x74)</td><td>South Atlantic</td></tr>
+
<tr><td>48 (0x30)</td><td>Nigeria      </td><td></td><td>112 (0x70)</td><td>North Atlantic</td></tr>
<tr><td>52 (0x34)</td><td>South Africa </td><td></td><td>120 (0x78)</td><td>Indian Ocean</td></tr>
+
<tr><td>52 (0x34)</td><td>South Africa </td><td></td><td>116 (0x74)</td><td>South Atlantic</td></tr>
<tr><td>56 (0x38)</td><td>Egypt        </td><td></td><td>         </td></tr>
+
<tr><td>56 (0x38)</td><td>Egypt        </td><td></td><td>120 (0x78)</td><td>Indian Ocean</td></tr>
 +
<tr><td>60 (0x3C)</td><td>Canada      </td><td></td></tr>
 
</table>
 
</table>
  
Line 35: Line 38:
 
* [[Saved Game Files]]
 
* [[Saved Game Files]]
 
[[Category:Game Files]]
 
[[Category:Game Files]]
 +
[[Category:Enemy Unknown/UFO Defense]]

Latest revision as of 04:34, 23 July 2013

This file contains information on the activity of aliens in both countries and regions. The same format is used for XCOM.DAT only it obviously applies to XCOM activity in the area.

Structure

The format is rather tedious and the best line width is 124 bytes, which will cover an entire month of both Countries and Regions. There are a total of 12 months stored in this file. Each value is stored in 4 bytes in the usual low then high manner. It is signed and will go negative after FF FF FF 7F (0x7FFFFFFF in normal notation), for ALIEN.DAT negative values will not occur, but they are possible in the XCOM.DAT when missions go bad. Very high or highly negative values in these files (certainly once you get up to 2 billion or so) will cause the game to freeze up if you try to view the graphs.

The first record contains this month's information. The second last month's and so on. Each UFO adds one to the appropriate territory it is over on each 30 minute update period, so a score of 100 would indicate UFOs spent 50 hours (roughly) over that territory in the month. If it is over a specific country, it will also add one to that counter each 30 minutes, as well as incrementing the territory. There are also other, more rapid, ways of the Aliens scoring that will be recorded here.

For XCOM the same basic method happens, but different things will score points - for example shooting down a very small ufo (100 points) in the UK would add 100 to UK, and 100 to Europe, downing the same craft would get 50, and completing a 25 point mission would gain 25 in both the UK and Europe. Negative values would also be added, decreasing the score and potentially making it negative (shows as 0 on graph, but is actually stored as a negative number internally).

These offsets were completely ripped from Hatfarm's website, with some rearrangement to aid look-up (hopefully)

Offset
dec (hex)
Country Offset
dec (hex)
Region
0 (0x0)USA 64 (0x40)North America
4 (0x4)Russia 68 (0x44)Arctic
8 (0x8)UK 72 (0x48)Antarctica
12 (0xC)France 76 (0x4C)South America
16 (0x10)Germany 80 (0x50)Europe
20 (0x14)Italy 84 (0x54)North Africa
24 (0x18)Spain 88 (0x58)Southern Africa
28 (0x1C)China 92 (0x5C)Central Asia
32 (0x20)Japan 96 (0x60)Southeast Asia
36 (0x24)India 100 (0x64)Siberia
40 (0x28)Brazil 104 (0x68)Australasia
44 (0x2C)Australia 108 (0x6C)Pacific
48 (0x30)Nigeria 112 (0x70)North Atlantic
52 (0x34)South Africa 116 (0x74)South Atlantic
56 (0x38)Egypt 120 (0x78)Indian Ocean
60 (0x3C)Canada

See Also