Difference between revisions of "Talk:INTER.DAT"

From UFOpaedia
Jump to navigation Jump to search
(Additional offsets)
m
Line 5: Line 5:
  
 
Record structure:
 
Record structure:
*0x00 (word): ??damage?? total guess
+
*0x00 (word): ??window present / record active??
*0x02 (word): eg '''02 00'''
+
*0x02 (word): ?aircraft type or icon?
*0x04/6/8 (words): 3-4-3 2-3-2 1-2-1 1-1-0 (hidden). Some kind of previous/next window list? Window depth/tiling?
+
*0x04 (word): ?aircraft number to use as label on minimised window?
*0x0a (word): eg '''08 00'''
+
*0x6/8 (words): 4-3 3-2 2-1 1-0. Some kind of previous/current/next window linked list?  
*0x0c (word): eg '''04 00'''
+
*0x0a (word): eg '''08 00''' window dimensions?
 +
*0x0c (word): eg '''04 00''' window dimensions?
 +
*0x0e (word): ?window open =1 minimised =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)
Line 18: Line 20:
 
*0x1E (word): requested distance to target (km x8)
 
*0x1E (word): requested distance to target (km x8)
 
*0x22 (word): air speed (current? max?) eg '''18 15''' = 5,400 = Avenger
 
*0x22 (word): air speed (current? max?) eg '''18 15''' = 5,400 = Avenger
 +
*0x24 (word): ?current damage sustained by this XCom craft?
 
*0x76 (dword): memory pointer to [[CRAFT.DAT]] entry of the attacking craft
 
*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 builtin stats]]
 
*0x7A (dword): memory pointer to attacking [[Talk:GEOSCAPE.EXE#Craft_type_data | craft builtin stats]]

Revision as of 01:47, 17 February 2010

Just for reference before I forget. Not sure enough yet for main article page.

File length 0x238 568 bytes 4 records per interception window x Record length 0x8E 142 bytes

Record structure:

  • 0x00 (word): ??window present / record active??
  • 0x02 (word): ?aircraft type or icon?
  • 0x04 (word): ?aircraft number to use as label on minimised window?
  • 0x6/8 (words): 4-3 3-2 2-1 1-0. Some kind of previous/current/next window linked list?
  • 0x0a (word): eg 08 00 window dimensions?
  • 0x0c (word): eg 04 00 window dimensions?
  • 0x0e (word): ?window open =1 minimised =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): firing mode
  • 0x1C (word): ?current distance to target? (km x8) eg 30 02 = 560 = 70km (stand off)
  • 0x1E (word): requested distance to target (km x8)
  • 0x22 (word): air speed (current? max?) eg 18 15 = 5,400 = Avenger
  • 0x24 (word): ?current damage sustained by this XCom craft?
  • 0x76 (dword): memory pointer to CRAFT.DAT entry of the attacking craft
  • 0x7A (dword): memory pointer to attacking craft builtin stats
  • 0x86 (dword): memory pointer to CRAFT.DAT entry of the attacked UFO
  • 0x8A (dword): memory pointer to attacked craft builtin stats

Logging Interception status window messages to file?

Dude, if there is any way you could enable your Extender to log the status messages out to a log file that would really help me in figuring out the air combat mechanics. It's very difficult/impossible to reliably read the status messages off the screen. And there are not that many other options to be able to count when a craft hits or misses another craft. But then you are probably way ahead of me on figuring out the mechanics since you are decompiling the logic directly! :)

cheers, Spike 06:52, 5 July 2009 (EDT)