Line 834: |
Line 834: |
| | | |
| ==Potential issues== | | ==Potential issues== |
| + | ===Map tilesheet order=== |
| + | When you replace a vanilla map, '''don't''' change the order or IDs of the original tilesheets. Prefix new tilesheet IDs with <code>z_</code> to avoid changing the original order. |
| + | |
| + | ; Why this causes problems |
| + | : For example, let's say you replace a map which normally has these tilesheets in Tiled: |
| + | : [[File:Tiled tileset order A.png|thumb|none|The original tilesheet order.]] |
| + | |
| + | : When you add a new tilesheet, note that the order changes from ''[paths, untitled tile sheet]'' to ''[customSheet, paths, untitled tile sheet]'': |
| + | : [[File:Tiled tileset order B.png|thumb|none|'''Wrong''' way to add a new tilesheet (changes the original order).]] |
| + | |
| + | : If the game tries to access a tile from the first tilesheet, it will get it from <tt>customSheet</tt> instead of the expected <tt>Paths</tt> tilesheet. That can cause anything from visual glitches (e.g. showing the wrong tile images) to outright crashes (especially if the new tilesheet is smaller than the one it expected). |
| + | |
| + | : To avoid that, always keep the original tilesheets in the same order and prefix new tilesheets with <code>z_</code> so they're added at the end: |
| + | : [[File:Tiled tileset order C.png|thumb|none|Correct way to add a new tilesheet.]] |
| + | |
| + | ; How to fix a tilesheet ID |
| + | : If you need to rename a tilesheet in Tiled: |
| + | <gallery style="margin-left: 2em;"> |
| + | File:Tiled rename tileset A.png|In the tileset pane, click the tab for the tileset and then click the edit icon. |
| + | File:Tiled rename tileset B.png|Click ''Tileset > Tileset Properties'' from the top menu to show the properties pane. |
| + | File:Tiled rename tileset C.png|Change the name in the ''Name'' field. |
| + | </gallery> |
| + | |
| ===Map-specific requirements=== | | ===Map-specific requirements=== |
| The game makes some assumptions about maps which may break for modded maps. These are the known issues: | | The game makes some assumptions about maps which may break for modded maps. These are the known issues: |