{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFlixel/flixel-addons/issues/209","labels_url":"https://api.github.com/repos/HaxeFlixel/flixel-addons/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFlixel/flixel-addons/issues/209/comments","events_url":"https://api.github.com/repos/HaxeFlixel/flixel-addons/issues/209/events","html_url":"https://github.com/HaxeFlixel/flixel-addons/issues/209","id":117023298,"number":209,"title":"TiledMap does not parse csv correctly.","user":{"login":"MintPaw","id":555639,"avatar_url":"https://avatars.githubusercontent.com/u/555639?v=3","gravatar_id":"","url":"https://api.github.com/users/MintPaw","html_url":"https://github.com/MintPaw","followers_url":"https://api.github.com/users/MintPaw/followers","following_url":"https://api.github.com/users/MintPaw/following{/other_user}","gists_url":"https://api.github.com/users/MintPaw/gists{/gist_id}","starred_url":"https://api.github.com/users/MintPaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MintPaw/subscriptions","organizations_url":"https://api.github.com/users/MintPaw/orgs","repos_url":"https://api.github.com/users/MintPaw/repos","events_url":"https://api.github.com/users/MintPaw/events{/privacy}","received_events_url":"https://api.github.com/users/MintPaw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HaxeFlixel/flixel-addons/labels/Bug","name":"Bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-15T22:24:47Z","updated_at":"2015-12-24T12:13:15Z","closed_at":"2015-12-24T12:13:15Z","body":"TiledMap parses an extra tile of width when using loadMapFromCSV\r\nExample load:\r\n<code>_tilemap.loadMapFromCSV(cast(tiledMap.layers[0], TiledTileLayer).csvData, ...);</code>\r\n\r\nThe problem is that Tiled csv looks like this: http://pastebin.com/MeTu0eYN\r\nAnd Flixel CSV is expected to look like this: http://pastebin.com/vezbBnwk\r\nNote the extra comma on the end of each tile row from line 8 to line 28.\r\n\r\nThis causes FlxTilemap to load an extra tile there with value 0. Changing the tilemap to the expected format fixes the problem, although obviously the map fails to load in the Tiled editor.\r\n\r\nIt's a hard bug to spot, I noticed it when setting my camera scroll bounds, they have to be:\r\n<code>\r\nFlxG.camera.setScrollBoundsRect(0, 0, _tilemap.width - tileWidth, _tilemap.height, true);\r\n</code>\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/HaxeFlixel/flixel-addons/issues/comments/167102917","html_url":"https://github.com/HaxeFlixel/flixel-addons/issues/209#issuecomment-167102917","issue_url":"https://api.github.com/repos/HaxeFlixel/flixel-addons/issues/209","id":167102917,"user":{"login":"Gama11","id":2620907,"avatar_url":"https://avatars.githubusercontent.com/u/2620907?v=3","gravatar_id":"","url":"https://api.github.com/users/Gama11","html_url":"https://github.com/Gama11","followers_url":"https://api.github.com/users/Gama11/followers","following_url":"https://api.github.com/users/Gama11/following{/other_user}","gists_url":"https://api.github.com/users/Gama11/gists{/gist_id}","starred_url":"https://api.github.com/users/Gama11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gama11/subscriptions","organizations_url":"https://api.github.com/users/Gama11/orgs","repos_url":"https://api.github.com/users/Gama11/repos","events_url":"https://api.github.com/users/Gama11/events{/privacy}","received_events_url":"https://api.github.com/users/Gama11/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T12:13:15Z","updated_at":"2015-12-24T12:13:15Z","body":"Same issue as HaxeFlixel/flixel#1520."}}