Difference between revisions of "INTER.DAT"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
This file details the specifics of any interceptions currently occurring on the Geoscape. | This file details the specifics of any interceptions currently occurring on the Geoscape. | ||
− | + | Up to 4 records: 1 per interception window. | |
− | + | Each record is 142 [8Eh] bytes long for a total file length of 568 bytes. | |
− | |||
− | + | *'''0x00 ( word)''': active/inactive window: | |
− | *0x00 (word): active/inactive window: | ||
**0= active window (aircraft exists & is in intercept range) | **0= active window (aircraft exists & is in intercept range) | ||
**1= no active window (aircraft does not exist or does exist but is not in intercept range now) | **1= no active window (aircraft does not exist or does exist but is not in intercept range now) | ||
− | *0x02 (word): aircraft type for icon | + | *'''0x02 ( word)''': aircraft type for picture on icon of the minimized window |
− | *0x04 (word): | + | *'''0x04 ( word)''': byte A (craft number) from LOC.DAT for icon of minimized window |
− | *0x06 (word): craft LOC.DAT entry number. | + | *'''0x06 ( word)''': craft LOC.DAT entry number. |
− | *0x08 (word): CRAFT.DAT entry number. | + | *'''0x08 ( word)''': CRAFT.DAT entry number. |
− | *0x0A (word): UFO LOC.DAT entry number. | + | *'''0x0A ( word)''': UFO LOC.DAT entry number. |
− | *0x0C (word): UFO size ( | + | *'''0x0C ( word)''': UFO size (size is [5 - entry from UFO data]: vs= 0; s= 1; m= 2; l= 3; vl= 4) |
− | *0x0e (word): | + | *'''0x0e ( word)''': window minimized (=1) or active (=0) |
− | *0x12 (word): y position of window (accessed as a byte where I found it but it is most likely a word). | + | *'''0x12 ( word'''): y position of window (accessed as a byte where I found it but it is most likely a word). |
− | *0x14 (word): x position of window (x position is accessed as a word) | + | *'''0x14 ( word)''': x position of window (x position is accessed as a word) |
− | *0x16 (word): status message (starting at offset 0x397 in [[ENGLISH.DAT]]) | + | *'''0x16 ( word)''': status message (starting at offset 0x397 in [[ENGLISH.DAT]]) |
− | *0x18 (word): count down before the status message is cleared | + | *'''0x18 ( word)''': count down before the status message is cleared |
− | *0x1A (word): attack mode 0=Standoff 1=Cautious 2=Standard 3=Aggressive | + | *'''0x1A ( word)''': attack mode [0 = Standoff; 1 = Cautious; 2 = Standard; 3 = Aggressive] |
− | *0x1C (word): | + | *'''0x1C ( word)''': current distance to target (km x8) - can exceed standoff range (if byte00 = 1) |
− | *0x1E (word): requested distance to target (km x8) eg | + | *'''0x1E ( word)''': requested distance to target (km x8) eg 560 = 70km (stand off) |
− | *0x20 (word): speed delta (difference between speed of target ufo and xcom craft), "approach speed" | + | *'''0x20 ( word)''': speed delta (difference between speed of target ufo and xcom craft), "approach speed" |
− | *0x22 (word): air speed | + | *'''0x22 ( word)''': current air speed |
− | + | *'''0x24-0x41 (word)''': 15 distances of launched projectiles from left weapon | |
− | *0x42-0x5F (word): 15 distances of launched projectiles from right weapon | + | *'''0x42-0x5F (word)''': 15 distances of launched projectiles from right weapon |
− | *0x60 (word): Left weapon type | + | *'''0x60 ( word)''': Left weapon type |
− | *0x62 (word): Right weapon type | + | *'''0x62 ( word)''': Right weapon type |
− | *0x64 (word): Left weapon reload timer | + | *'''0x64 ( word)''': Left weapon reload timer |
− | *0x66 (word): Right weapon reload timer | + | *'''0x66 ( word)''': Right weapon reload timer |
− | *0x6A (word): UFO hit flash timer | + | *'''0x6A ( word)''': UFO hit flash timer |
− | *0x6C (word): UFO return fire intense level | + | *'''0x6C ( word)''': UFO return fire intense level |
− | *0x6E (word): craft destroyed explosion counter | + | *'''0x6E ( word)''': craft destroyed explosion counter |
− | *0x70 (word): UFO side view preview opened | + | *'''0x70 ( word)''': UFO side view preview opened |
− | *0x72 (word) XCOM craft type | + | *'''0x72 ( word)''': XCOM craft type |
− | *0x74 (word) UFO craft type | + | *'''0x74 ( word)''': UFO craft type |
− | *0x76 (dword): | + | *'''0x76 (dword)''': pointer to [[CRAFT.DAT]] offset of the attacking craft |
− | *0x7A (dword): | + | *'''0x7A (dword)''': pointer to attacking [[Talk:GEOSCAPE.EXE#Craft_type_data | craft stats]] offset |
− | *0x7E (dword): | + | *'''0x7E (dword)''': pointer to attacking craft left [[Talk:GEOSCAPE.EXE#Craft_weapon_stats| weapon stats]] offset |
− | *0x82 (dword): | + | *'''0x82 (dword)''': pointer to attacking craft right [[Talk:GEOSCAPE.EXE#Craft_weapon_stats| weapon stats]] offset |
− | *0x86 (dword): | + | *'''0x86 (dword)''': pointer to CRAFT.DAT offset of the attacked UFO |
− | *0x8A (dword): | + | *'''0x8A (dword)''': pointer to UFO stats offset |
− | |||
− | |||
− | |||
==See Also== | ==See Also== |
Revision as of 00:31, 16 February 2014
This file details the specifics of any interceptions currently occurring on the Geoscape.
Up to 4 records: 1 per interception window. Each record is 142 [8Eh] bytes long for a total file length of 568 bytes.
- 0x00 ( word): active/inactive window:
- 0= active window (aircraft exists & is in intercept range)
- 1= no active window (aircraft does not exist or does exist but is not in intercept range now)
- 0x02 ( word): aircraft type for picture on icon of the minimized window
- 0x04 ( word): byte A (craft number) from LOC.DAT for icon of minimized window
- 0x06 ( word): craft LOC.DAT entry number.
- 0x08 ( word): CRAFT.DAT entry number.
- 0x0A ( word): UFO LOC.DAT entry number.
- 0x0C ( word): UFO size (size is [5 - entry from UFO data]: vs= 0; s= 1; m= 2; l= 3; vl= 4)
- 0x0e ( word): window minimized (=1) or active (=0)
- 0x12 ( word): y position of window (accessed as a byte where I found it but it is most likely a word).
- 0x14 ( word): x position of window (x position is accessed as a word)
- 0x16 ( word): status message (starting at offset 0x397 in ENGLISH.DAT)
- 0x18 ( word): count down before the status message is cleared
- 0x1A ( word): attack mode [0 = Standoff; 1 = Cautious; 2 = Standard; 3 = Aggressive]
- 0x1C ( word): current distance to target (km x8) - can exceed standoff range (if byte00 = 1)
- 0x1E ( word): requested distance to target (km x8) eg 560 = 70km (stand off)
- 0x20 ( word): speed delta (difference between speed of target ufo and xcom craft), "approach speed"
- 0x22 ( word): current air speed
- 0x24-0x41 (word): 15 distances of launched projectiles from left weapon
- 0x42-0x5F (word): 15 distances of launched projectiles from right weapon
- 0x60 ( word): Left weapon type
- 0x62 ( word): Right weapon type
- 0x64 ( word): Left weapon reload timer
- 0x66 ( word): Right weapon reload timer
- 0x6A ( word): UFO hit flash timer
- 0x6C ( word): UFO return fire intense level
- 0x6E ( word): craft destroyed explosion counter
- 0x70 ( word): UFO side view preview opened
- 0x72 ( word): XCOM craft type
- 0x74 ( word): UFO craft type
- 0x76 (dword): pointer to CRAFT.DAT offset of the attacking craft
- 0x7A (dword): pointer to attacking craft stats offset
- 0x7E (dword): pointer to attacking craft left weapon stats offset
- 0x82 (dword): pointer to attacking craft right weapon stats offset
- 0x86 (dword): pointer to CRAFT.DAT offset of the attacked UFO
- 0x8A (dword): pointer to UFO stats offset