Difference between revisions of "INTER.DAT"

From UFOpaedia
Jump to navigation Jump to search
m
(corrected entries on projectiles)
 
(9 intermediate revisions by the same user not shown)
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.
  
*File length 0x238 = 568 bytes
+
Up to 4 records: 1 per interception window.
*Up to 4 records - 1 per interception window
+
Each record is 142 [8Eh] bytes long for a total file length of 568 bytes.
*Record length 0x8E = 142 bytes  
 
  
Record structure:
+
--Geoscape Window/Icon related 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 or icon? 3=Interceptor?
+
*'''0x02 ( word)''': aircraft type for icon's picture
*0x04 (word): ?aircraft number to use as label on minimised window? Or is 0x08 the aircraft#?
+
*'''0x04 ( word)''': byte A (craft number) from LOC.DAT for icon of minimized window
*0x6/8 (words): 4-3 3-2 2-1 1-0. Some kind of previous/current/next window linked list?
+
*'''0x06 ( word)''': craft LOC.DAT entry number.
*0x0A (word): craft LOC.DAT entry number.
+
*'''0x08 ( word)''': CRAFT.DAT entry number.
*0x0C (word): UFO size (note: size is [5-entry from UFO data]...vs=0, s=1, m=2, l=3, vl=4)
+
*'''0x0A ( word)''': UFO LOC.DAT entry number.
*0x0e (word): this window minimized =1, open =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 0x00 = 01)
 
*0x1E (word): requested distance to target (km x8) eg '''30 02''' = 560 = 70km (stand off)
 
*0x20 (word): speed delta (difference between speed of target ufo and xcom craft), "approach speed"
 
*0x22 (word): air speed (current? max?) eg '''18 15''' = 5,400 = Avenger
 
*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): another hit counter?
 
*0x70 (word): UFO side view preview opened
 
*0x72 (word) XCOM craft type
 
*0x74 (word) UFO craft type
 
*0x76 (dword): memory pointer to [[CRAFT.DAT]] entry of the attacking craft
 
*0x7A (dword): memory pointer to attacking [[Talk:GEOSCAPE.EXE#Craft_type_data | craft stats]]
 
*0x7E (dword): memory pointer to attacking craft left [[Talk:GEOSCAPE.EXE#Craft_weapon_stats| weapon stats]]
 
*0x82 (dword): memory pointer to attacking craft right [[Talk:GEOSCAPE.EXE#Craft_weapon_stats| weapon stats]]
 
*0x86 (dword): memory pointer to CRAFT.DAT entry of the attacked UFO
 
*0x8A (dword): memory pointer to UFO stats
 
 
 
It can be quite difficult to get saved INTER.DAT files while air combat is happening. The Options shortcut key from UFOExtender helps somewhat in getting to the Save menu. It seems to be easier to do if you have 4 aircraft engaged, vs just 1 or 2. Or maybe it's just easier if your aircraft are faster than the UFOs and can keep station with them effortlessly.
 
  
 +
--Active Window bytes--
 +
*'''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)''': change in position for projectiles due to Xcraft stance and/or UFO escape <s>speed delta (difference between speed of target ufo and xcom craft), "approach speed </s>"
 +
*'''0x22 ( word)''': current air speed
 +
*'''0x24-0x41 (word)''': 15 entries for the positions of launched projectiles from the left weapon
 +
*'''0x42-0x5F (word)''': 15 entries for the positions of launched projectiles from the right weapon
 +
*'''0x60 ( word)''': Left weapon type
 +
*'''0x62 ( word)''': Right weapon type
 +
*'''0x64 ( word)''': Left weapon reload timer
 +
*'''0x66 ( word)''': Right weapon reload timer
 +
*'''0x68 ( word)''': explosion/hit radius value (and timer to delay the interception window closing until this is zero).
 +
*'''0x6A ( word)''': timer to prevent a craft from firing or being fired upon. Set when the UFO is downed/destroyed.
 +
*'''0x6C ( word)''': UFO return fire intense level
 +
*'''0x6E ( word)''': timer to prevent a craft from firing or being fired upon. Set when an Xcraft is destroyed.
 +
*'''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 [[Talk:GEOSCAPE.EXE#Craft_type_data | craft stats]] offset
 +
*'''0x7E (dword)''': pointer to attacking craft left [[Talk:GEOSCAPE.EXE#Craft_weapon_stats| weapon stats]] offset
 +
*'''0x82 (dword)''': pointer to attacking craft right [[Talk:GEOSCAPE.EXE#Craft_weapon_stats| weapon stats]] offset
 +
*'''0x86 (dword)''': pointer to CRAFT.DAT offset of the attacked UFO
 +
*'''0x8A (dword)''': pointer to UFO stats offset
  
 
==See Also==
 
==See Also==

Latest revision as of 09:41, 29 December 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.

--Geoscape Window/Icon related 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 icon's picture
  • 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.

--Active Window bytes--

  • 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): change in position for projectiles due to Xcraft stance and/or UFO escape speed delta (difference between speed of target ufo and xcom craft), "approach speed "
  • 0x22 ( word): current air speed
  • 0x24-0x41 (word): 15 entries for the positions of launched projectiles from the left weapon
  • 0x42-0x5F (word): 15 entries for the positions of launched projectiles from the right weapon
  • 0x60 ( word): Left weapon type
  • 0x62 ( word): Right weapon type
  • 0x64 ( word): Left weapon reload timer
  • 0x66 ( word): Right weapon reload timer
  • 0x68 ( word): explosion/hit radius value (and timer to delay the interception window closing until this is zero).
  • 0x6A ( word): timer to prevent a craft from firing or being fired upon. Set when the UFO is downed/destroyed.
  • 0x6C ( word): UFO return fire intense level
  • 0x6E ( word): timer to prevent a craft from firing or being fired upon. Set when an Xcraft is destroyed.
  • 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

See Also