Freeciv

Editing

How to update a tileset from 2.4 to 2.5

1
  • The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit. If you are undoing an edit that is …
Latest revision Your text
Line 44: Line 44:
   
 
===Full height in non-iso Hex tilesets===
 
===Full height in non-iso Hex tilesets===
Non-iso Hex tilesets had excessively high Full height meaning that origin of some sprites was far above the tile's top and thus tilesets needed a lot of transparent padding on top part of those sprites. Now Full height in non-iso Hex tilesets is same as Normal height defined in .tilespec. The old formula was <i>3 * normal_tile_height / 2</i>. If you had origin of the sprites set to match old code, you should now remove <i>1/2 * normal tile height</i> pixels from the top of them to make their height match normal tile height. Remember also to change grid <i>dy</i> value to match in .spec file. For example hex2t tileset with normal_tile_height defined as 72 in the tilespec needed 36 pixels cut from the affected sprites that earlier were 108. Sprites affected are cities and all the smaller icons such as hitpoint bars, unit activity icons, city size indicators. Units and terrains are not.
+
Non-iso Hex tilesets had excessively high Full height meaning that origin of some sprites was far above the tile's top and thus tilesets needed a lot of transparent padding on top part of those sprites. Now Full height in non-iso Hex tilesets is same as Normal height defined in .tilespec. The old formula was <i>3 * normal_tile_height / 2</i>. If you had origin of the sprites set to match old code, you should now remove <i>1/2 * normal tile height</i> pixels from the top of them to make their height match normal tile height. Remember also change grid <i>dy</i> value to match in .spec file. For example hex2t tileset with normal_tile_height defined as 72 in the tilespec needed 36 pixels cut from the affected sprites that earlier were 108. Sprites affected are cities and all the smaller icons such as hitpoint bars, unit activity icons, city size indicators. Units and terrains are not.
   
 
===Default government icons===
 
===Default government icons===
Line 59: Line 59:
   
 
===Adding mine_sprite for all terrain types===
 
===Adding mine_sprite for all terrain types===
Supplied tilesets now define '''mine_sprite''' for all [tile] -sections referring to land terrains, to be compatible with custom rulesets that enable mines on terrains where supplied rulesets don't. You may want to do the same for your tileset if you have inherited it from the supplied ones, and is thus lacking some '''mine_sprite''' entries.
+
Supplied tilesets now define '''mine_sprite''' for all [tile] -sections referring to land terrains, to be compatible with custom rulesets that enable mines on terrains where supplied rulesets dont. You may want to do the same for your tileset if you have inherited it from the supplied ones, and is
  +
thus lacking some '''mine_sprite''' entries.
   
 
===Name of the preferred themes entry===
 
===Name of the preferred themes entry===
  Loading editor
Below are some commonly used wiki markup codes. Simply click on what you want to use and it will appear in the edit box above.

View this template