Difference between revisions of "GEODATA.DAT"

From UFOpaedia
Jump to navigation Jump to search
(TFTD Terrain Types)
m (Formatting)
Line 1: Line 1:
Geodata info:
+
Created in the MissDat folder when you start a battlescape mission, also copied to the savegame folder of choice when saving mid-mission. Primarily used to generate a new map at the beginning of combat, and to determine which [[TERRAIN|MCD files]] to load.
  
[0] - x dimension of the map / 10
+
File is 92 bytes long for both UFO and TFTD. Values are presented according to byte offset (0 to 91) followed by the equivalent hex offset (00 to 5B) in <b>bold</b>.
  
[2] - y dimension of the map / 10
+
= Structure =
  
[4] - z dimension of the map
+
<b>0-1/00-01:</b> X dimension of the map / 10.
  
[6] - X-com craft type (ignore this if a base mission)
+
<b>2-3/02-03:</b> Y dimension of the map / 10.
 +
 
 +
<b>4-5/04-05:</b> Z dimension of the map.
 +
 
 +
<b>6-7/06-07:</b> X-Com craft type (ignore this if a base mission):
 
  0 - SkyRanger
 
  0 - SkyRanger
 
  1 - Lightning
 
  1 - Lightning
 
  2 - Avenger
 
  2 - Avenger
 
  3 - Interceptor
 
  3 - Interceptor
  4 - Firestorm
+
  4 - Firestorm <i>???</i>
  
[8] - Alien craft type (ignore this if not a ufo mission)
+
<b>8-9/08-09:</b> Alien craft type (ignore this if not a UFO mission):
 
   0 - (No UFO)
 
   0 - (No UFO)
 +
  1 - ???
 +
  2 - ???
 +
  3 - ???
 +
  4 - ???
 
   5 - Small Scout
 
   5 - Small Scout
 
   6 - Medium Scout
 
   6 - Medium Scout
Line 25: Line 33:
 
  12 - Supply Ship
 
  12 - Supply Ship
  
[10] - Terrain type
+
<b>10-11/0A-0B:</b> Terrain type:
  
 
  <b>UFO</b>                                    <b>TFTD</b>
 
  <b>UFO</b>                                    <b>TFTD</b>
Line 55: Line 63:
 
                                         21: Colony Stage 1
 
                                         21: Colony Stage 1
  
(No other values decoded at this time, but probably contains dropship/UFO position(s) on map).
+
(No other values decoded at this time, but known to control dropship/UFO position(s) on map).
  
 
==See Also==
 
==See Also==
* [[Saved_Game_Files#Battlescape_Files|Battlescape Files]]
 
 
* [[Saved_Game_Files#Missdat_Files|Missdat Files]]
 
* [[Saved_Game_Files#Missdat_Files|Missdat Files]]
 
[[Category:Game Files]]
 
[[Category:Game Files]]

Revision as of 11:06, 31 January 2008

Created in the MissDat folder when you start a battlescape mission, also copied to the savegame folder of choice when saving mid-mission. Primarily used to generate a new map at the beginning of combat, and to determine which MCD files to load.

File is 92 bytes long for both UFO and TFTD. Values are presented according to byte offset (0 to 91) followed by the equivalent hex offset (00 to 5B) in bold.

Structure

0-1/00-01: X dimension of the map / 10.

2-3/02-03: Y dimension of the map / 10.

4-5/04-05: Z dimension of the map.

6-7/06-07: X-Com craft type (ignore this if a base mission):

0 - SkyRanger
1 - Lightning
2 - Avenger
3 - Interceptor
4 - Firestorm ???

8-9/08-09: Alien craft type (ignore this if not a UFO mission):

 0 - (No UFO)
 1 - ???
 2 - ???
 3 - ???
 4 - ???
 5 - Small Scout
 6 - Medium Scout
 7 - Large Scout
 8 - Harvestor
 9 - Abductor
10 - Terror Ship
11 - Battleship
12 - Supply Ship

10-11/0A-0B: Terrain type:

UFO                                     TFTD
0: Jungle                               0: Seabed Trash
1: Farm                                 1: Pipes
2: Forest                               2: Crashed Plane
3: X-Com Base                           3: Atlantis
4: Alien Base                           4: Mu
5: Urban                                5: Sunken Galleon
6: Desert                               6: Sunken Liner
7: Mountains                            7: Volcanic
8: Polar                                8: Coral
9: Mars                                 9: Artefact Site Stage 1
                                       10: Artefact Site Stage 2
                                       11: Cargo Ship
                                       12: Port Attack
                                       13: Island Attack
                                       14: Colony Stage 2
                                       15: T'leth Stage 1
                                       16: T'leth Stage 2
                                       17: T'leth Stage 3
                                       18: X-Com Base
                                       19: Passenger Ship
                                       20: ??? 
                                           Crashes, perhaps second stage of ships?
                                           Probably easy enough to verify, only I'm too lazy to
                                           run a shipping mission without hacking... :P
                                           - Bomb Bloke 00:46, 30 January 2008 (PST)
                                       21: Colony Stage 1

(No other values decoded at this time, but known to control dropship/UFO position(s) on map).

See Also