{"action":"closed","issue":{"url":"https://api.github.com/repos/photonstorm/phaser/issues/2669","repository_url":"https://api.github.com/repos/photonstorm/phaser","labels_url":"https://api.github.com/repos/photonstorm/phaser/issues/2669/labels{/name}","comments_url":"https://api.github.com/repos/photonstorm/phaser/issues/2669/comments","events_url":"https://api.github.com/repos/photonstorm/phaser/issues/2669/events","html_url":"https://github.com/photonstorm/phaser/issues/2669","id":168134507,"number":2669,"title":"[Feature Request] Display an error when trying to load tilemaps with external tilesets","user":{"login":"noidexe","id":526829,"avatar_url":"https://avatars0.githubusercontent.com/u/526829?v=3","gravatar_id":"","url":"https://api.github.com/users/noidexe","html_url":"https://github.com/noidexe","followers_url":"https://api.github.com/users/noidexe/followers","following_url":"https://api.github.com/users/noidexe/following{/other_user}","gists_url":"https://api.github.com/users/noidexe/gists{/gist_id}","starred_url":"https://api.github.com/users/noidexe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noidexe/subscriptions","organizations_url":"https://api.github.com/users/noidexe/orgs","repos_url":"https://api.github.com/users/noidexe/repos","events_url":"https://api.github.com/users/noidexe/events{/privacy}","received_events_url":"https://api.github.com/users/noidexe/received_events","type":"User","site_admin":false},"labels":[{"id":35633147,"url":"https://api.github.com/repos/photonstorm/phaser/labels/feature%20request","name":"feature request","color":"84b6eb","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-28T16:07:30Z","updated_at":"2017-04-20T12:43:43Z","closed_at":"2017-04-20T12:43:43Z","body":"Tiled gives you the option to export a tileset as a tsx or json file. This allows you to define tileset properties once and have them shared across many tilemaps. \n\nA Tilemap exported as a json file using external maps will only contain a fistgid and a \"source\"  property for the tileset. This confuses phaser which expects to be able to load all tile properties and info from the tilemap.json file. \n\nWhile support for external tilesets would be nice, I think phaser should at least be able to throw a descriptive error when you try to load a json tilemap with external tilesets.\n\nHere's a diff of a tilemap.json with and without external tilesets:\n\n``` diff\n95d94\n<          \"columns\":8,\n97,391c96\n<          \"image\":\"..\\/..\\/rawassets\\/LEVELS\\/img\\/bgtiles.png\",\n<          \"imageheight\":252,\n<          \"imagewidth\":336,\n<          \"margin\":0,\n<          \"name\":\"bgtiles\",\n<          \"spacing\":0,\n<          \"tilecount\":48,\n<          \"tileheight\":42,\n<          \"tileproperties\":\n<             {\n<              \"0\":\n<                 {\n<                  \"type\":\"default\"\n<                 },\n<              \"1\":\n<                 {\n<                  \"type\":\"default\"\n<                 },\n<              \"10\":\n<                 {\n<                  \"type\":\"default\"\n<                 },\n<              \"11\":\n<                 {\n<                  \"type\":\"sticky\"\n<                 },\n<              \"12\":\n<                 {\n<                  \"type\":\"doorON\"\n<                 },\n<              \"13\":\n<                 {\n<                  \"type\":\"default\"\n<                 },\n<              \"14\":\n<                 {\n<                  \"type\":\"doorOFF\"\n<                 },\n<              \"15\":\n<                 {\n<                  \"type\":\"crumbly\"\n<                 },\n<              \"16\":\n<                 {\n<                  \"type\":\"default\"\n<                 },\n<              \"17\":\n<                 {\n<                  \"type\":\"default\"\n<                 },\n<              \"18\":\n<                 {\n<                  \"type\":\"default\"\n<                 },\n<              \"2\":\n<                 {\n<                  \"type\":\"default\"\n<                 },\n<              \"21\":\n<                 {\n<                  \"type\":\"timed\"\n<                 },\n<              \"22\":\n<                 {\n<                  \"type\":\"spike\"\n<                 },\n<              \"24\":\n<                 {\n<                  \"type\":\"switch\"\n<                 },\n<              \"25\":\n<                 {\n<                  \"type\":\"onoff\"\n<                 },\n<              \"26\":\n<                 {\n<                  \"type\":\"switch\"\n<                 },\n<              \"27\":\n<                 {\n<                  \"type\":\"onoff\"\n<                 },\n<              \"28\":\n<                 {\n<                  \"type\":\"lava\"\n<                 },\n<              \"29\":\n<                 {\n<                  \"type\":\"spike\"\n<                 },\n<              \"3\":\n<                 {\n<                  \"type\":\"default\"\n<                 },\n<              \"31\":\n<                 {\n<                  \"type\":\"spike\"\n<                 },\n<              \"32\":\n<                 {\n<                  \"type\":\"switch\"\n<                 },\n<              \"33\":\n<                 {\n<                  \"type\":\"onoff\"\n<                 },\n<              \"34\":\n<                 {\n<                  \"type\":\"switch\"\n<                 },\n<              \"35\":\n<                 {\n<                  \"type\":\"onoff\"\n<                 },\n<              \"36\":\n<                 {\n<                  \"type\":\"lava\"\n<                 },\n<              \"37\":\n<                 {\n<                  \"type\":\"hijump\"\n<                 },\n<              \"38\":\n<                 {\n<                  \"type\":\"spike\"\n<                 },\n<              \"4\":\n<                 {\n<                  \"type\":\"sticky\"\n<                 },\n<              \"5\":\n<                 {\n<                  \"type\":\"sticky\"\n<                 },\n<              \"6\":\n<                 {\n<                  \"type\":\"sticky\"\n<                 },\n<              \"7\":\n<                 {\n<                  \"type\":\"crumbly\"\n<                 },\n<              \"8\":\n<                 {\n<                  \"type\":\"default\"\n<                 },\n<              \"9\":\n<                 {\n<                  \"type\":\"default\"\n<                 }\n<             },\n<          \"tilepropertytypes\":\n<             {\n<              \"0\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"1\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"10\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"11\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"12\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"13\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"14\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"15\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"16\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"17\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"18\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"2\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"21\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"22\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"24\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"25\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"26\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"27\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"28\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"29\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"3\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"31\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"32\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"33\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"34\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"35\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"36\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"37\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"38\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"4\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"5\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"6\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"7\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"8\":\n<                 {\n<                  \"type\":\"string\"\n<                 },\n<              \"9\":\n<                 {\n<                  \"type\":\"string\"\n<                 }\n<             },\n<          \"tilewidth\":42\n\n---\n>          \"source\":\"..\\/..\\/rawassets\\/LEVELS\\/bgtiles.tsx\"\n```\n"}}
{"actor":{"display_login":"photonstorm"}}