Struktura pliku RESEARCH.DAT

Na tej stronie zgromadzono dane na temat sposobu przechowywania informacji w pliku RESEARCH.DAT gier UFO-1 i UFO-2. Plik ten gromadzi informację o rzeczach, które mogą zostać zbadane przez naukowców.

Uwaga: zaprezentowane tu informacje oparte są o różne źródła, w tym o witrynę ufopaedia.org. Zgromadzone tam dane są jednak niekiedy nieprawdziwe i znalezione błędy zostały tu poprawione.

Wielkość tego pliku wynosi:

W grze UFO-1 (UFO) plik zawiera 96 pól (po 16 bajtów w wersji amigowej lub po 22 bajty w wersji pecetowej), w grze UFO-2 (TFTD) pól jest 94 (po 22 bajty).

Listy badań w obu grach przedstawia poniższa tabela:

pole UFO TFTD
0 Laser Weapons Gauss Technology
1 Motion Scanner Particle Disturbance Sensor
2 Medi-kit Medi-kit
3 Psi Amp M.C. Disruptor
4 Heavy Plasma Sonic Cannon
5 Heavy Plasma Clip Cannon Power Clip
6 Plasma Rifle Sonic-Blasta Rifle
7 Plasma Rifle Clip Blasta Power Clip
8 Plasma Pistol Sonic Pistol
9 Plasma Pistol Clip Pistol Power Clip
10 Blaster Launcher Disruptor Pulse Launcher
11 Blaster Bomb Disruptor Ammo
12 Small Launcher Thermal Shok Launcher
13 Stun Bomb Thermal Shok Bomb
14 Alien Grenade Sonic Pulser
15 Elerium-115 Zrbite
16 Mind Probe M.C. Reader
17 UFO Power Source Ion-Beam Accelerators
18 UFO Navigation Magnetic Navigation
19 UFO Construction Alien Sub Construction
20 Alien Food Alien Cryogenics
21 Alien Reproduction Alien Cloning
22 Alien Entertainment Alien Learning Arrays
23 Alien Surgery Alien Implanter
24 Examination Room Examination Room
25 Alien Alloys Aqua Plastics
26 New Fighter Craft New Fighter Flying Sub
27 New Fighter Transporter New Fighter Transporter
28 Ultimate Craft The Latest Flying Sub
29 Laser Pistol Gauss Pistol
30 Laser Rifle Gauss Rifle
31 Heavy Laser Heavy Gauss Cannon
32 Laser Cannon Gauss Cannon
33 Plasma Cannon (Plasma Beam) Sonic Oscillator
34 Fusion Missile P.W.T. Cannon
35 Laser Defences Gauss Defences
36 Plasma Defences Sonic Defences
37 Fusion (Ball) Defences P.W.T. Defences
38 Grav Shield Bombardment Shield
39 Mind Shield M.C. Generator
40 Psi Lab M.C.-Lab
41 Hyper-wave Decoder Transmission Resolver
*42 Tank/Laser Cannon Coelacanth/Gauss
*43 Hovertank/Plasma Displacer/Sonic
*44 Hovertank/Launcher Displacer/P.W.T.
45 Sectoid Corpse Aquatoid Corpse
46 Snakeman Corpse Gill Man Corpse
47 Ethereal Corpse Lobster Man Corpse
48 Muton Corpse Tasoth Corpse
49 Floater Corpse Calcinite Corpse
50 Celatid Corpse Deep One Corpse
51 Silacoid Corpse Bio-Drone Corpse
52 Chryssalid Corpse Tentaculat Corpse
53 Reaper Corpse Triscene Corpse
54 Sectopod Corpse Hallucinoid Corpse
55 Cyberdisc Corpse Xarquid Corpse
56 Alien Origins Alien Origins
57 The Martian Solution The Ultimate Threat
58 Cydonia or Bust T’leth the Alien’s City
59 Personal Armour Plastic Aqua-Armour
60 Power Suit Ion Armour
61 Flying Suit Magnetic Ion Armour
62 Sectoid Commander Gauss Pistol Clip
63 Sectoid Leader Gauss Rifle Clip
64 Sectoid Engineer Heavy Gauss Clip
65 Sectoid Medic NOT USED
66 Sectoid Navigator Vibro Blade
67 Sectoid Soldier Thermic Lance
68 Snakeman Commander Heavy Thermic Lance
69 Snakeman Leader Aquatoid Commander
70 Snakeman Engineer Aquatoid Navigator
71 *Snakeman Medic Aquatoid Medic
72 Snakeman Navigator Aquatoid Technician
73 Snakeman Soldier Aquatoid Squad Leader
74 Ethereal Commander Aquatoid Soldier
75 Ethereal Leader Gill Man Commander
76 *Ethereal Engineer Gill Man Technician
77 *Ethereal Medic Gill Man Squad Leader
78 *Ethereal Navigator Gill Man Soldier
79 Ethereal Soldier Lobster Man Commander
80 *Muton Commander Lobster Man Navigator
81 *Muton Leader Lobster Man Technician
82 Muton Engineer Lobster Man Squad Leader
83 *Muton Medic Lobster Man Soldier
84 Muton Navigator Tasoth Squad Leader
85 Muton Soldier Tasoth Soldier
86 Floater Commander Calcinite Terrorist
87 Floater Leader Deep One Terrorist
88 Floater Engineer Bio-Drone Terrorist
89 Floater Medic Tentaculat Terrorist
90 Floater Navigator Triscene Terrorist
91 Floater Soldier Hallucinoid Terrorist
92 Celatid Terrorist Xarquid Terrorist
93 Silacoid Terrorist NOT USED
94 Chryssalid Terrorist
95 Reaper Terrorist

