aliens

Author Topic: XBase Terrain Condensed  (Read 3865 times)

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1510
    • View Profile
XBase Terrain Condensed
« on: April 29, 2019, 11:35:40 am »
Terrain is limited to 256 total tiles per map block set. In the vanilla game, there are only 95 tiles left unused for base facilities. This tool contains a rearrangement of tiles, removing several death tiles for objects which are rarely if ever destroyed, and moving all remaining death tiles outside the end of the 256 tile limit. This removes 32 tiles and pushes 15 tiles off the end, increasing the number of tiles you can add by 47, to a total of 142 tiles, almost a 50% increase. The tile removal should not significantly affect gameplay.

WARNING!!
This tool must be used with care. You must follow the given instructions for adding tiles and facilities. This tool does NOT play well with other mods which affect base facilities or base defense tilesets.


INSTRUCTIONS FOR USE:
You can install this tool like a standard mod and play it with Vanilla X-Com just fine. To add tiles or edit maps, you'll need a proper tool for those, which you can look up in the "Tools" forum of the OpenXcom forums. You can also find instructions there or in the "Help" forum.

If you wish to add your own tiles, you can edit the XBASE0.MCD and XBASEADD.MCD files, and place your tiles in any of the spaces marked RESERVED. Tiles which do not have a corresponding death tile should be placed into XBASEADD.MCD. Tiles which do have a corresponding death tile should be placed into XBASE0.MCD. Place the original tile in one of the reserved spaces, and then add a tile at the end of the list for your death tile.

If you wish to add tiles from existing .MCDs, you should carefully copy those tiles with their graphics into the provided reserved spaces.

IMPORTANT: Make sure you maintain the tile numbers. XBASE2_1 is 80 tiles in length (0-79); XBASEADD is 100 tiles in length (0-99), and the last usable tile in XBASE0 is 73 (the 74th tile, blue floor). This makes 254 tiles. These plus the two from BLANKS.MCD make the 256 tiles you are limited to. If you insert or remove tiles, you must be careful to make sure the counts all add up to 256, including two for BLANKS.MCD. If you need more tiles with corresponding death tiles, you can remove some tiles from XBASEADD and insert the same number into the beginning of XBASE0. Be careful not to push the size of any of the .PCK files to greater than 63kb, or it'll crash.

If you load up existing maps with these tilesets, the tiles will be all mixed up. You can tediously fix them by hand if you want to, or you can try to redesign new map blocks instead. If you choose to fix existing maps, it helps to get a screenshot of the map working correctly to use as a reference. This tool comes with the vanilla XBASE maps fixed for the rearranged tiles. I may add some more maps at a later date, such as Dioxine's or XOps' facility maps. If you fix any maps, I encourage you to attach them in a post here so that other modders can access them. Include in your post any special instructions that may apply.

Please use this tool for megamods or total conversions only. And if you do use it for a smaller mod that you publish, then you must offer a warning that your mod won't work well with other mods that affect maps or textures in base defense missions.

Offline TBeholder

  • Sergeant
  • **
  • Posts: 40
    • View Profile
Re: XBase Terrain Condensed
« Reply #1 on: December 12, 2022, 03:43:49 pm »
Two questions:
1. What tool was in the preview screenshot?
2. If you want to reduce base tiles, and maps need to be remade anyway, why not reduce 12 tiles of laser/plasma/fusionball defenses tiles to 7?
4 common floor quarters overlaid on floor (with the same 4 death tiles overlaid on broken floor too) + 1 for each object. Because the object part is pixel-by-pixel identical across each set, and the 4-part pods under them are identical for plasma and fusionball; for laser close enough, seems an earlier version.

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1510
    • View Profile
Re: XBase Terrain Condensed
« Reply #2 on: December 13, 2022, 01:33:20 pm »
Two questions:
1. What tool was in the preview screenshot?
2. If you want to reduce base tiles, and maps need to be remade anyway, why not reduce 12 tiles of laser/plasma/fusionball defenses tiles to 7?
4 common floor quarters overlaid on floor (with the same 4 death tiles overlaid on broken floor too) + 1 for each object. Because the object part is pixel-by-pixel identical across each set, and the 4-part pods under them are identical for plasma and fusionball; for laser close enough, seems an earlier version.
1.) Mapview 1
2.) I hadn't thought of that, good idea.
Perhaps eventually I will make a second version of this which compresses the tile count further.