User:Off the Rails

From UFOpaedia
Revision as of 23:26, 10 February 2011 by Off the Rails (talk | contribs)
Jump to navigation Jump to search

Slightly mad idea #1

In UFO's MAPS directory are a few files that never crop up in the game. What could they be? The files are

I reckon it's possible to get some idea of what these files look like. I reason thusly:

We know that X-Com constructs its map files like this: First of all, the relevant MCD files are strung together, one after another. Each MCD file is a list of objects that appear on the map - all the walls, the doors, the different kinds of floor and the objects that litter the battlescape - trees and gas pumps and tables and the like.

So the game constructs an MCD Array and then treats it like a Chinese menu - I'll have a 55, some 81s and a couple of 108s please, and have you got any of those crispy beef things?

Every MCD Array created by the game starts with the contents of BLANKS.MCD - a simple pair of objects indicating empty space and burnt ground, respectively. Any map tile that appears to be empty in fact contains BLANKS000, and any time you demolish the floor with a blaster bomb, that charred brown patch left behind is in fact BLANKS001.

When constructing the battlescape, the game "orders" items from its MCD Array "menu". Starting from the northwestern tile on the top level, it places the ground, western wall, northern wall and

The fantastic thing is, you don't actually need a menu to order Chinese food. You can just pick some random numbers and you're guaranteed to get SOMETHING. If we assume that these unused .MAP files are intended to work with an MCD Array that begins with BLANKS000, we can extend this assumption a bit - any byte that is 00 can be assumed to refer to BLANKS000, and any byte that is anything else up to FF means there is an object, wall or patch of ground in this tile.

I've created a spreadsheet that takes .MAP data exports from Hex Workshop and shows the arrangement of ground tiles, walls and objects within the map. Grab it here.

Of course, only a complete tool would try to use Microsoft Excel as an art program, right?

Map3.png

Er... right.

The limitations are obvious - while we can tell that there is an object in a particular tile, we have no way of knowing which object to put there. So we can't actually play these maps yet. But at least we can get a rough idea of what they look like.