Difference between revisions of "TERRAIN"

From UFOpaedia
Jump to navigation Jump to search
m (categorizing)
 
(59 intermediate revisions by 12 users not shown)
Line 1: Line 1:
This folder contains the information used for tiles in the battlescape view, both statistical and graphical.<br>
+
{{tocright}}This folder contains the information used for tiles in ''EU's'' battlescape view, both statistical and graphical.
<br>
 
Each of the three files used for each tileset contains a variable amount of records. PCK files and their respective TAB files should always contain an equal amount of records.<br>
 
==MCD==
 
Files made up of a variable amount of records, each of 62 bytes.
 
  
Things to search for:
+
These are divided up into "sets" made of three files: An [[MCD]] file, which defines the tiles for that set, and a [[Image_Formats#PCK|PCK file accompanied by a TAB file]], which together define the image data that represents said tiles on-screen (note that PCK files always have the same amount of records as their respective TAB files, though MCD files may have a different figure (as some tiles animate and hence use multiple sprites, and some tiles use the same sprites as others but at a different height offset)).
- Stun caused by explosion.
 
  
''- Stun caused by explosion comes from mcd[54], when the setting for explosive type is Smoke. - [[User:Hobbes|Hobbes]]''
+
Each "set" stored here will be part of an even larger "terrain set", which will have corresponding files in both the [[MAPS]] folder and the [[ROUTES]] folder.
  
'''0-7:''' Animation of the tile.
+
The maximum amount of MCD records allowed in any given fully-built map is 256. This is also the highest count used in game, achieved by sending a [[Skyranger]] or [[Interceptor]] to deal with a [[Harvester]] or [[Supply Ship]] in [[Forest Terrain]].
  
The eight bytes refer to images on the PCK files which are used in a sequence (from the first byte to the last) to animate tiles. This animation is used by several tiles on both games, such as doors, bubbles on TFTD, blinking lifts, etc.
+
The maximum amount of PCK records allowed is as yet unknown. The highest count used in game is 329, achieved by sending a [[Skyranger]] or [[Interceptor]] to deal with a [[Terror Ship]] or [[Battleship]] in [[Arctic Terrain]].
  
'''8-19:''' Loft of the tile. 12 values, each references into [[LOFTEMPS.DAT]] file.
 
  
Each record is a 16x16 grid, which are stacked one over the other, with byte 8 being the bottom. Used to create a 3D map of the tile, for LOS.
+
==Contents==
  
'''20-21:''' Reference into [[SCANG.DAT]] file. [20] + [21] * 256 + 35 = offset. Used for top-down map.
+
The size of an [[MCD| MCD]] file is equal to the amount of records it holds times 62 bytes.
  
'''22-29:'''
+
The size of a TAB file is equal to the amount of images it indexes times 2 bytes.
  
'''30:''' Boolean: Is sliding door?
+
PCK files contain RLE-compressed image data and are of unpredictable sizes.
  
'''31:''' Boolean: Can't be seen through?
+
<br clear="all">
 +
===Ships===
 +
====X-COM Craft====
 +
{| class="wikitable"
 +
! width="100" | Set Number
 +
! width="100" | Set Name
 +
! width="100" | MCD Records
 +
! width="100" | Image Count
 +
! width="100" | MCD Filesize
 +
! width="100" | PCK Filesize
 +
! width="100" | TAB Filesize
 +
! width="100" | Overview
 +
|- align="center"
 +
| 0
 +
| PLANE || 65 || 63 || 4,030b || 21,467b || 126b || [[Skyranger]]
 +
|- align="center"
 +
| 1
 +
| LIGHTNIN || 42 || 51 || 2,604b || 22,701b || 102b || [[Lightning]]
 +
|- align="center"
 +
| 2
 +
| AVENGER || 59 || 62 || 3,658b || 27,196b || 124b || [[Avenger]]
 +
|- align="center"
 +
| 3
 +
| INTERC || 65 || 63 || 4,030b || 21,467b || 126b || [[Interceptor]]
 +
|- align="center"
 +
| 4
 +
| FIRES || 42 || 51 || 2,604b || 22,701b || 102b || [[Firestorm]]
 +
|}
 +
''Note: The Interceptor and Firestorm are available only via [[XcomUtil]], and use the same tiles/images as the Skyranger and Lightning respectively.''
  
'''32:''' Boolean: Can't be stood on?
 
  
'''33:''' Boolean: Is impassable? (Used for objects)
+
====5: [[Small Scout]]====
 +
{| class="wikitable"
 +
! width="100" | Set
 +
! width="100" | MCD Records
 +
! width="100" | Image Count
 +
! width="100" | MCD Filesize
 +
! width="100" | PCK Filesize
 +
! width="100" | TAB Filesize
 +
! Overview
 +
|- align="center"
 +
| UFO1
 +
| 20 || 27 || 1,240b || 10,085b || 54b || Primary Small Scout data.
 +
|}
  
'''34:''' Boolean: Is a Grav lift?
 
  
'''35:''' Boolean: Is a hinged door?
+
====6: [[Medium Scout]]====
 +
{| class="wikitable"
 +
! width="100" | Set
 +
! width="100" | MCD Records
 +
! width="100" | Image Count
 +
! width="100" | MCD Filesize
 +
! width="100" | PCK Filesize
 +
! width="100" | TAB Filesize
 +
! Overview
 +
|- align="center"
 +
| U_EXT02
 +
| 34 || 40 || 2,108b || 17,841b || 80b || UFO flooring, ceilings, and exterior walls.
 +
|- align="center"
 +
| U_WALL02
 +
| 47 || 66 || 2,914b || 28,517b || 132b || Internal UFO components.
 +
|- align="center"
 +
| U_BITS
 +
| 8 || 8 || 496b || 2,386b || 16b || Additional flooring and struts.
 +
|- align="center"
 +
! Totals !! 89 !! 114 !! 5,518b !! 48,744b !! 228b !!
 +
|}
  
'''36:''' Boolean: Blocks fire?
 
  
'''37:''' Boolean: Blocks smoke?
+
====7: [[Large Scout]]====
 +
{| class="wikitable"
 +
! width="100" | Set
 +
! width="100" | MCD Records
 +
! width="100" | Image Count
 +
! width="100" | MCD Filesize
 +
! width="100" | PCK Filesize
 +
! width="100" | TAB Filesize
 +
! Overview
 +
|- align="center"
 +
| U_EXT02
 +
| 34 || 40 || 2,108b || 17,841b || 80b || UFO flooring, ceilings, and exterior walls.
 +
|- align="center"
 +
| U_WALL02
 +
| 47 || 66 || 2,914b || 28,517b || 132b || Internal UFO components.
 +
|- align="center"
 +
| U_BITS
 +
| 8 || 8 || 496b || 2,386b || 16b || Additional flooring and struts.
 +
|- align="center"
 +
! Totals !! 89 !! 114 !! 5,518b !! 48,744b !! 228b !!
 +
|}
  
'''38:''' Always 3.
 
  
'''39:''' Time units used to walk across the tile. (255 means unpassable)
+
====8: [[Harvester]]====
 +
{| class="wikitable"
 +
! width="100" | Set
 +
! width="100" | MCD Records
 +
! width="100" | Image Count
 +
! width="100" | MCD Filesize
 +
! width="100" | PCK Filesize
 +
! width="100" | TAB Filesize
 +
! Overview
 +
|- align="center"
 +
| U_EXT02
 +
| 34 || 40 || 2,108b || 17,841b || 80b || UFO flooring, ceilings, and exterior walls.
 +
|- align="center"
 +
| U_WALL02
 +
| 47 || 66 || 2,914b || 28,517b || 132b || Internal UFO components.
 +
|- align="center"
 +
| U_DISEC2
 +
| 17 || 22 || 1,054b || 10,426b || 44b || Alien food and surgical units.
 +
|- align="center"
 +
| U_BITS
 +
| 8 || 8 || 496b || 2,386b || 16b || Additional flooring and struts.
 +
|- align="center"
 +
! Totals !! 106 !! 136 !! 6,572b !! 59,170b !! 272b !!
 +
|}
  
'''40:''' Time units used to fly across the tile. (255 means unpassable)
 
  
'''41:''' Time units used to slide across the tile. (255 means unpassable) (Used for some aliens. Tanks?)
+
====9: [[Abductor]]====
 +
{| class="wikitable"
 +
! width="100" | Set
 +
! width="100" | MCD Records
 +
! width="100" | Image Count
 +
! width="100" | MCD Filesize
 +
! width="100" | PCK Filesize
 +
! width="100" | TAB Filesize
 +
! Overview
 +
|- align="center"
 +
| U_EXT02
 +
| 34 || 40 || 2,108b || 17,841b || 80b || UFO flooring, ceilings, and exterior walls.
 +
|- align="center"
 +
| U_WALL02
 +
| 47 || 66 || 2,914b || 28,517b || 132b || Internal UFO components.
 +
|- align="center"
 +
| U_OPER2
 +
| 15 || 15 || 930b || 6,801b || 30b || Examination room units.
 +
|- align="center"
 +
| U_BITS
 +
| 8 || 8 || 496b || 2,386b || 16b || Additional flooring and struts.
 +
|- align="center"
 +
! Totals !! 104 !! 129 !! 6,448b !! 55,545b !! 258b !!
 +
|}
  
'''42:''' Armor of tile. Tile must take this amount of damage to be destroyed (in a single
 
blast). Tile will then change to mcd[44]. (255 Indestructable!)
 
''Note:'' I suppose you could make a gate out of this, by creating two tiles, each
 
easily destroyed, which change to the other when hit. One could be walked
 
across, the other could not.
 
  
''- Yes, but you'd have to destroy the gate to open/close it [[User:Hobbes|Hobbes]]''
+
====10: [[Terror Ship]]====
 +
{| class="wikitable"
 +
! width="100" | Set
 +
! width="100" | MCD Records
 +
! width="100" | Image Count
 +
! width="100" | MCD Filesize
 +
! width="100" | PCK Filesize
 +
! width="100" | TAB Filesize
 +
! Overview
 +
|- align="center"
 +
| U_EXT02
 +
| 34 || 40 || 2,108b || 17,841b || 80b || UFO flooring, ceilings, and exterior walls.
 +
|- align="center"
 +
| U_WALL02
 +
| 47 || 66 || 2,914b || 28,517b || 132b || Internal UFO components.
 +
|- align="center"
 +
| U_PODS
 +
| 11 || 27 || 682b || 15,178b || 54b || Alien entertainment and other glowing things.
 +
|- align="center"
 +
| U_BITS
 +
| 8 || 8 || 496b || 2,386b || 16b || Additional flooring and struts.
 +
|- align="center"
 +
! Totals !! 100 !! 141 !! 6,200b !! 63,922b !! 282b !!
 +
|}
  
'''43:''' HE Blockage.
 
  
'''44:''' Tile becomes a tile of this type (i.e., this other MCD record in the same MCD file) when destroyed.
+
====11: [[Battleship]]====
 +
{| class="wikitable"
 +
! width="100" | Set
 +
! width="100" | MCD Records
 +
! width="100" | Image Count
 +
! width="100" | MCD Filesize
 +
! width="100" | PCK Filesize
 +
! width="100" | TAB Filesize
 +
! Overview
 +
|- align="center"
 +
| U_EXT02
 +
| 34 || 40 || 2,108b || 17,841b || 80b || UFO flooring, ceilings, and exterior walls.
 +
|- align="center"
 +
| U_WALL02
 +
| 47 || 66 || 2,914b || 28,517b || 132b || Internal UFO components.
 +
|- align="center"
 +
| U_PODS
 +
| 11 || 27 || 682b || 15,178b || 54b || Alien entertainment and other glowing things.
 +
|- align="center"
 +
| U_BITS
 +
| 8 || 8 || 496b || 2,386b || 16b || Additional flooring and struts.
 +
|- align="center"
 +
! Totals !! 100 !! 141 !! 6,200b !! 63,922b !! 282b !!
 +
|}
  
'''45:''' The higher this is, the less likely the tile will be set on fire.
 
  
'''46:''' If the tile is a door, the tile will become this tile number when opened.
+
====12: [[Supply Ship]]====
 +
{| class="wikitable"
 +
! width="100" | Set
 +
! width="100" | MCD Records
 +
! width="100" | Image Count
 +
! width="100" | MCD Filesize
 +
! width="100" | PCK Filesize
 +
! width="100" | TAB Filesize
 +
! Overview
 +
|- align="center"
 +
| U_EXT02
 +
| 34 || 40 || 2,108b || 17,841b || 80b || UFO flooring, ceilings, and exterior walls.
 +
|- align="center"
 +
| U_WALL02
 +
| 47 || 66 || 2,914b || 28,517b || 132b || Internal UFO components.
 +
|- align="center"
 +
| U_DISEC2
 +
| 17 || 22 || 1,054b || 10,426b || 44b || Alien food and surgical units.
 +
|- align="center"
 +
| U_BITS
 +
| 8 || 8 || 496b || 2,386b || 16b || Additional flooring and struts.
 +
|- align="center"
 +
! Totals !! 106 !! 136 !! 6,572b !! 59,170b !! 272b !!
 +
|}
  
'''47:''' Always 0.
 
  
'''48:''' Signed value; add this to the y offset of units when on this tile.
+
===Terrain===
 +
====0: [[Jungle Terrain]]====
 +
* Internal set name: JUNGLE
 +
* X-COM craft support: Yes.
 +
* Alien craft supported: Yes.
 +
* Potential maximum MCD record count: 255
 +
* Potential maximum image count: 288
 +
{| class="wikitable"
 +
! width="100" | Set
 +
! width="100" | MCD Records
 +
! width="100" | Image Count
 +
! width="100" | MCD Filesize
 +
! width="100" | PCK Filesize
 +
! width="100" | TAB Filesize
 +
! Overview
 +
|- align="center"
 +
| BLANKS
 +
| 2 || 2 || 124b || 578b || 4b || Burnt ground and out-of-bounds tiles.
 +
|- align="center"
 +
| JUNGLE
 +
| 82 || 82 || 5,084b || 42,594b || 164b || Primary Jungle terrain data.
 +
|- align="center"
 +
! Totals !! 84 !! 84 !! 5,208b !! 43,172b !! 168b !!
 +
|}
  
'''49:''' Subtract this value from the y offset of the tile image.
 
  
'''50:''' Always 0.
+
====1: [[Farm Terrain]]====
 +
* Internal set name: CULTA
 +
* X-COM craft support: Yes.
 +
* Alien craft supported: Yes.
 +
* Potential maximum MCD record count: 239
 +
* Potential maximum image count: 272
 +
{| class="wikitable"
 +
! width="100" | Set
 +
! width="100" | MCD Records
 +
! width="100" | Image Count
 +
! width="100" | MCD Filesize
 +
! width="100" | PCK Filesize
 +
! width="100" | TAB Filesize
 +
! Overview
 +
|- align="center"
 +
| BLANKS
 +
| 2 || 2 || 124b || 578b || 4b || Burnt ground and out-of-bounds tiles.
 +
|- align="center"
 +
| CULTIVAT
 +
| 37 || 37 || 2,294b || 13,695b || 74b || Crops, hedges, fences, rock walls.
 +
|- align="center"
 +
| BARN
 +
| 29 || 29 || 1,798b || 11,281b || 58b || Structures, doors, stairs, hay bales.
 +
|- align="center"
 +
! Totals !! 68 !! 68 !! 4,216b !! 25,554b !! 136b !!
 +
|}
  
'''51:''' From 0 to 10, amount of light blocked by tile.
 
  0 Blocks no light.
 
''... up to ...''
 
10 Blocks all light.
 
  
'''52:''' Footstep sound effect.
+
====2: [[Forest Terrain]]====
0 Unknown (used on TFTD for some objects - I've confirmed it ''[[User:Hobbes|Hobbes]]'')
+
* Internal set name: FOREST
1 Metal
+
* X-COM craft support: Yes.
2 Normal (Grass, Wood, Dirt)
+
* Alien craft supported: Yes.
3 Three mountain ground tiles, and some city apt. furniture objects that can't be walked on?
+
* Potential maximum MCD record count: 256
  (six furniture objects might've been - but they're death tiles that nothing points to)
+
* Potential maximum image count: 265
4 Unknown (no tiles have this value)
+
{| class="wikitable"
5 Sand (Desert)
+
! width="100" | Set
6 Martian
+
! width="100" | MCD Records
'''53:''' Tile type:
+
! width="100" | Image Count
0 Floor
+
! width="100" | MCD Filesize
1 West Wall
+
! width="100" | PCK Filesize
2 North Wall
+
! width="100" | TAB Filesize
3 Object
+
! Overview
As for the potential for change in tile type when becoming death tile ([44]): There are 22 instances of [[Explosions#Mile-High Madness|Mountain Madness]] (ground to object), 1 instance of North Wall becoming an object (XCOM1 northwall door becomes rubble), one MCD record with tile type of '''10''' (Barn 7 which looks like a North Wall and becomes northwall when killed; obviously a typo'd Tile Type), and 31 total instances on 18 different tilesets where objects become ground upon dying (probably to "scorched earth", but this was not checked).
+
|- align="center"
 +
| BLANKS
 +
| 2 || 2 || 124b || 578b || 4b || Burnt ground and out-of-bounds tiles.
 +
|- align="center"
 +
| FOREST
 +
| 83 || 59 || 5,146b || 34,290b || 118b || Primary Forest terrain data.
 +
|- align="center"
 +
! Totals !! 85 !! 61 !! 5,270b !! 34,868b !! 122b !!
 +
|}
  
'''54:''' Explosive type:
 
0 HE
 
1 Smoke
 
''I only see things that '''explode''' as having a 1 here... all 10 of the MCD records with [55] >0 (such as the Navigator's Console) have 1 here; the other 1317 MCD records are [54]=0, [55]=0. But MapView calls [54]=1 "smoke" and [54]=0 "HE". What's up with that? --[[User:MikeTheRed|MTR]]''
 
  
''You've noticed a nice point there, which I think has to do with the fact that aliens can be killed with explosions happening from the 1 setting on [54] but not X-COM units. I've just tested this by moving unarmored soldiers right next to the gas pumps and shooting at them. Like you said, on UFO the objects explode with a 1 on [54], if [55]>0. But on my terrain mods I've barrels with a 0 setting on [54] and [55]>0 and those will kill X-COM units when they are hit and explode. Thus, the 0 HE and 1 Smoke designations are correct, it's only that for the aliens the Smoke explosion will hurt/kill them.  
+
====3: [[X-Com Base Terrain]]====
''And on TFTD the game uses both values for [54], 0 (more common, like the barrels on Port) and 1 (the Synomium device on Grunge/Artifact Site). -- [[User:Hobbes|Hobbes]]
+
* Internal set name: XBASE
 +
* X-COM craft support: No.
 +
* Alien craft supported: No.
 +
* Potential maximum MCD record count: 161 (255 if using [[User:Bomb_Bloke|BB-Mod]]'s filled hangar modification)
 +
* Potential maximum image count: 170 (262 if using [[User:Bomb_Bloke|BB-Mod]]'s filled hangar modification)
 +
{| class="wikitable"
 +
! width="100" | Set
 +
! width="100" | MCD Records
 +
! width="100" | Image Count
 +
! width="100" | MCD Filesize
 +
! width="100" | PCK Filesize
 +
! width="100" | TAB Filesize
 +
! Overview
 +
|- align="center"
 +
| BLANKS
 +
| 2 || 2 || 124b || 578b || 4b || Burnt ground and out-of-bounds tiles.
 +
|- align="center"
 +
| XBASE1
 +
| 97 || 105 || 6,014b || 47,341b || 210b || Primary X-COM base terrain data, including furnishings.
 +
|- align="center"
 +
| XBASE2
 +
| 62 || 63 || 3,844b || 24,718b || 126b || Additional furnishings, hangar flooring.
 +
|- align="center"
 +
! Totals !! 161 !! 170 !! 9,982b !! 72,637b !! 340b !!
 +
|}
  
'''55:''' Strength of explosion when tile is destroyed.
 
  
'''56:''' Smoke blockage.
+
====4: [[Alien Base Terrain]]====
 +
* Internal set name: UBASE
 +
* X-COM craft support: No.
 +
* Alien craft supported: No.
 +
* Potential maximum MCD record count: 131
 +
* Potential maximum image count: 174
 +
{| class="wikitable"
 +
! width="100" | Set
 +
! width="100" | MCD Records
 +
! width="100" | Image Count
 +
! width="100" | MCD Filesize
 +
! width="100" | PCK Filesize
 +
! width="100" | TAB Filesize
 +
! Overview
 +
|- align="center"
 +
| BLANKS
 +
| 2 || 2 || 124b || 578b || 4b || Burnt ground and out-of-bounds tiles.
 +
|- align="center"
 +
| U_BASE
 +
| 67 || 71 || 4,154b || 39,760b || 142b || Unique alien base furnishings.
 +
|- align="center"
 +
| U_WALL02
 +
| 47 || 66 || 2,914b || 28,517b || 132b || General alien furnishings.
 +
|- align="center"
 +
| U_PODS
 +
| 11 || 27 || 682b || 15,178b || 54b || Alien entertainment and other glowing things.
 +
|- align="center"
 +
| BRAIN
 +
| 4 || 8 || 248b || 5,294b || 16b || [[Brain|This]].
 +
|- align="center"
 +
! Totals !! 131 !! 174 !! 8,122b !! 89,327b !! 348b !!
 +
|}
  
'''57:''' The amount of turns this tile will burn for.
 
  
'''58:''' Brightness of tile. Amount of light produced.
+
====5: [[Urban Terrain]]====
 +
* Internal set name: URBAN
 +
* X-COM craft support: Yes.
 +
* Alien craft supported: No.
 +
* Potential maximum MCD record count: 253
 +
* Potential maximum image count: 255
 +
{| class="wikitable"
 +
! width="100" | Set
 +
! width="100" | MCD Records
 +
! width="100" | Image Count
 +
! width="100" | MCD Filesize
 +
! width="100" | PCK Filesize
 +
! width="100" | TAB Filesize
 +
! Overview
 +
|- align="center"
 +
| BLANKS
 +
| 2 || 2 || 124b || 578b || 4b || Burnt ground and out-of-bounds tiles.
 +
|- align="center"
 +
| ROADS
 +
| 23 || 23 || 1,426b || 7,110b || 46b || Roads, streetlamps, footpaths and intersections.
 +
|- align="center"
 +
| URBITS
 +
| 25 || 25 || 1,550b || 8,427b || 50b || Fences, foliage, outdoor clutter.
 +
|- align="center"
 +
| URBAN
 +
| 112 || 116 || 6,944b || 53,430b || 232b || Buildings, crates and store displays.
 +
|- align="center"
 +
| FRNITURE
 +
| 26 || 26 || 1,612b || 13,835b || 52b || Household furnishings.
 +
|- align="center"
 +
! Totals !! 188 !! 192 !! 11,656b !! 83,380b !! 384b !!
 +
|}
  
'''59:''' Special properties of tile:
 
  0 ''No Special Properties''
 
  1 Starting Point
 
  2 UFO Power Supply
 
  3 UFO Navigation
 
  5 Alien Food
 
  7 Alien Entertainment
 
  8 Alien Surgery
 
  9 Examination Room
 
10 Alien Alloy
 
12 Dead Tile
 
13 End Point
 
14 Alien Brain
 
  
'''60:''' Set to 1 for most (but not all) non-death-tile XCOM base objects (TileType=3). All other MCD records set to 0.
+
====6: [[Desert Terrain]]====
 +
* Internal set name: DESERT
 +
* X-COM craft support: Yes.
 +
* Alien craft supported: Yes.
 +
* Potential maximum MCD record count: 239
 +
* Potential maximum image count: 248
 +
{| class="wikitable"
 +
! width="100" | Set
 +
! width="100" | MCD Records
 +
! width="100" | Image Count
 +
! width="100" | MCD Filesize
 +
! width="100" | PCK Filesize
 +
! width="100" | TAB Filesize
 +
! Overview
 +
|- align="center"
 +
| BLANKS
 +
| 2 || 2 || 124b || 578b || 4b || Burnt ground and out-of-bounds tiles.
 +
|- align="center"
 +
| DESERT
 +
| 66 || 42 || 4,092b || 13,972b || 84b || Primary Desert terrain data.
 +
|- align="center"
 +
! Totals !! 68 !! 44 !! 4,216b !! 14,550b !! 88b !!
 +
|}
  
'''61:''' Almost half (560 of 1317) MCD records have widely varying values here, from 1 to 255 with no apparent pattern or preferred value. The remaining MCD records are 0. Some kind of pointer?
 
  
== PCK / TAB ==
+
====7: [[Mountain Terrain]]====
 +
* Internal set name: MOUNT
 +
* X-COM craft support: Yes.
 +
* Alien craft supported: Yes.
 +
* Potential maximum MCD record count: 251
 +
* Potential maximum image count: 260
 +
{| class="wikitable"
 +
! width="100" | Set
 +
! width="100" | MCD Records
 +
! width="100" | Image Count
 +
! width="100" | MCD Filesize
 +
! width="100" | PCK Filesize
 +
! width="100" | TAB Filesize
 +
! Overview
 +
|- align="center"
 +
| BLANKS
 +
| 2 || 2 || 124b || 578b || 4b || Burnt ground and out-of-bounds tiles.
 +
|- align="center"
 +
| MOUNT
 +
| 78 || 54 || 4,836b || 23,093b || 108b || Primary Mountain terrain data.
 +
|- align="center"
 +
! Totals !! 80 !! 56 !! 5,060b !! 23,671b !! 112b !!
 +
|}
  
Graphical tile data. The TAB file is made up of two byte values, each stating the starting offset of the respective graphic in the PCK file.<br>
+
 
<br>
+
====8: [[Arctic Terrain]]====
PCK decoding is fairly simple: the first byte in the data stream tells you how many rows you should skip. Then you just draw each byte afterwards directly onto the screen (which should be using a 256 color palette).<br>
+
* Internal set name: POLAR
<br>
+
* X-COM craft support: Yes.
Values 254/255 are not to be drawn. If you encounter a byte with a value of 254 (FE), then the next byte tells you how many pixils you should skip. If you encounter a byte with a value of 255 (FF), then you're done.<br>
+
* Alien craft supported: Yes.
<br>
+
* Potential maximum MCD record count: 254
While simplistic, I've found that the best way to use PCK files is to store them 'as is', then decode them straight onto the screen as needed (as opposed to pre-rendering them and storing the completed graphics in memory). This makes lighting effects that much easier to implement.
+
* Potential maximum image count: 329
 +
{| class="wikitable"
 +
! width="100" | Set
 +
! width="100" | MCD Records
 +
! width="100" | Image Count
 +
! width="100" | MCD Filesize
 +
! width="100" | PCK Filesize
 +
! width="100" | TAB Filesize
 +
! Overview
 +
|- align="center"
 +
| BLANKS
 +
| 2 || 2 || 124b || 578b || 4b || Burnt ground and out-of-bounds tiles.
 +
|- align="center"
 +
| POLAR
 +
| 81 || 123 || 5,022b || 37,806b || 246b || Primary Arctic terrain data.
 +
|- align="center"
 +
! Totals !! 83 !! 125 !! 5,146b !! 38,384b !! 250b !!
 +
|}
 +
 
 +
 
 +
====9: [[Mars (Cydonia) Terrain|Martian Terrain]]====
 +
* Internal set name: MARS
 +
* X-COM craft support: Yes.
 +
* Alien craft supported: No.
 +
* Potential maximum MCD record count: 150
 +
* Potential maximum image count: 168
 +
{| class="wikitable"
 +
! width="100" | Set
 +
! width="100" | MCD Records
 +
! width="100" | Image Count
 +
! width="100" | MCD Filesize
 +
! width="100" | PCK Filesize
 +
! width="100" | TAB Filesize
 +
! Overview
 +
|- align="center"
 +
| BLANKS
 +
| 2 || 2 || 124b || 578b || 4b || Burnt ground and out-of-bounds tiles.
 +
|- align="center"
 +
| MARS
 +
| 36 || 37 || 2,232b || 16,394b || 74b || Primary Martian terrain data.
 +
|- align="center"
 +
| U_WALL02
 +
| 47 || 66 || 2,914b || 28,517b || 132b || Internal UFO components.
 +
|- align="center"
 +
! Totals !! 85 !! 105 !! 5,270b !! 45,489b !! 210b !!
 +
|}
 +
 
 +
==See Also==
 +
* [[Game Files]]
 +
* [[Field Manual: Terrain]]
 +
* [[TERRAIN (TFTD)|TFTD Terrain folder]]
 +
 
 +
[[Category:Terrain]]
 +
[[Category:Game Files]]
 +
[[Category:Game Folders]]
 +
[[Category:Enemy Unknown/UFO Defense]]

Latest revision as of 03:35, 23 July 2013

This folder contains the information used for tiles in EU's battlescape view, both statistical and graphical.

These are divided up into "sets" made of three files: An MCD file, which defines the tiles for that set, and a PCK file accompanied by a TAB file, which together define the image data that represents said tiles on-screen (note that PCK files always have the same amount of records as their respective TAB files, though MCD files may have a different figure (as some tiles animate and hence use multiple sprites, and some tiles use the same sprites as others but at a different height offset)).

Each "set" stored here will be part of an even larger "terrain set", which will have corresponding files in both the MAPS folder and the ROUTES folder.

The maximum amount of MCD records allowed in any given fully-built map is 256. This is also the highest count used in game, achieved by sending a Skyranger or Interceptor to deal with a Harvester or Supply Ship in Forest Terrain.

The maximum amount of PCK records allowed is as yet unknown. The highest count used in game is 329, achieved by sending a Skyranger or Interceptor to deal with a Terror Ship or Battleship in Arctic Terrain.


Contents

The size of an MCD file is equal to the amount of records it holds times 62 bytes.

The size of a TAB file is equal to the amount of images it indexes times 2 bytes.

PCK files contain RLE-compressed image data and are of unpredictable sizes.


Ships

X-COM Craft

Set Number Set Name MCD Records Image Count MCD Filesize PCK Filesize TAB Filesize Overview
0 PLANE 65 63 4,030b 21,467b 126b Skyranger
1 LIGHTNIN 42 51 2,604b 22,701b 102b Lightning
2 AVENGER 59 62 3,658b 27,196b 124b Avenger
3 INTERC 65 63 4,030b 21,467b 126b Interceptor
4 FIRES 42 51 2,604b 22,701b 102b Firestorm

Note: The Interceptor and Firestorm are available only via XcomUtil, and use the same tiles/images as the Skyranger and Lightning respectively.


5: Small Scout

Set MCD Records Image Count MCD Filesize PCK Filesize TAB Filesize Overview
UFO1 20 27 1,240b 10,085b 54b Primary Small Scout data.


6: Medium Scout

Set MCD Records Image Count MCD Filesize PCK Filesize TAB Filesize Overview
U_EXT02 34 40 2,108b 17,841b 80b UFO flooring, ceilings, and exterior walls.
U_WALL02 47 66 2,914b 28,517b 132b Internal UFO components.
U_BITS 8 8 496b 2,386b 16b Additional flooring and struts.
Totals 89 114 5,518b 48,744b 228b


7: Large Scout

Set MCD Records Image Count MCD Filesize PCK Filesize TAB Filesize Overview
U_EXT02 34 40 2,108b 17,841b 80b UFO flooring, ceilings, and exterior walls.
U_WALL02 47 66 2,914b 28,517b 132b Internal UFO components.
U_BITS 8 8 496b 2,386b 16b Additional flooring and struts.
Totals 89 114 5,518b 48,744b 228b


8: Harvester

Set MCD Records Image Count MCD Filesize PCK Filesize TAB Filesize Overview
U_EXT02 34 40 2,108b 17,841b 80b UFO flooring, ceilings, and exterior walls.
U_WALL02 47 66 2,914b 28,517b 132b Internal UFO components.
U_DISEC2 17 22 1,054b 10,426b 44b Alien food and surgical units.
U_BITS 8 8 496b 2,386b 16b Additional flooring and struts.
Totals 106 136 6,572b 59,170b 272b


9: Abductor

Set MCD Records Image Count MCD Filesize PCK Filesize TAB Filesize Overview
U_EXT02 34 40 2,108b 17,841b 80b UFO flooring, ceilings, and exterior walls.
U_WALL02 47 66 2,914b 28,517b 132b Internal UFO components.
U_OPER2 15 15 930b 6,801b 30b Examination room units.
U_BITS 8 8 496b 2,386b 16b Additional flooring and struts.
Totals 104 129 6,448b 55,545b 258b


10: Terror Ship

Set MCD Records Image Count MCD Filesize PCK Filesize TAB Filesize Overview
U_EXT02 34 40 2,108b 17,841b 80b UFO flooring, ceilings, and exterior walls.
U_WALL02 47 66 2,914b 28,517b 132b Internal UFO components.
U_PODS 11 27 682b 15,178b 54b Alien entertainment and other glowing things.
U_BITS 8 8 496b 2,386b 16b Additional flooring and struts.
Totals 100 141 6,200b 63,922b 282b


11: Battleship

Set MCD Records Image Count MCD Filesize PCK Filesize TAB Filesize Overview
U_EXT02 34 40 2,108b 17,841b 80b UFO flooring, ceilings, and exterior walls.
U_WALL02 47 66 2,914b 28,517b 132b Internal UFO components.
U_PODS 11 27 682b 15,178b 54b Alien entertainment and other glowing things.
U_BITS 8 8 496b 2,386b 16b Additional flooring and struts.
Totals 100 141 6,200b 63,922b 282b


12: Supply Ship

Set MCD Records Image Count MCD Filesize PCK Filesize TAB Filesize Overview
U_EXT02 34 40 2,108b 17,841b 80b UFO flooring, ceilings, and exterior walls.
U_WALL02 47 66 2,914b 28,517b 132b Internal UFO components.
U_DISEC2 17 22 1,054b 10,426b 44b Alien food and surgical units.
U_BITS 8 8 496b 2,386b 16b Additional flooring and struts.
Totals 106 136 6,572b 59,170b 272b


Terrain

0: Jungle Terrain

  • Internal set name: JUNGLE
  • X-COM craft support: Yes.
  • Alien craft supported: Yes.
  • Potential maximum MCD record count: 255
  • Potential maximum image count: 288
Set MCD Records Image Count MCD Filesize PCK Filesize TAB Filesize Overview
BLANKS 2 2 124b 578b 4b Burnt ground and out-of-bounds tiles.
JUNGLE 82 82 5,084b 42,594b 164b Primary Jungle terrain data.
Totals 84 84 5,208b 43,172b 168b


1: Farm Terrain

  • Internal set name: CULTA
  • X-COM craft support: Yes.
  • Alien craft supported: Yes.
  • Potential maximum MCD record count: 239
  • Potential maximum image count: 272
Set MCD Records Image Count MCD Filesize PCK Filesize TAB Filesize Overview
BLANKS 2 2 124b 578b 4b Burnt ground and out-of-bounds tiles.
CULTIVAT 37 37 2,294b 13,695b 74b Crops, hedges, fences, rock walls.
BARN 29 29 1,798b 11,281b 58b Structures, doors, stairs, hay bales.
Totals 68 68 4,216b 25,554b 136b


2: Forest Terrain

  • Internal set name: FOREST
  • X-COM craft support: Yes.
  • Alien craft supported: Yes.
  • Potential maximum MCD record count: 256
  • Potential maximum image count: 265
Set MCD Records Image Count MCD Filesize PCK Filesize TAB Filesize Overview
BLANKS 2 2 124b 578b 4b Burnt ground and out-of-bounds tiles.
FOREST 83 59 5,146b 34,290b 118b Primary Forest terrain data.
Totals 85 61 5,270b 34,868b 122b


3: X-Com Base Terrain

  • Internal set name: XBASE
  • X-COM craft support: No.
  • Alien craft supported: No.
  • Potential maximum MCD record count: 161 (255 if using BB-Mod's filled hangar modification)
  • Potential maximum image count: 170 (262 if using BB-Mod's filled hangar modification)
Set MCD Records Image Count MCD Filesize PCK Filesize TAB Filesize Overview
BLANKS 2 2 124b 578b 4b Burnt ground and out-of-bounds tiles.
XBASE1 97 105 6,014b 47,341b 210b Primary X-COM base terrain data, including furnishings.
XBASE2 62 63 3,844b 24,718b 126b Additional furnishings, hangar flooring.
Totals 161 170 9,982b 72,637b 340b


4: Alien Base Terrain

  • Internal set name: UBASE
  • X-COM craft support: No.
  • Alien craft supported: No.
  • Potential maximum MCD record count: 131
  • Potential maximum image count: 174
Set MCD Records Image Count MCD Filesize PCK Filesize TAB Filesize Overview
BLANKS 2 2 124b 578b 4b Burnt ground and out-of-bounds tiles.
U_BASE 67 71 4,154b 39,760b 142b Unique alien base furnishings.
U_WALL02 47 66 2,914b 28,517b 132b General alien furnishings.
U_PODS 11 27 682b 15,178b 54b Alien entertainment and other glowing things.
BRAIN 4 8 248b 5,294b 16b This.
Totals 131 174 8,122b 89,327b 348b


5: Urban Terrain

  • Internal set name: URBAN
  • X-COM craft support: Yes.
  • Alien craft supported: No.
  • Potential maximum MCD record count: 253
  • Potential maximum image count: 255
Set MCD Records Image Count MCD Filesize PCK Filesize TAB Filesize Overview
BLANKS 2 2 124b 578b 4b Burnt ground and out-of-bounds tiles.
ROADS 23 23 1,426b 7,110b 46b Roads, streetlamps, footpaths and intersections.
URBITS 25 25 1,550b 8,427b 50b Fences, foliage, outdoor clutter.
URBAN 112 116 6,944b 53,430b 232b Buildings, crates and store displays.
FRNITURE 26 26 1,612b 13,835b 52b Household furnishings.
Totals 188 192 11,656b 83,380b 384b


6: Desert Terrain

  • Internal set name: DESERT
  • X-COM craft support: Yes.
  • Alien craft supported: Yes.
  • Potential maximum MCD record count: 239
  • Potential maximum image count: 248
Set MCD Records Image Count MCD Filesize PCK Filesize TAB Filesize Overview
BLANKS 2 2 124b 578b 4b Burnt ground and out-of-bounds tiles.
DESERT 66 42 4,092b 13,972b 84b Primary Desert terrain data.
Totals 68 44 4,216b 14,550b 88b


7: Mountain Terrain

  • Internal set name: MOUNT
  • X-COM craft support: Yes.
  • Alien craft supported: Yes.
  • Potential maximum MCD record count: 251
  • Potential maximum image count: 260
Set MCD Records Image Count MCD Filesize PCK Filesize TAB Filesize Overview
BLANKS 2 2 124b 578b 4b Burnt ground and out-of-bounds tiles.
MOUNT 78 54 4,836b 23,093b 108b Primary Mountain terrain data.
Totals 80 56 5,060b 23,671b 112b


8: Arctic Terrain

  • Internal set name: POLAR
  • X-COM craft support: Yes.
  • Alien craft supported: Yes.
  • Potential maximum MCD record count: 254
  • Potential maximum image count: 329
Set MCD Records Image Count MCD Filesize PCK Filesize TAB Filesize Overview
BLANKS 2 2 124b 578b 4b Burnt ground and out-of-bounds tiles.
POLAR 81 123 5,022b 37,806b 246b Primary Arctic terrain data.
Totals 83 125 5,146b 38,384b 250b


9: Martian Terrain

  • Internal set name: MARS
  • X-COM craft support: Yes.
  • Alien craft supported: No.
  • Potential maximum MCD record count: 150
  • Potential maximum image count: 168
Set MCD Records Image Count MCD Filesize PCK Filesize TAB Filesize Overview
BLANKS 2 2 124b 578b 4b Burnt ground and out-of-bounds tiles.
MARS 36 37 2,232b 16,394b 74b Primary Martian terrain data.
U_WALL02 47 66 2,914b 28,517b 132b Internal UFO components.
Totals 85 105 5,270b 45,489b 210b

See Also