Using custom tile sets in Mac Angband variants

  1. Convert the graphics file to PICT format. Most of the tile sets will be in .bmp format. A few will be in .gif format. To convert to PICT format, use a conversion utility such as Imagery 1.9 (my choice) or GraphicConverter.

  2. Examine the PICT file. Use a graphics program to examine the PICT file. Check to see that the tiles look OK. Get the size of the graphics file in pixels if you haven't already done so. Note the size of the tile, and the number of rows and columns of tiles. Divide the height or width of the file by the tile size to get these numbers.

  3. Paste the PICT file into the resource file (using ResEdit). Copy the PICT into the Clipboard. Open the Angband.º.rsrc file that comes with the ext-mac folder with ResEdit. Double-click the PICT resource. Paste in the new tile set. Remove the old tile set. Click on the new tile set, and using "Get Resource Info..." change the ID number to that of the original tile set (usually 1001). Close the resource file, saving changes.

  4. Edit the main-mac.c file. Open the main-mac.c file. Find kPictRows. This should bring up a series of constants defining the tile height and width and the number of tile columns and rows in the PICT file. Change these values to match the new tile set. Close main-mac.c, saving changes.

  5. Check the :lib:user folder. Open the user subfolder of the lib folder. Open the graf-mac.prf file. If it contains mappings of items/monsters/terrains to tiles, check if they match up correctly. Usually if the file has the extra items/monsters/terrains of the variant they will match. If it just points to the graf-xxx.prf file, open the graf-xxx.prf file and check that. If you want to be really sure, here is an explanation of how to read the .prf files. If the .prf file does not match up, look for a graf-new.prf file. If such does not exist, your best bet is to contact the author.

  6. Compile and test the graphics. Pretty self-explanatory. Turn on the graphics and make sure it causes no problems. Play a bit with it to make sure that everything matches up OK.

Back to my Home Page.