Stendhal:Tileset specifications: Difference between revisions

Jump to navigation Jump to search
mention 'ant updatemaps'
(added some notes about adding new tiles to old images)
(mention 'ant updatemaps')
Line 31: Line 31:
* <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.
* When you change the size of an old tileset image, you need to run <b>'ant updatemaps'</b>. Alternatively you can load and save all the maps that use that particular image in the map editor. [[#Notes|[3] ]]
* 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 ==
Line 42: Line 44:
== Notes ==
== Notes ==
[1] There are valid reasons to break most rules, but do not break a rule unless you understand the reason for it (and, by extension, the reason why it does not apply to your particular image).<br>
[1] There are valid reasons to break most rules, but do not break a rule unless you understand the reason for it (and, by extension, the reason why it does not apply to your particular image).<br>
[2] Strictly speaking, it's possible to add to the width too, while keeping the tile numbering constant. Don't do that unless you really know what you are doing.
[2] Strictly speaking, it's possible to add to the width too, while keeping the tile numbering constant. Don't do that unless you really know what you are doing.<br>
[3] It's also possible to run MapUpdater.class on the relevant maps, either manually, or with a script. If you don't know how to do this, just use 'ant updatemaps'.


[[Category:Development]]
[[Category:Development]]
[[Category:Stendhal]]
[[Category:Stendhal]]

Navigation menu