WALKTRU: Tileset a New Road - EASY! 8 minutes!

Post Reply
Stratego (dev)
Site Admin
Posts: 7368
Joined: Fri Apr 25, 2014 9:28 pm

WALKTRU: Tileset a New Road - EASY! 8 minutes!

Post by Stratego (dev) » Sun Aug 26, 2018 6:16 pm

Here is show you how easy to put in a new terrain if that has a very similar terrain in game already.

i will duplicate and make this grass-dirtroad terrain tieset into snow version:
terrain_road_dirt.png
terrain_road_dirt.png (27.27 KiB) Viewed 149 times
SUPER EASY!

1. copy and modify the existing image

Simply change the new image to snow terrain (it is not THAT nice, so if anyone offers to polish it - please do so!)
terrain_road_snowdirt.png
terrain_road_snowdirt.png (9.84 KiB) Viewed 149 times
2. now simply duplicate and translate the snow-dirtroad ID-s

- i simply copied the original that was in ID range of 7100-7199
- and updated all values 71 values to 72 - so i got tiles in 7200-7199 range

Code: Select all

            {
	       "id":7100,
	       "imgName":"terrain_road_dirt.png",
  	       "imgTilesetColumnCount":8,
	       "imgTilesetPosition":0,
	       "imgTilesetPositionRange":"+6",
	       "imgTilesetTileSize":32,
	       "imgColumns":1,         
	       "layer":"TERRAIN",
	       "terrainClassName":"road"
            },
 	    {
               "id":7108,
               "imgTilesetPosition":8,
               "imgTilesetPositionRange":"+3",
               "terrainClassName":"road"
            },  
 	    {
               "id":7116,
               "imgTilesetPosition":16,
               "imgTilesetPositionRange":"+3",
               "terrainClassName":"road"
            },
            {
	       "id":7200,
	       "imgName":"terrain_road_snowdirt.png",
  	       "imgTilesetColumnCount":8,
	       "imgTilesetPosition":0,
	       "imgTilesetPositionRange":"+6",
	       "imgTilesetTileSize":32,
	       "imgColumns":1,         
	       "layer":"TERRAIN",
	       "terrainClassName":"road"
            },
 	    {
               "id":7208,
               "imgTilesetPosition":8,
               "imgTilesetPositionRange":"+3",
               "terrainClassName":"road"
            },  
 	    {
               "id":7216,
               "imgTilesetPosition":16,
               "imgTilesetPositionRange":"+3",
               "terrainClassName":"road"
            }
3. now simply duplicate and translate the snow-dirtroad autotile definitions

- i simply copied all things refenrencing the dirt
- and updated all values 71 values to 72

Code: Select all

    "nicedirtroad-7100,7101,7102,7103,7104,7105,7106,7108,7109,7110,7111,7116,7117,7118,7119",
    "nicesnowdirtroad-7200,7201,7202,7203,7204,7205,7206,7208,7209,7210,7211,7216,7217,7218,7219",

Code: Select all


   {

      "id": 7100,
      "comment": "nicedirtroad-grass definitions",

      "insteadofTiles": {

        "grass": {

          "byteTileRel": [

            "0x1x1x0x-7100",
            "0x1x0x1x-7111",
            "1x1x0x0x-7102",
            "1x0x1x0x-7105",
            "1x1x1x1x-7109",
            "0x0x1x1x-7116",
            "1x0x0x1x-7118",
            "1x0x1x1x-7117",
            "0x1x1x1x-7108",
            "1x0x0x0x-7106",
            "0x0x0x1x-7119",
            "1x1x0x1x-7110",
            "1x1x1x0x-7101",
            "0x1x0x0x-7103",
            "0x0x1x0x-7104"

          ]
        }

      }
    },
        
   {

      "id": 7200,
      "comment": "nicesnowdirtroad-snow definitions",

      "insteadofTiles": {

        "snow": {

          "byteTileRel": [

            "0x1x1x0x-7200",
            "0x1x0x1x-7211",
            "1x1x0x0x-7202",
            "1x0x1x0x-7205",
            "1x1x1x1x-7209",
            "0x0x1x1x-7216",
            "1x0x0x1x-7218",
            "1x0x1x1x-7217",
            "0x1x1x1x-7208",
            "1x0x0x0x-7206",
            "0x0x0x1x-7219",
            "1x1x0x1x-7210",
            "1x1x1x0x-7201",
            "0x1x0x0x-7203",
            "0x0x1x0x-7204"

          ]
        }

      }
    },    

and THAT IS ALL you are ready! it took about 8 minutes!

Post Reply

Return to “Terrains and Graphic Design”