{"action":"created","issue":{"url":"https://api.github.com/repos/bitcraft/PyTMX/issues/63","labels_url":"https://api.github.com/repos/bitcraft/PyTMX/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/bitcraft/PyTMX/issues/63/comments","events_url":"https://api.github.com/repos/bitcraft/PyTMX/issues/63/events","html_url":"https://github.com/bitcraft/PyTMX/issues/63","id":111528075,"number":63,"title":"ValueError in load_pygame","user":{"login":"freeDom-","id":8478350,"avatar_url":"https://avatars.githubusercontent.com/u/8478350?v=3","gravatar_id":"","url":"https://api.github.com/users/freeDom-","html_url":"https://github.com/freeDom-","followers_url":"https://api.github.com/users/freeDom-/followers","following_url":"https://api.github.com/users/freeDom-/following{/other_user}","gists_url":"https://api.github.com/users/freeDom-/gists{/gist_id}","starred_url":"https://api.github.com/users/freeDom-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeDom-/subscriptions","organizations_url":"https://api.github.com/users/freeDom-/orgs","repos_url":"https://api.github.com/users/freeDom-/repos","events_url":"https://api.github.com/users/freeDom-/events{/privacy}","received_events_url":"https://api.github.com/users/freeDom-/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-15T01:43:57Z","updated_at":"2015-10-15T18:00:13Z","closed_at":"2015-10-15T18:00:13Z","body":"There seems to be a problem with floating point numbers in the object layers `x`, `y`, `width` or `height` attribute.. The error disappeared after I manually rounded all of the floats inside the tmx-file:\r\n\r\nTraceback (most recent call last):\r\n  File \"C:\\Python35\\lib\\site-packages\\pytmx\\util_pygame.py\", line 112, in load_pygame\r\n    return pytmx.TiledMap(filename, *args, **kwargs)\r\n  File \"C:\\Python35\\lib\\site-packages\\pytmx\\pytmx.py\", line 258, in __init__\r\n    self.parse_xml(ElementTree.parse(self.filename).getroot())\r\n  File \"C:\\Python35\\lib\\site-packages\\pytmx\\pytmx.py\", line 286, in parse_xml\r\n    self.add_layer(TiledObjectGroup(self, subnode))\r\n  File \"C:\\Python35\\lib\\site-packages\\pytmx\\pytmx.py\", line 1013, in __init__\r\n    self.parse_xml(node)\r\n  File \"C:\\Python35\\lib\\site-packages\\pytmx\\pytmx.py\", line 1023, in parse_xml\r\n    for child in node.findall('object'))\r\n  File \"C:\\Python35\\lib\\site-packages\\pytmx\\pytmx.py\", line 1023, in <genexpr>\r\n    for child in node.findall('object'))\r\n  File \"C:\\Python35\\lib\\site-packages\\pytmx\\pytmx.py\", line 945, in __init__\r\n    self.parse_xml(node)\r\n  File \"C:\\Python35\\lib\\site-packages\\pytmx\\pytmx.py\", line 965, in parse_xml\r\n    self.set_properties(node)\r\n  File \"C:\\Python35\\lib\\site-packages\\pytmx\\pytmx.py\", line 177, in set_properties\r\n    self.cast_and_set_attributes_from_node_items(node.items())\r\n  File \"C:\\Python35\\lib\\site-packages\\pytmx\\pytmx.py\", line 153, in cast_and_set_attributes_from_node_items\r\n    casted_value = types[key](value)\r\nValueError: invalid literal for int() with base 10: '80.25'\r\n"},"comment":{"url":"https://api.github.com/repos/bitcraft/PyTMX/issues/comments/148473543","html_url":"https://github.com/bitcraft/PyTMX/issues/63#issuecomment-148473543","issue_url":"https://api.github.com/repos/bitcraft/PyTMX/issues/63","id":148473543,"user":{"login":"freeDom-","id":8478350,"avatar_url":"https://avatars.githubusercontent.com/u/8478350?v=3","gravatar_id":"","url":"https://api.github.com/users/freeDom-","html_url":"https://github.com/freeDom-","followers_url":"https://api.github.com/users/freeDom-/followers","following_url":"https://api.github.com/users/freeDom-/following{/other_user}","gists_url":"https://api.github.com/users/freeDom-/gists{/gist_id}","starred_url":"https://api.github.com/users/freeDom-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeDom-/subscriptions","organizations_url":"https://api.github.com/users/freeDom-/orgs","repos_url":"https://api.github.com/users/freeDom-/repos","events_url":"https://api.github.com/users/freeDom-/events{/privacy}","received_events_url":"https://api.github.com/users/freeDom-/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T18:00:13Z","updated_at":"2015-10-15T18:00:13Z","body":"Working like a charm! Thx for the fast fix and generally for your great work with the packages!"}}