{"action":"created","issue":{"url":"https://api.github.com/repos/PartyPlanner64/PartyPlanner64/issues/20","repository_url":"https://api.github.com/repos/PartyPlanner64/PartyPlanner64","labels_url":"https://api.github.com/repos/PartyPlanner64/PartyPlanner64/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/PartyPlanner64/PartyPlanner64/issues/20/comments","events_url":"https://api.github.com/repos/PartyPlanner64/PartyPlanner64/issues/20/events","html_url":"https://github.com/PartyPlanner64/PartyPlanner64/issues/20","id":182935131,"number":20,"title":"Spaces do not line up exactly how they are placed in the editor","user":{"login":"PartyPlanner64","id":16846067,"avatar_url":"https://avatars.githubusercontent.com/u/16846067?v=3","gravatar_id":"","url":"https://api.github.com/users/PartyPlanner64","html_url":"https://github.com/PartyPlanner64","followers_url":"https://api.github.com/users/PartyPlanner64/followers","following_url":"https://api.github.com/users/PartyPlanner64/following{/other_user}","gists_url":"https://api.github.com/users/PartyPlanner64/gists{/gist_id}","starred_url":"https://api.github.com/users/PartyPlanner64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PartyPlanner64/subscriptions","organizations_url":"https://api.github.com/users/PartyPlanner64/orgs","repos_url":"https://api.github.com/users/PartyPlanner64/repos","events_url":"https://api.github.com/users/PartyPlanner64/events{/privacy}","received_events_url":"https://api.github.com/users/PartyPlanner64/received_events","type":"User","site_admin":false},"labels":[{"id":343513145,"url":"https://api.github.com/repos/PartyPlanner64/PartyPlanner64/labels/bug","name":"bug","color":"FF5100","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-14T00:15:10Z","updated_at":"2016-11-08T02:42:50Z","closed_at":null,"body":"PP64 is doing a crude conversion from the XY plane to the XYZ coordinates the game uses. It is somewhat accurate at the center of the board but things get off further out.\n\nI had looked into what the game was doing at one point but I never figured out the exact formula. It appears the coordinates go through at least one conversion before probably getting pulled into some display list.\n\nAs a temporary workaround, you can compensate by shifting the spaces against whatever direction they are trending.\n"},"comment":{"url":"https://api.github.com/repos/PartyPlanner64/PartyPlanner64/issues/comments/259029636","html_url":"https://github.com/PartyPlanner64/PartyPlanner64/issues/20#issuecomment-259029636","issue_url":"https://api.github.com/repos/PartyPlanner64/PartyPlanner64/issues/20","id":259029636,"user":{"login":"PartyPlanner64","id":16846067,"avatar_url":"https://avatars.githubusercontent.com/u/16846067?v=3","gravatar_id":"","url":"https://api.github.com/users/PartyPlanner64","html_url":"https://github.com/PartyPlanner64","followers_url":"https://api.github.com/users/PartyPlanner64/followers","following_url":"https://api.github.com/users/PartyPlanner64/following{/other_user}","gists_url":"https://api.github.com/users/PartyPlanner64/gists{/gist_id}","starred_url":"https://api.github.com/users/PartyPlanner64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PartyPlanner64/subscriptions","organizations_url":"https://api.github.com/users/PartyPlanner64/orgs","repos_url":"https://api.github.com/users/PartyPlanner64/repos","events_url":"https://api.github.com/users/PartyPlanner64/events{/privacy}","received_events_url":"https://api.github.com/users/PartyPlanner64/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T02:42:50Z","updated_at":"2016-11-08T02:42:50Z","body":"Thanks, I've done stuff in the past like that to work on the alignment.\r\n\r\nAnyone could help with this if they have the ambition. Basically what I had done was just manually created a transformation function from the x,y,z in the ROM to the editor x,y coordinates. For example:\r\n\r\nhttps://github.com/PartyPlanner64/PartyPlanner64/blob/master/js/adapter/MP1.js#L197\r\n\r\nWhat I came up with is kind of non-sensical and it isn't perfect. We either need to come up with a more robust \"guesswork\" transformation like I have now, or actually figure out how it truly transforms the coordinates.\r\n\r\n(The reason we need a transformation at all is clear if you look at how the other board space layouts load. The game stores the spaces as if they are totally on a flat plane, and then at runtime it transforms them in 3D space. The editor needs to be able to transform back to this \"flat\" style in such a way that it lines up when the game reads the data.)"}}
{"actor":{"display_login":"PartyPlanner64"}}