Difference between revisions of "GEODATA.DAT"

From UFOpaedia
Jump to navigation Jump to search
m (→‎Structure: Validate Asumption)
(→‎Structure: Flags Array explained.)
Line 77: Line 77:
  
 
- [[User:Bomb Bloke|Bomb Bloke]] 19:21, 6 February 2008 (PST)</i>
 
- [[User:Bomb Bloke|Bomb Bloke]] 19:21, 6 February 2008 (PST)</i>
 +
 +
This is the RMP (or LZ depending on how you look at it) flag. It says if the craft or ground RMP file is used. --[[User:BladeFireLight|BladeFireLight]] 18:45, 14 March 2010 (EDT)
  
 
...
 
...

Revision as of 22:45, 14 March 2010

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 for Battlescape Map Generation 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: Amount of map modules to place vertically (Y dimension of the map / 10).

2-3/02-03: Amount of map modules to place horizontally (X 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):

 UFO                                 TFTD
 0: SkyRanger                        0: Triton
 1: Lightning                        1: Hammerhead
 2: Avenger                          2: Leviathan
 3: Interceptor *1                   3: Barracuda   *2
 4: Firestorm   *1                   4: Manta       *2
 5: Small Scout                      5: Survey Ship
 6: Medium Scout                     6: Escort
 7: Large Scout                      7: Cruiser
 8: Harvestor                        8: Heavy Cruiser
 9: Abductor                         9: Hunter
10: Terror Ship                     10: Battleship
11: Battleship                      11: Dreadnought
12: Supply Ship                     12: Fleet Supply Cruiser

*1 Requires maps "Interc" and "Fires". These don't exist normally, though XcomUtil adds versions similar to the SkyRanger and Lightning.

*2 Requires maps "Barracud" and "Manta". These don't exist normally, though XcomUtil adds versions similar to the Triton and Hammerhead

8-9/08-09: Alien craft type (ignore this if not a UFO mission). Uses the above values.

10-11/0A-0B: Terrain type. Typically depends on the mission type and location.

 UFO                                 TFTD
 0: Jungle                           0: Seabed
 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 Stage 1 & 2 (Check MISDATA.DAT[20-21] for which)
                                    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 Stage 1
                                    20: Passenger Ship Stage 2
                                    21: Colony Stage 1

12-XX/0C-XX: The next [0-1]*[2-3] bytes list the map modules used to build the battlescape. Reads in order from west to east, north to south. For example, in the case of the largest map (50x50), this list would be 25 bytes.

Values of 253/254/255 mean that the a module does not need to be placed in that area because a large 2x2 module (eg. An X-Com hangar) has already covered it.

I've often observed the Tactical engine partly generating it's own maps, so there must be a way to have some - or all - of these values ignored.

- Bomb Bloke 19:21, 6 February 2008 (PST)

...

37-83/25-53: These values are currently unknown, but they all seem to flag as either 0 or 1.

I thought one of them might determine if victim UFOs had been shot down or not, but I can't seem to see any consistant values that would indicate that.

Some might have something to do with the units present - Although this wouldn't account for all values, I can't think of anything else at the moment.

- Bomb Bloke 19:21, 6 February 2008 (PST)

This is the RMP (or LZ depending on how you look at it) flag. It says if the craft or ground RMP file is used. --BladeFireLight 18:45, 14 March 2010 (EDT)

...

84/54: Amount of craft to be placed on the map.

0: None.
1: X-Com craft only.
2: X-Com and alien craft.

85/55: Mirror of [6-7] (X-Com craft type).

86/56: Y location of X-Com craft on map. Usually a multiple of 10.

87/57: X location of X-Com craft on map. Usually a multiple of 10.

88/58: Mirror of [8-9] (alien craft type).

89/59: Y location of alien craft on map. Usually a multiple of 10.

90/5A: X location of alien craft on map. Usually a multiple of 10.

91/5B: Unknown, never seen it flag.

See Also