<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://temp.ufopaedia.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=83.19.21.106</id>
	<title>UFOpaedia - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://temp.ufopaedia.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=83.19.21.106"/>
	<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/Special:Contributions/83.19.21.106"/>
	<updated>2026-05-03T09:27:15Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=Talk:MCD&amp;diff=2209</id>
		<title>Talk:MCD</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=Talk:MCD&amp;diff=2209"/>
		<updated>2005-11-18T23:52:33Z</updated>

		<summary type="html">&lt;p&gt;83.19.21.106: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I don&#039;t understand what &#039;loft&#039; means. Can anyone here explain it to me? &lt;br /&gt;
&lt;br /&gt;
-[[User:Danial|Danial]] 05:00, 28 Oct 2005 (PDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Sure. a loft is an attic, or roofspace, or somewhere located high, as in a &#039;church loft&#039; (which would be the bell tower)&lt;br /&gt;
&lt;br /&gt;
- ETeR&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
And what exactly does that have to do with:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;Loft of the tile. 12 values, each referances into loftemps.dat file.&amp;lt;br&amp;gt;Each record is a 16x16(?) grid. Used to create a 3D map of the tile, for LOS.&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
-[[User:Danial|Danial]] 14:23, 28 Oct 2005 (PDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Loft&amp;quot; stands for &amp;quot;Line Of Fire Table&amp;quot;, or so I&#039;d assume.&lt;br /&gt;
&lt;br /&gt;
In loftemps.dat, there are a number of records, each being a 16x16 (I think) grid. Each element of the grid is either flagged on, or off. If you stack these grids one on top of the other, you have a 3D map, and the game uses this map to work out the shape of a tile.&lt;br /&gt;
&lt;br /&gt;
This means that a shot aimed at the lower section of a tree is likely to miss, because the trunk is thin; but a shot aimed at the higher portion of the tree is more likely to hit, because the tree is larger there.&lt;br /&gt;
&lt;br /&gt;
More specifically, if you fire a shot at a window, the bullet can go right through the gap, or it might clip the sides of the window.&lt;br /&gt;
&lt;br /&gt;
That is, although X-Com looks 2D, when it comes to working out where a bullet goes, it&#039;s all processed in 3D. I assume the same goes for working out what a unit can or can&#039;t see.&lt;br /&gt;
&lt;br /&gt;
- Bomb Bloke&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
52: Footstep sound effect.&lt;br /&gt;
&lt;br /&gt;
I didn&#039;t log in because I don&#039;t have an account... yet. I looks like I was wrong on the arctic terrain, I thought it uses sand effect, but I checked it&#039;s actually normal (2).&lt;/div&gt;</summary>
		<author><name>83.19.21.106</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=TERRAIN&amp;diff=2202</id>
		<title>TERRAIN</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=TERRAIN&amp;diff=2202"/>
		<updated>2005-11-18T23:51:35Z</updated>

		<summary type="html">&lt;p&gt;83.19.21.106: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This folder contains the information used for tiles in the battlescape view, both statistical and graphical.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
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.&amp;lt;br&amp;gt;&lt;br /&gt;
=MCD=&lt;br /&gt;
==General Information==&lt;br /&gt;
*MCD stands for Map Control Data.&lt;br /&gt;
*MCD files have a variable amount of records, each of 62 bytes.&lt;br /&gt;
*Each record defines one of four possible terrain items (see [54]):&lt;br /&gt;
**ground tile,&lt;br /&gt;
**north wall,&lt;br /&gt;
**west wall, or &lt;br /&gt;
**object&lt;br /&gt;
*For example, DESERT.MCD defines a number of desert terrain items such as sand (ground tiles), sand dunes, rocks, and cacti.&lt;br /&gt;
*The PCK and TAB files work hand-in-hand with MCD records to define what each terrain item looks like.&lt;br /&gt;
*These MCD terrain items are subsequently combined to make &amp;quot;3D&amp;quot; maplets in the MAPS\DESERT&#039;&#039;nn&#039;&#039;.MAP 10x10 or 20x20 tilesets.&lt;br /&gt;
*The MAP tilesets are then selected from, to make a &amp;quot;random&amp;quot; desert map when a new battlescape is created.&lt;br /&gt;
*Sometimes more than one collection is used for a given map type; farms are made from the CULTIVAT (fields) and BARN (farmhouse) sets.&lt;br /&gt;
*More complex terrain types, especially UFOs and bases, tend to have many more MCD records (terrain items) and/or more than one MCD set.&lt;br /&gt;
&lt;br /&gt;
==Structure==&lt;br /&gt;
&#039;&#039;&#039;0-7:&#039;&#039;&#039; Animation of the tile.&lt;br /&gt;
&lt;br /&gt;
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 (see [46]), bubbles on TFTD, blinking lifts, etc. If all eight frames are the same, it&#039;s a static tile.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;8-19:&#039;&#039;&#039; Line Of Fire Template (LOFT) for the tile. 12 values, each references into [[LOFTEMPS.DAT]] file.&lt;br /&gt;
&lt;br /&gt;
Each LOFT record is a 16x16 grid; these are stacked one over the other, with mcd[8] being the bottom. Used to create a 3D map (16x16x12) of the tile, for LOS. For more info, see [[LOFTEMPS.DAT]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;20-21:&#039;&#039;&#039; Reference into [[SCANG.DAT]] file. Two-byte integer ([20] + [21] * 256 + 35 = offset). 4x4 bmp images for the top-down map; see [[SCANG.DAT]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;22-29:&#039;&#039;&#039; Unknown.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;30:&#039;&#039;&#039; Boolean: Is sliding door? See [46]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;31:&#039;&#039;&#039; Boolean: Can&#039;t be seen through?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;32:&#039;&#039;&#039; Boolean: Can&#039;t be stood on? For ground tiles: non-flying units fall through. &#039;&#039;I only see two XCOM MCD ground tiles with this set; not sure if either tile is actually used: BLANKS MCD id 0 and UFO1 MCD id 0 -[[user:MikeTheRed|MTR]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;33:&#039;&#039;&#039; Boolean: Is Wall? Used for Objects intended to act as Walls; used to make UFO, Skyranger, and Avenger outer &amp;quot;walls&amp;quot; that aren&#039;t otherwise possible as &amp;quot;real&amp;quot; North or West walls. Used for a few other things, too. Called &amp;quot;BigWall&amp;quot; in MapView.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;34:&#039;&#039;&#039; Boolean: Is Grav lift? Up/Down of Lifts is determined by whether there is another one above or below in the .MAP.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;35:&#039;&#039;&#039; Boolean: Is hinged door? See [46]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;36:&#039;&#039;&#039; Boolean: Blocks fire?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;37:&#039;&#039;&#039; Boolean: Blocks smoke?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;38:&#039;&#039;&#039; Unknown - Always 3.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;39:&#039;&#039;&#039; Time units used to walk across the tile. (255 means unpassable)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;40:&#039;&#039;&#039; Time units used to fly across the tile. (255 means unpassable)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;41:&#039;&#039;&#039; Time units used to slide across the tile. (255 means unpassable) (Used for aliens like Snakemen and Silacoids. Tanks?)&lt;br /&gt;
&lt;br /&gt;
For [39] to [41], values range from 0 to 8, or are 255. There are only a few places where they are not all the same ([39]=[40]=[41]):&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;u&amp;gt;Walk&amp;lt;/u&amp;gt; &amp;lt;u&amp;gt;Fly&amp;lt;/u&amp;gt; &amp;lt;u&amp;gt;Slide&amp;lt;/u&amp;gt; &amp;lt;u&amp;gt;File&amp;lt;/u&amp;gt;    &amp;lt;u&amp;gt;Description&amp;lt;/u&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
   2   0    2   Avenger Middle ramp object &#039;&#039;(but you can&#039;t fly there because they&#039;re on the&lt;br /&gt;
                        &#039;&#039;ground anyway, no? - MTR)&lt;br /&gt;
 &lt;br /&gt;
  255 255   4   Arctic  Water pools in ice (18 ground MCDs) &#039;&#039;(huh! like water snakes, eh? -MTR) &lt;br /&gt;
 &lt;br /&gt;
   2   2    0   U_Base  Death &#039;&#039;objects&#039;&#039; for large round containers in alien bases (four quadrants)...&lt;br /&gt;
                        thus, their remnants don&#039;t &#039;&#039;add&#039;&#039; TUs for sliders&lt;br /&gt;
 &lt;br /&gt;
   1   1    0   U_Base  Little green plant objects found on black &amp;quot;base garden&amp;quot; flooring&lt;br /&gt;
 &lt;br /&gt;
   2   2    0   Urbits  Two death objects (splinters on ground) for city&#039;s tall green picket fence &lt;br /&gt;
                        (one is a North-wall fence, the other is a West-wall fence)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;42:&#039;&#039;&#039; Armor of tile.&lt;br /&gt;
*Tile must take this amount of damage to be destroyed, at which point it changes to mcd[44].&lt;br /&gt;
*Terrain items do not &amp;quot;remember&amp;quot; damage (like units); terrain is either destroyed (if damage &amp;gt;= armor) or not.&lt;br /&gt;
*Some things are set to 255 to mean &amp;quot;indestructible&amp;quot; but actually, anything &amp;gt;100 is indestructible in a non-hacked game, and anything &amp;gt;127 (for explosives, 255/2) or &amp;gt;191 (firearms, 255x.75) cannot be destroyed, even in a hacked game (see [[Damage]] re: Damage to terrain).&lt;br /&gt;
*With explosions, all four terrain items in the tile are hit by the same strength, but firearm shots target only one of them.&lt;br /&gt;
*For a loopy exception to explosions being equally applied (due to erroneous data), see [[Explosions#Mile-High Madness|Mountain Madness]].&lt;br /&gt;
*&#039;&#039;[[user:NKF|NKF]]:&#039;&#039; 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.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;43:&#039;&#039;&#039; [[Explosions#HE Block|HE Blockage]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;44:&#039;&#039;&#039; Tile becomes a tile of this type (i.e., this other MCD record in the same MCD file) when destroyed. Also known as the &#039;&#039;&#039;death tile&#039;&#039;&#039;. Also see [53].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; If [44]=0, it means there is no death tile per se; it reverts to a &amp;quot;raw earth&amp;quot; tile if on ground, or nothing if in air. (It does not revert to the MCD id 0 record in the current collection.)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Is the &amp;quot;no death tile&amp;quot; raw earth tile found in BLANKS.MCD? -MTR&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Yes, it is. BLANKS[01] is for ground; looks like dirt. BLANKS[00] is for non-ground; in other words, it&#039;s completely empty! --[[User:Danial|Danial]]&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;45:&#039;&#039;&#039; The higher this is, the less likely the tile will be set on fire.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;46:&#039;&#039;&#039; If the tile is a door ([30] or [35]), the tile will become this tile number when opened. Animation [0] (see [0] to [7]) is shown until someone walks through the door, in which case it cycles through its animation stopping and holding Animation [7]. Then it will return to a closed door next turn.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;47:&#039;&#039;&#039; Unknown - Always 0. [[TERRAIN#MCD Editor|MCDEdit]] calls this &amp;quot;Keycode&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;48:&#039;&#039;&#039; Signed value; add this to the y offset of units or objects on this tile. A.k.a. terrain level.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;49:&#039;&#039;&#039; Subtract this value from the y offset of the tile image (used for hills).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Why &amp;quot;y&amp;quot;? If this means up and down, isn&#039;t that the z axis? (Or just say up/down?) -MTR&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;It&#039;s the Y-axis because UFO is a 2D game. It would be the Z-axis if it were 3D. --[[User:Danial|Danial]]&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;50:&#039;&#039;&#039; Unknown - Always 0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;51:&#039;&#039;&#039; From 0 to 10, amount of light blocked by tile.&lt;br /&gt;
  0 Blocks no light.&lt;br /&gt;
 &#039;&#039;... up to ...&#039;&#039;&lt;br /&gt;
 10 Blocks all light.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;52:&#039;&#039;&#039; Footstep sound effect. Most likely an index to the .CAT file RAW wave &#039;&#039;-[http://www.strategycore.co.uk/forums/lofiversion/index.php?t1468.html BladeFireLight]&lt;br /&gt;
 0 Not used in XCOM (makes a metal sound if hacked); is used on TFTD for some objects &#039;&#039;-[[User:Hobbes|Hobbes]]&#039;&#039;&lt;br /&gt;
 1 Metal&lt;br /&gt;
 2 Normal (Grass, Wood, Dirt)&lt;br /&gt;
 3 Three mountain ground tiles, and some city apt. furniture objects that can&#039;t be walked on?&lt;br /&gt;
   (six furniture objects might&#039;ve been - but they&#039;re death tiles that nothing points to)&lt;br /&gt;
   Uses same sound as 6.&lt;br /&gt;
 4 Pool of water (Not used in XCOM)&lt;br /&gt;
 5 Sand (Desert)&lt;br /&gt;
 6 Martian&lt;br /&gt;
 7 Snow (Not used in XCOM, Arctic actually uses 2)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;53:&#039;&#039;&#039; Tile type:&lt;br /&gt;
 0 Floor&lt;br /&gt;
 1 West Wall&lt;br /&gt;
 2 North Wall&lt;br /&gt;
 3 Object&lt;br /&gt;
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 &#039;&#039;&#039;10&#039;&#039;&#039; (Barn 7 which looks like a North Wall and becomes northwall when killed; obviously a typo&#039;d Tile Type), and 31 total instances on 18 different tilesets where objects become ground upon dying (probably to &amp;quot;scorched earth&amp;quot;, but this was not checked).&lt;br /&gt;
&lt;br /&gt;
BladeFireLight [http://www.strategycore.co.uk/forums/lofiversion/index.php?t1468.html adds] this comment on Tile Type: &amp;quot;When this type of tile is in the DieMCD ([44]) or OpenMCD ([46]) flags, this value is added to the tile coordinate to determine the byte in which the tile type should be written.&amp;quot; Can anybody explain this to me? &#039;&#039;-MTR&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;54:&#039;&#039;&#039; Explosive type; [55] must be &amp;gt;0:&lt;br /&gt;
 0 HE&lt;br /&gt;
 1 Smoke&lt;br /&gt;
&#039;&#039;Notes:&#039;&#039;&lt;br /&gt;
#To see explosive objects in XCOM, see [[Explosions#Explosive Map Objects]].&lt;br /&gt;
#Type 0 (HE) explosions follow the usual rules for [[explosions]] (average damage to units decreases by 10 per tile outward, etc.).&lt;br /&gt;
#Hackers: Type 0 (HE) terrain items with little or no armor ([42]=0) are obliterated before exploding (i.e., they won&#039;t explode, no matter how high [55] is). Probably also depends on, if it was a very big blast relative to the armor.&lt;br /&gt;
#Chain reactions are exceedingly difficult to set up (per Hobbes). Most of the time when you see e.g. the four sections of the Navigator&#039;s table explode, it&#039;s because you used explosives that actually set off each one individually. It has to do with a balance of, among other things, not obliterating the object (see previous point).&lt;br /&gt;
#Type 1 (Smoke) explosives are strange, and mainly only affect aliens - and very haphazardly at that. XCOM units are only very rarely affected; I could only get it to work if they were 1) unarmored, 2) on a diagonal, and 3) no other objects are &amp;quot;in the way&amp;quot; between the blast moving &amp;quot;over and up&amp;quot; or &amp;quot;up and over&amp;quot; to the diagonal (blast propagation never moves directly diagonally per se; see [[Explosions#Playing With Fire]]). &#039;&#039;-MTR&lt;br /&gt;
#Chain reactions are not possible with Type 1 (Smoke) explosive objects.&lt;br /&gt;
#Also, when dealing with smoke damage, remember that if there is already tons of smoke on the map (filling up the smoke table) such that no new smoke can appear, you might get unexpected results (or no effect). &#039;&#039;[[user:Hobbes|Hobbes]]:&#039;&#039; One strange thing that can happen when there&#039;s already too much smoke on the map and an object with [54]=1 explodes is that the alien dies and in the dying animation there&#039;s smoke on that square. &#039;&#039;Just in the dying animation, not after he&#039;s down? -MTR&lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;I can&#039;t remember right now if the smoke remains afterward. Next time it happens I will check it [[User:Hobbes|Hobbes]] 12:00, 18 Nov 2005 (PST)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#TFTD uses both values for [54], 0 (more common, like the barrels on Port) and 1 (the Synomium device on Grunge/Artifact Site).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;There are no &amp;quot;naturally occuring&amp;quot; HE explosives tiles in UFO. All explosive objects are MCD[54]=1!! --[[User:Danial|Danial]]&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;55:&#039;&#039;&#039; Strength of explosion when tile is destroyed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;56:&#039;&#039;&#039; Smoke blockage. This is set to 0 for all UFO tiles!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Perhaps [36] is used only? A varying [56] might have been where the 2 un-used smoke sprites would have come in. --[[User:Danial|Danial]]&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;57:&#039;&#039;&#039; The amount of turns this tile will burn for.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;58:&#039;&#039;&#039; Brightness of tile. Amount of light produced.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;59:&#039;&#039;&#039; Special properties of tile. Determines what is salvaged at end of mission:&lt;br /&gt;
  0 &#039;&#039;No Special Properties&#039;&#039;&lt;br /&gt;
  1 Starting Point &#039;&#039;(place to Abort mission)&lt;br /&gt;
  2 [[UFO Power Source]]&lt;br /&gt;
  3 [[UFO Navigation]]&lt;br /&gt;
  5 [[Alien Food]]&lt;br /&gt;
  7 [[Alien Entertainment]]&lt;br /&gt;
  8 [[Alien Surgery]]&lt;br /&gt;
  9 [[Examination Room]]&lt;br /&gt;
 10 [[Alien Alloys]]&lt;br /&gt;
 12 Dead Tile&lt;br /&gt;
 13 End Point &#039;&#039;(from surface of Mars to base)&lt;br /&gt;
 14 Alien Brain  &#039;&#039;(final mission victory condition)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;60:&#039;&#039;&#039; Set to 1 for most (but not all) non-death-tile XCOM base objects (TileType=3). All other MCD records set to 0. [[TERRAIN#MCD Editor|MCDEdit]] calls this &amp;quot;Victory Points&amp;quot; - so presumably you lose VPs based on how much of your base is destroyed?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;61:&#039;&#039;&#039; 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?&lt;br /&gt;
&lt;br /&gt;
==List of MCD Files==&lt;br /&gt;
Here are the 27 MCD files in XCOM. Here&#039;s a list of the number of MCD records in each (1,317 total):&lt;br /&gt;
 &amp;lt;u&amp;gt;File&amp;lt;/u&amp;gt;            &amp;lt;u&amp;gt;Terrain&amp;lt;/u&amp;gt;              &amp;lt;u&amp;gt;Records&amp;lt;/u&amp;gt;&lt;br /&gt;
 avenger         Avenger                 59&lt;br /&gt;
 barn            Farm                    29&lt;br /&gt;
 blanks          All                      2&lt;br /&gt;
 brain           Alien Base               4	&lt;br /&gt;
 cultitav        Farm                    37&lt;br /&gt;
 desert          Desert                  66&lt;br /&gt;
 forest          Forest                  83&lt;br /&gt;
 frniture        City                    26&lt;br /&gt;
 jungle          Jungle                  82&lt;br /&gt;
 lightnin        Lightning               42&lt;br /&gt;
 mars            Cydonia                 36&lt;br /&gt;
 mount           Mountain                78&lt;br /&gt;
 plane           Skyranger               65&lt;br /&gt;
 polar           Polar                   81&lt;br /&gt;
 roads           City                    23&lt;br /&gt;
 ufo1            UFOs                    20	&lt;br /&gt;
 urban           City                   112&lt;br /&gt;
 urbits          City                    25&lt;br /&gt;
 u_base          Alien Base              67&lt;br /&gt;
 u_bits          UFOs                     8&lt;br /&gt;
 u_disec2        UFOs                    17&lt;br /&gt;
 u_ext02         UFOs                    34	&lt;br /&gt;
 u_oper2         UFOs                    15	&lt;br /&gt;
 u_pods          UFO/Alien Base          11	&lt;br /&gt;
 u_wall02        UFO/Alien Base/Cydonia  47&lt;br /&gt;
 xbase1          X-COM Base              97&lt;br /&gt;
 xbase2          X-COM Base              62&lt;br /&gt;
&lt;br /&gt;
And here&#039;s the same list for TFTD:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;u&amp;gt;File&amp;lt;/u&amp;gt;            &amp;lt;u&amp;gt;Terrain&amp;lt;/u&amp;gt;              &amp;lt;u&amp;gt;Records&amp;lt;/u&amp;gt;&lt;br /&gt;
 asunk		Sunken Galleon		50&lt;br /&gt;
 atlantis	Atlantis		77&lt;br /&gt;
 barracud	Barracuda		46&lt;br /&gt;
 cargo1		Cargo Ship	       103		&lt;br /&gt;
 cargo2		Cargo Ship		13&lt;br /&gt;
 cargo3		Cargo Ship		 6&lt;br /&gt;
 coral		Coral			28		&lt;br /&gt;
 crypt1		Crypt			45		&lt;br /&gt;
 crypt2		Crypt			49&lt;br /&gt;
 crypt3		Crypt			12		&lt;br /&gt;
 crypt4		Crypt			 7&lt;br /&gt;
 debris		Seabed			50&lt;br /&gt;
 deckc		Liner Ship (Top)	18				&lt;br /&gt;
 entry		Entry			12		&lt;br /&gt;
 grunge1    	Artifact Site		38		&lt;br /&gt;
 grunge2      	Artifact Site		 8&lt;br /&gt;
 grunge3     	Artifact Site		10&lt;br /&gt;
 grunge4      	Artifact Site		37&lt;br /&gt;
 hammer		Hammerhead*		44		&lt;br /&gt;
 island1       	Island			50&lt;br /&gt;
 island2       	Island			50&lt;br /&gt;
 island3       	Island			35&lt;br /&gt;
 leviath       	Leviathan		47&lt;br /&gt;
 linera		Liner Ship		99&lt;br /&gt;
 linerb		Liner Ship		24&lt;br /&gt;
 linerc		Liner Ship		40&lt;br /&gt;
 linerd		Liner Ship		23&lt;br /&gt;
 manta		Manta			44	&lt;br /&gt;
 msunk1		Sunken Ship		50&lt;br /&gt;
 msunk2		Sunken Ship		29&lt;br /&gt;
 mu		Mu			80&lt;br /&gt;
 organic1	Alien Base/Level/Entry	96&lt;br /&gt;
 organic2	Alien Base/Level	10&lt;br /&gt;
 organic3	Alien Base/Level	 4&lt;br /&gt;
 pipes		Pipes			55&lt;br /&gt;
 planes		Sunken Plane		79&lt;br /&gt;
 port01		Port			95	&lt;br /&gt;
 port02		Port			78&lt;br /&gt;
 psynom		Alien Base/Level	 2&lt;br /&gt;
 pyramid       	Artifact		24&lt;br /&gt;
 rocks	       	Artifact/Seabed/Galleon	15&lt;br /&gt;
 sand	      	several			20&lt;br /&gt;
 sea          	several			18	&lt;br /&gt;
 triton		Triton			46&lt;br /&gt;
 uext1		?			 4&lt;br /&gt;
 uext2		USO/Entry		 9&lt;br /&gt;
 uext3		USO/Entry		25&lt;br /&gt;
 ufobits       	several			 5&lt;br /&gt;
 uint1		USO			41&lt;br /&gt;
 uint2		USO			11&lt;br /&gt;
 uint3		USO			14&lt;br /&gt;
 volc		Volcanic		80&lt;br /&gt;
 weeds		Artifact/Coral/Seabed	10&lt;br /&gt;
 xbases1      	X-COM Base		87&lt;br /&gt;
 xbases2     	X-COM Base		42&lt;br /&gt;
 xbases3       	X-COM Base		37&lt;br /&gt;
 xbases4       	X-COM Base		43&lt;br /&gt;
 xbases5       	X-COM Base		42&lt;br /&gt;
 xbits		Cargo Ship		39&lt;br /&gt;
&lt;br /&gt;
==Additional Information==&lt;br /&gt;
&lt;br /&gt;
===BladeFireLight&#039;s MCD Info===&lt;br /&gt;
Another in-depth look at MCD (and more) can be found on [http://www.strategycore.co.uk/forums/lofiversion/index.php?t1468.html this] message by BladeFireLight. His post also contains a [http://www.HexWorkshop.com HexWorkshop] template for viewing MCD files in a logical manner.&lt;br /&gt;
&lt;br /&gt;
===MCD Editor===&lt;br /&gt;
Koralt&#039;s MCDEdit can view or modify MCD files. Find it here: [http://mypage.bluewin.ch/xcom/mcdedit.zip mcdedit.zip]. To see a screencap, scroll to the very bottom of BladeFireLight&#039;s MCD posting (above). MCDEdit needs [http://mypage.bluewin.ch/xcom/vbrun200.zip vbrun200] to run!&lt;br /&gt;
&lt;br /&gt;
===MapView===&lt;br /&gt;
DaiShiva has an excellent utility called [http://www.daishiva.com/phpBB2/generic.php?page=progLinks.shtml MapView] for viewing or editing maps. However, it does not allow editing of MCD terrain items per se, AFAIK; just moving/placement of them. Caution: You must install the extensive Microsoft .NET platform to use MapView; see DaiShiva&#039;s site.&lt;br /&gt;
&lt;br /&gt;
===BombBloke&#039;s Hacked Desert Terrain===&lt;br /&gt;
[[User:Bomb Bloke|Bomb Bloke]] has a numerical (ground) tileset which makes weapon damage blast testing easy as pie. It also has a little applet that lets you edit MCD variables Armor [42], HE Block [43], and Explosion Strength [55] (but not type, [54]), and it includes all four types of terrain item. Find his hacked terrain &lt;br /&gt;
[http://www.strategycore.co.uk/forums/index.php?showtopic=746&amp;amp;st=195&amp;amp;# here] or bundled with a savegame [http://www.xcomufo.com/forums/index.php?showtopic=8701&amp;amp;st=114&amp;amp;# here]. To see a screencap of the tiles in action, see [http://www.xcomufo.com/forums/index.php?showtopic=8701&amp;amp;st=112&amp;amp;# this] message.&lt;br /&gt;
&lt;br /&gt;
=PCK / TAB=&lt;br /&gt;
&lt;br /&gt;
==General Information==&lt;br /&gt;
&lt;br /&gt;
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.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
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).&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
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 pixels you should skip. If you encounter a byte with a value of 255 (FF), then you&#039;re done.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
While simplistic, I&#039;ve found that the best way to use PCK files is to store them &#039;as is&#039;, 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.&lt;/div&gt;</summary>
		<author><name>83.19.21.106</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=Talk:MCD&amp;diff=2201</id>
		<title>Talk:MCD</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=Talk:MCD&amp;diff=2201"/>
		<updated>2005-11-17T13:34:34Z</updated>

		<summary type="html">&lt;p&gt;83.19.21.106: 52: Footstep sound effect.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I don&#039;t understand what &#039;loft&#039; means. Can anyone here explain it to me? &lt;br /&gt;
&lt;br /&gt;
-[[User:Danial|Danial]] 05:00, 28 Oct 2005 (PDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Sure. a loft is an attic, or roofspace, or somewhere located high, as in a &#039;church loft&#039; (which would be the bell tower)&lt;br /&gt;
&lt;br /&gt;
- ETeR&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
And what exactly does that have to do with:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;Loft of the tile. 12 values, each referances into loftemps.dat file.&amp;lt;br&amp;gt;Each record is a 16x16(?) grid. Used to create a 3D map of the tile, for LOS.&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
-[[User:Danial|Danial]] 14:23, 28 Oct 2005 (PDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Loft&amp;quot; stands for &amp;quot;Line Of Fire Table&amp;quot;, or so I&#039;d assume.&lt;br /&gt;
&lt;br /&gt;
In loftemps.dat, there are a number of records, each being a 16x16 (I think) grid. Each element of the grid is either flagged on, or off. If you stack these grids one on top of the other, you have a 3D map, and the game uses this map to work out the shape of a tile.&lt;br /&gt;
&lt;br /&gt;
This means that a shot aimed at the lower section of a tree is likely to miss, because the trunk is thin; but a shot aimed at the higher portion of the tree is more likely to hit, because the tree is larger there.&lt;br /&gt;
&lt;br /&gt;
More specifically, if you fire a shot at a window, the bullet can go right through the gap, or it might clip the sides of the window.&lt;br /&gt;
&lt;br /&gt;
That is, although X-Com looks 2D, when it comes to working out where a bullet goes, it&#039;s all processed in 3D. I assume the same goes for working out what a unit can or can&#039;t see.&lt;br /&gt;
&lt;br /&gt;
- Bomb Bloke&lt;br /&gt;
&lt;br /&gt;
== 52: Footstep sound effect. ==&lt;br /&gt;
&lt;br /&gt;
Tiles with 0 value use the metal sound. Value 3 uses exactly same sounds as 6 (martian). There is one more possible vaule = 7, it uses footsteps that sound like on snow, although polar tiles use sand effect. Besides 4 and 7 there are no more unused footstep samples in the sound files.&lt;br /&gt;
I&#039;ll leave this info for someone familiar with wiki formatting, hope you don&#039;t mind.&lt;/div&gt;</summary>
		<author><name>83.19.21.106</name></author>
	</entry>
</feed>