MISSION2.DAT

From UFOpaedia
Revision as of 16:18, 17 February 2007 by Pi Masta (talk | contribs) (forgot signature)
Jump to navigation Jump to search

This file is created when combat ends. It uses the same format as MISSION.DAT and MISDATA.DAT. Although is read by the geoscape engine, it's currently unknown as to whether this file differs from the original MISSION.DAT file. Speculation suggests that it does not differ (see offset 20).

By hacking values and seeing the corresponding results screen, (via ufoexe\geoscape "1" from DOS) I've determined a number of offsets used for 'debriefing' statistics when you go back to the geoscape. These appear to all be 2-byte integers. Pi Masta 08:18, 17 February 2007 (PST)

The first 20 bytes are still 2 Byte integers, though they are unsigned. Their is no 'score' entry, they are calculated on the quantity specified. This score however can wrap around to be negative. Also if you simply add 100 to these next 10 offsets, you get the offset for the base storage (which is updated by these values, including those that aren't used)

00: UFO Power Source
02: UFO Navigation
04: UFO Construction (NOT USED, though will put in your base)
06: Alien Food
08: Alien Reproduction (NOT USED, though will put in your base)
10: Alien Entertainment
12: Alien Surgery
14: Examination Room
16: Alien alloys (divide by 5 rounding down to get ingame result)
18: Alien Habitat (NOT USED, though will put in your base)
20: Description - This corresponds to MISDATA.DAT's offset 20

It seems to index to somewhere in ENGLISH.DAT, hacking above 5 starts mapping it to 260 + this value in ENGLISH.DAT. Seems win/lose is stored elsewhere, that is if you loose a landing site, and hack this to base defense you lose the base (well kinda), if you hack this to Cydonia, you lose the game.

22: Aliens Killed
24: Aliens Killed Score
26: Alien Corpses
28: Corpse Score
30: Live Alien
32: Live Alien Score
34: artifacts
36: artifacts Score
38: Alien Base Control Destroyed
40: Base Control Score
42: Civs Killed by Aliens
44: Civs Killed Alien Score
46: Civs Killed by Xcom
48: Civs Killed Xcom Score
50: Civs Saved
52: Civs Saved score
54: XCOM Lost
56: XCOM Lost Score
58: XCOM Retired through Injury     - Never seen/heard of this Pi Masta
60: XCOM Retired Score
62: Xcom MIA
64: XCom MIA Score
66: Tanks Lost
68: Tanks Lost Score
70: XCOM Craft Lost
72: XCOM Craft Lost score

See Also