Page 1 of 1

Modding Tile Borders

PostPosted: Tue Jan 23, 2018 9:08 am
by skymarshall
Has anyone had any success adding new tile borders?

On the instructions here (http://curious-expedition.wikia.com/wiki/Modding:Tiles), it says that we should have an entry like this:

Code: Select all
{
  id: tl-pit-desert
  ..
  borderSprites: [
    [res_tileBorder_dry_n_1.png]
    [res_tileBorder_dry_ne_1.png]
  ]
 ..
}


However, in the game assets, it looks as though tile borders are referenced using an ID instead:

Code: Select all
  {
    id: tl-pit-desert
    ..
    borderImgIdx: 11
    ..
}


I've made 6 new 32x30 border sprites (just a simple recolour of the chasm border) and am trying to associate them with a new chasm tile for corrupted lands. I add my new sprites like this:

Code: Select all
   {
      id: res_tileBorder_corruptedChasm_n_1.png
      file: ExtendedExpedition/img/res_tileBorder_corruptedChasm_n_1.png
   }   
   {
      id: res_tileBorder_corruptedChasm_ne_1.png
      file: ExtendedExpedition/img/res_tileBorder_corruptedChasm_ne_1.png
   }   
   {
      id: res_tileBorder_corruptedChasm_se_1.png
      file: ExtendedExpedition/img/res_tileBorder_corruptedChasm_se_1.png
   }   
   {
      id: res_tileBorder_corruptedChasm_s_1.png
      file: ExtendedExpedition/img/res_tileBorder_corruptedChasm_s_1.png
   }   
   {
      id: res_tileBorder_corruptedChasm_sw_1.png
      file: ExtendedExpedition/img/res_tileBorder_corruptedChasm_sw_1.png
   }
   {
      id: res_tileBorder_corruptedChasm_nw_1.png
      file: ExtendedExpedition/img/res_tileBorder_corruptedChasm_nw_1.png
   }      

I then tried using borderSprites to reference these in my new chasm tile definition, but with no success. I'm guessing that I should be ignoring the wiki and that I should really be using borderImgIdx as in-game assets do. But, I don't know how to assign an index to my border sprites.

Has anyone else had any luck, and if so could you post up the image definitions and references you used?