Znaczenie bajtów 0 i 1 jest niejasne. Wydają się one przechowywać czas potrzebny do ukończenia badania wyrażony w roboczodniach (w wersji PC – big endian, w wersjach na Amigę – little endian), a jednak ten czas jest w jakiś sposób modyfikowany przez grę w sposób losowy. W rzeczywistości więc w każdej rozgrywce rzeczywisty czas badania poszczególnych przedmiotów jest inny.

Bajt 2 zwykle zawiera 00h, z wyjątkiem następujących wypadków:

nr wartość UFO TFTD
4 31h Heavy Plasma Sonic Cannon
5 32h Heavy Plasma Clip Cannon Power Clip
6 33h Plasma Rifle Sonic-Blasta Rifle
7 34h Plasma Rifle Clip Blasta Power Clip
8 35h Plasma Pistol Sonic Pistol
9 36h Plasma Pistol Clip Pistol Power Clip
10 37h Blaster Launcher Disruptor Pulse Launcher
11 38h Blaster Bomb Disruptor Ammo
12 39h Small Launcher Thermal Shok Launcher
13 3Ah Stun Bomb Thermal Shok Bomb
14 3Bh Alien Grenade Sonic Pulser
15 3Ch Elerium-115 Zrbite
16 3Dh Mind Probe M.C. Reader
17 50h UFO Power Source Ion-Beam Accelerators
*18 51h UFO Navigation Magnetic Navigation*
*19 52h   Alien Sub Construction*
20 53h Alien Food Alien Cryogenics
21 54h Alien Reproduction Alien Cloning
22 55h Alien Entertainment Alien Learning Arrays
23 56h Alien Surgery Alien Implanter
24 57h Examination Room Examination Room
*25 58h Alien Alloys Aqua Plastics*
45 41h Sectoid Corpse Aquatoid Corpse
46 42h Snakeman Corpse Gill Man Corpse
47 43h Ethereal Corpse Lobster Man Corpse
48 44h Muton Corpse Tasoth Corpse
49 45h Floater Corpse Calcinite Corpse
50 46h Celatid Corpse Deep One Corpse
51 47h Silacoid Corpse Bio-Drone Corpse
52 48h Chryssalid Corpse Tentaculat Corpse
53 49h Reaper Corpse Triscene Corpse
54 4Ah Sectopod Corpse Hallucinoid Corpse
55 4Bh Cyberdisc Corpse Xarquid Corpse

Różnice między wersjami:

pole UFO   TFTD 1 2
18 UFO Navigation 51h Magnetic Navigation 00h 51h
19 UFO Construction 00h Alien Sub Construction 52h 52h
25 Alien Alloys 58h Aqua Plastics 46h 00h

