Stendhal:Tileset specifications: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Kymara
Adding tiles to existing images: delete requirement to run updatemaps
imported>AntumDeluge
Interior walls: Add note about interior walls style mixtures
 
(23 intermediate revisions by 3 users not shown)
Line 7: Line 7:


The tilesets used for the maps are in tiled/tileset directory in the stendhal source. Give your image a descriptive name in lowercase letter and use underscore between words. You don't need to repeat information in the image name that's already given by the directory name. The current directory hierarchy is [[HowToUseTiledToCreateStendhalMaps#Tilesets|here]].
The tilesets used for the maps are in tiled/tileset directory in the stendhal source. Give your image a descriptive name in lowercase letter and use underscore between words. You don't need to repeat information in the image name that's already given by the directory name. The current directory hierarchy is [[HowToUseTiledToCreateStendhalMaps#Tilesets|here]].
* The license must be [http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GPL], or compatible, such as public domain.
* The license must be [http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GPL], or compatible, such as [https://creativecommons.org/licenses/by/4.0/ CC BY], [https://creativecommons.org/licenses/by-sa/4.0/ CC BY-SA], [https://opengameart.org/content/oga-by-30-faq OGA BY], [https://creativecommons.org/publicdomain/zero/1.0/ CC0], and public domain.
** More restrictive Creative Commons licenses, such as [https://creativecommons.org/licenses/by-nd/4.0/ CC BY-ND] and [https://creativecommons.org/licenses/by-nc/4.0/ CC BY-NC], are not compatible.
** Other compatible open source licenses, such as BSD and MIT, are allowed but not recommended.
* Tile size is <b>32x32</b> pixels. Therefore, the dimensions of all tilesets must be some multiple of 32.
* Tile size is <b>32x32</b> pixels. Therefore, the dimensions of all tilesets must be some multiple of 32.
* File format is PNG, 8 bits/color.
* File format is PNG, 8 bits/color.
** If the images have more than 256 colors, or include semi-transparent pixels, it is best to preserve them in RGB colorspace. Otherwise, converting the images to indexed color will reduce file size & help keep the client download smaller.
* Include the original layered version of the file, preferably as xcf.bz2, which [http://www.gimp.org/ GIMP] supports
* Include the original layered version of the file, preferably as xcf.bz2, which [http://www.gimp.org/ GIMP] supports.
* Use only fully opaque, or fully transparent pixels. Currently the client treats any semitransparent pixels as fully transparent, for performance reasons.
** An alternative to GIMP is [https://krita.org/ Krita], though not as widely used in the project.
* The client drops from full translucency to fully opaque and fully transparent pixels on slower systems. Using translucency is allowed, but the images must look passable with bitmask transparency too. It is possible to test the effect in the client, by choosing the desired transparency mode in the visual settings.
* <b>unlike</b> items, tile images do not use border lines
* <b>unlike</b> items, tile images do not use border lines


Line 20: Line 24:
Example of scaling north-south length in the well.
Example of scaling north-south length in the well.
=== Interior walls ===
=== Interior walls ===
Interior walls are viewed directly from above, <b>and</b> with faked distance effect. See the current wall images for examples.
<del>Interior walls are viewed directly from above, <b>and</b> with faked distance effect. See the current wall images for examples.</del>

''Currently, there is a mixture of styled interior walls. A format should eventually be decided upon & all tilesets/maps converted.''


== Light ==
== Light ==
Line 31: Line 37:
* <b>Never increase the width of an image, that is used by any map, and is higher than 1 tile!</b> The tiles would get renumbered, and every map using tiles from row 2 or below, would get broken.[[#Notes|[2] ]]
* <b>Never increase the width of an image, that is used by any map, and is higher than 1 tile!</b> The tiles would get renumbered, and every map using tiles from row 2 or below, would get broken.[[#Notes|[2] ]]
* You can add more rows to images, below the old ones.
* You can add more rows to images, below the old ones.
* Preferably do not change the size of images in the cvs, unless someone has already broken the cvs clients compatibility with the standard server. Many developers use the cvs client in the main server too, giving it more testing than it would get otherwise. Usually adding the images is not so urgent that it can not be postponed to a better moment.


== Other ==
== Other ==