Requires an image editing tool (paint, gimp, photoshop, etc) and a text file editor (Beforehand, be sure you copy the whole tileset directory somewhere so you can restart in the case you mess anything).
- First step is to inform the game about the new tile size. Go to your tileset directory (For this one would be gfx/RagaTileset/) and open “tile_config.json” with your text editor. The first lines look like this:
{
"tile_info":
[
{
"height": 32,
"width": 32
}
],
"tiles":
[
{
"id":"corpse",
"fg":274,
"rotates":false
},
As you can guess you need to change the height and width parameters from 32 to 24. Once you do, the game will split the base image into 24x24 pixels sections (Watch the commas, parethesis and brackets… DO NOT change them. JSON files are quite strict and if you remove any of them, the game will welcome you with a nice blank screen and an error message. Later can be a pain to locate were the freaking comma is needed… So it’s better to be careful in advance
). Save replacing the original “tiles_config.json” file.
- Now you need to reduce the scale of the gfx image (In the case of this set is in the same directory and named “ragatiles.png”). The resizing operation is simple but the final results depend on the quality of the filters selected by the editing tool you use. You need to calculate the final size of the whole image which is a straight linear calculation (I’m using the actual size of ragatiles, but the process is the same for any other tileset with any dimensions for as long as they contain whole cells… If you have to deal with a base image that contains borders you will need to truncate any floating number in the following calculations and, OFC, cut the borders leaving only the real cells on your editing tool):
Ragatiles.png is 512 pixels wide and 4128 pixels high with 32x32 pixels’ cells. Well, to go for 24x24 pixels’ cells the new image has to be:
( 512 / 32 ) x 24 width -> 16 x 24 = 384 pixels wide.
And:
(4128 / 32 ) x 24 height -> 129 x 24 = 3096 pixels high.
So your new image has to be reduced from 512x4128 to 384x3096.
- The final step details depend HEAVILY on the image editing tool you use. Without knowing the one you have available I can’t be more precisse but I will try to explain the conceptual instructions:
-
Load the gfx file (For this tileset is “ragatiles.png”).
-
Locate the image size change dialog/option. BE SURE you check for any options about “filters” or “reduction algorithms”. They control basically the final looks of the reduced image as there are different mathematical ways to deal with the tough case of what to do when you have to combine nearby pixels into a single one. Experiment with the different options (if you have) as the resulting image’s looks will change a lot.
-
Insert on the image size change dialog the height and width you calculated beforehand and be sure you deactivate any option that, instead of reducing, cuts the image.
-
After you are satisfied with the results be sure that you save the image in .png format (replacing the original one).
As a personal taste note, reducing this tileset can work on terrain, vehicles & monsters tiles but, for example, they will cripple most weapons and small items unique looks (books a good example). As you are not the 1st one asking for a smaller set, once we reach 100% completion I will study the possibility of adapting this set for other sizes but can’t promise anything solid for now.