Jeżeli bajt 2 przybiera wartość niezerową, do rozpoczęcia badań konieczna jest obecność odpowiedniego obiektu. Obecność Magnetic Navigation jest w TFTD 1.0 konieczna do rozpoczęcia badań, choć bajt 2 ma wartość 0.

Bajt 3 ma zwykle wartość 00h, odmienne wartości określają rasy obcych:

wartość UFO TFTD
rasa bajty rasa bajty
01h Sectoid 62–67 Aquatoid 69–74
02h Snakeman 68–73 Gill Man 75–78
03h Ethereal 74–79 Lobster Man 79–83
04h Muton 80–85 Tasoth 84–85
05h Floater 86–91 Calcinite 86
06h Celatid 92 Deep One 87
07h Silacoid 93 Bio-Drone 88
08h Chryssalid 94 Tentaculat 89
09h Reaper 95 Triscene 90
0Ah - Hallucinoid 91
0Bh - Xarquid 92

Bajt 4 oznacza rangę obcych:

wartość UFO TFTD
rasa bajty rasa bajty
01h Commander 62, 68, 74, 80, 86 Commander 69, 75, 79
02h Leader 63, 69, 75, 81, 87 Navigator 70, 80
03h Engineer 64, 70, 76, 82, 88 Medic 71
04h Medic 65, 71, 77, 83, 89 Technician 72, 76, 81
05h Navigator 66, 72, 78, 84, 90 Squad Leader 73, 77, 82, 84
06h Soldier 67, 73, 79, 85, 91 Soldier 74, 78, 83, 85
07h Terrorist 92–95 Terrorist 86–92

Ponadto tylko w następujących polach przybiera wartość niezerową:

nr wartość UFO TFTD
1 18h Motion Scanner Particle Disturbance Sensor
2 19h Medi-kit Medi-kit
3 1Dh Psi Amp M.C. Disruptor
19 14h UFO Construction Alien Sub Construction
26 01h New Fighter Craft New Fighter Flying Sub
27 02h New Fighter Transporter New Fighter Transporter
28 03h Ultimate Craft The Latest Flying Sub
29 04h Laser Pistol Gauss Pistol
30 05h Laser Rifle Gauss Rifle
31 06h Heavy Laser Heavy Gauss Cannon
32 07h Laser Cannon Gauss Cannon
33 08h Plasma Cannon (Plasma Beam) Sonic Oscillator
34 09h Fusion Missile P.W.T. Cannon
35 0Ah Laser Defences Gauss Defences
36 0Bh Plasma Defences Sonic Defences
37 0Ch Fusion (Ball) Defences P.W.T. Defences
38 0Dh Grav Shield Bombardment Shield
39 0Eh Mind Shield M.C. Generator
40 0Fh Psi Lab M.C.-Lab
41 10h Hyper-wave Decoder Transmission Resolver
*42 11h Tank/Laser Cannon Coelacanth/Gauss
*43 12h Hovertank/Plasma Displacer/Sonic
*44 13h Hovertank/Launcher Displacer/P.W.T.
56 15h Alien Origins Alien Origins
57 16h The Martian Solution The Ultimate Threat
58 17h Cydonia or Bust T’leth the Alien’s City
59 1Ah Personal Armour Plastic Aqua-Armour
60 1Bh Power Suit Ion Armour
61 1Ch Flying Suit Magnetic Ion Armour
62 1Eh Gauss Pistol Clip
63 1Fh Gauss Rifle Clip
64 20h Heavy Gauss Clip
65 11h NOT USED
66 21h Vibro Blade
67 22h Thermic Lance
68 23h Heavy Thermic Lance

Bajt 5 jest niemal zawsze równy 00h. Tylko w TFTD (obie wersje) przybiera wartość 05h w polu 66 (Vibro Blade). Znaczenie tej informacji jest nieznane.

Bajt 6 wskazuje na rozdział ufopedii:

  UFO / TFTD UFO / TFTD UFO TFTD
00h XCom Craft and Armament 26–28, 32–34    
01h Tanks 42–44    
02h XCom Weapons & General Equipment 1–3, 29–31, 59–61   62–65
03h Alien Artifacts 4–16   66–68
04h XCom Base Facilities 35–41    
05h Alien Life Forms: Corpses 45–55    
06h Alien Life Forms & Research 56–58 62–95 69–92
07h UFO / USO Components 17–25    
0Bh Not in Ufopaedia 0   93

Bajt 7 wskazuje na numer karty ufopedii w obrębie danego rozdziału (zob. UP.DAT). Jeśli danego tematu nie ma w ufopedii (dotyczy wyłącznie tematu Laser Weapons / Gauss Technology, a takze nieużywanego ostatniego pola w TFTD), wówczas przyjmuje wartość zero.

Bajt 8 określa ilość punktów uzyskanych za ukończenie badania.

Znaczenie następnych bajtów różni się w zależności od platformy. W wersji PC bajty 9, 11, 12, 13, 15, 16, 17, 19, 20, 21 są zawsze równe 00h. W wersjach amigowych dotyczy to bajtów 10, 11, 12, 15.

Bajt 10 w wersji PC, bajt 9 w wersjach amigowych, początkowo równy jest 0. Zawartość tego bajtu zmienia się: jeśli zakończono badanie i nie może ono być powtórzone, bajt przechowuje wartość TRUE (PC – 01h, Amiga – 80h). Ręczne ustawienie tej wartości nie daje korzyści związanych z zakończeniem badania.

Bajt 14 w wersji PC, bajt 13 w wersjach amigowych, zawiera wartość 01h, jeśli badanie nie wymaga uprzedniego zakończenia innych badań czyli tzw. prerekwizytów. Wartość 00h oznacza, że takie prerekwizyty są potrzebne i badanie nie jest jeszcze możliwe. Na początku gry wartość 00h zawierają następujące pola:

pole UFO TFTD
3 Psi Amp M.C. Disruptor
10   Disruptor Pulse Launcher
11   Disruptor Ammo
16   M.C. Reader
18   Magnetic Navigation (TFTD 1)
19 UFO Construction Alien Sub Construction
25   Aqua Plastics
26 New Fighter Craft New Fighter Flying Sub
27 New Fighter Transporter New Fighter Transporter
28 Ultimate Craft The Latest Flying Sub
29 Laser Pistol Gauss Pistol
30 Laser Rifle Gauss Rifle
31 Heavy Laser Heavy Gauss Cannon
32 Laser Cannon Gauss Cannon
33 Plasma Cannon Sonic Oscillator
34 Fusion Missile P.W.T. Cannon
35 Laser Defences Gauss Defences
36 Plasma Defences Sonic Defences
37 Fusion Defences P.W.T. Defences
38 Grav Shield Bombardment Shield
39 Mind Shield M.C. Generator
40 Psi Lab M.C.-Lab
41 Hyper-wave Decoder Transmission Resolver
*42 Tank/Laser Cannon Coelacanth/Gauss
*43 Hovertank/Plasma Displacer/Sonic
*44 Hovertank/Launcher Displacer/P.W.T.
56 Alien Origins Alien Origins
57 The Martian Solution The Ultimate Threat
58 Cydonia or Bust T’leth the Alien’s City
59 Personal Armour Plastic Aqua-Armour
60 Power Suit Ion Armour
61 Flying Suit Magnetic Ion Armour
62   Gauss Pistol Clip
63   Gauss Rifle Clip
64   Heavy Gauss Clip
65   NOT USED
66   Vibro Blade
67   Thermic Lance
68   Heavy Thermic Lance
93   NOT USED

Puste pole oznacza, że prerekwizyty nie są potrzebne. W TFTD 2 Magnetic Navigation nie wymaga prerekwizytów: odpowiedni bajt zawiera wartość 01h.

Bajt 18 w wersji PC, bajt 14 w wersjach amigowych, jest na początku gry w pełni skorelowany z bajtem poprzednio omówionym (PC – 14, Amiga – 13). Jeśli bajt 14 (13) zawiera 00h, to także bajt 18 (14) zawiera 00h. Jeżeli bajt 14 (13) zawiera 01h, wówczas bajt 18 (14) zawiera TRUE (PC – 01h, Amiga – 80h). Gdy w trakcie gry zostają zakończone badania nad prerekwizytami, omawiany bajt jest zmieniany do wartości TRUE. Ręczne wprowadzenie tej wartości umożliwia rozpoczęcie badań, których dotąd brak było na liście z powodu niezakończenia wymaganych badań poprzedzających.