{"action":"created","issue":{"url":"https://api.github.com/repos/eronoobos/BABAR-The-Shardifant/issues/13","repository_url":"https://api.github.com/repos/eronoobos/BABAR-The-Shardifant","labels_url":"https://api.github.com/repos/eronoobos/BABAR-The-Shardifant/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/eronoobos/BABAR-The-Shardifant/issues/13/comments","events_url":"https://api.github.com/repos/eronoobos/BABAR-The-Shardifant/issues/13/events","html_url":"https://github.com/eronoobos/BABAR-The-Shardifant/issues/13","id":160720620,"number":13,"title":"armaap and coraap cant get a buildposition","user":{"login":"pandaro","id":3462182,"avatar_url":"https://avatars.githubusercontent.com/u/3462182?v=3","gravatar_id":"","url":"https://api.github.com/users/pandaro","html_url":"https://github.com/pandaro","followers_url":"https://api.github.com/users/pandaro/followers","following_url":"https://api.github.com/users/pandaro/following{/other_user}","gists_url":"https://api.github.com/users/pandaro/gists{/gist_id}","starred_url":"https://api.github.com/users/pandaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandaro/subscriptions","organizations_url":"https://api.github.com/users/pandaro/orgs","repos_url":"https://api.github.com/users/pandaro/repos","events_url":"https://api.github.com/users/pandaro/events{/privacy}","received_events_url":"https://api.github.com/users/pandaro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eronoobos/BABAR-The-Shardifant/labels/bug","name":"bug","color":"ee0701"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-16T17:48:59Z","updated_at":"2016-06-16T19:02:32Z","closed_at":null,"body":"only for this 2 factories i noticed that the builder cant get the buildpos.\r\ni search in back for get the problem and seems is there:\r\nai.buildsitehandler:ClosestBuildSpot()\r\ni dont know why but he get nil...\r\ninside this function i see this lines:\r\n```\r\n\tif ShardSpringLua then\r\n\t\tlocal function validFunction(pos)\r\n\t\t\tlocal vpos = self:CheckBuildPos(pos, unitTypeToBuild, builder, position)\r\n\t\t\t-- Spring.Echo(pos.x, pos.y, pos.z, unitTypeToBuild:Name(), builder:Name(), position.x, position.y, position.z, vpos)\r\n\t\t\treturn vpos\r\n\t\tend\r\n\t\treturn self.map:FindClosestBuildSite(unitTypeToBuild, position, 400, minDistance, validFunction)\r\n\tend\r\n```\r\nare you sure that this line : \r\n`return self.map:FindClosestBuildSite(unitTypeToBuild, position, 400, minDistance, validFunction)`\r\nis in the right way?\r\nmaybe it will come like\r\n`return self.map:FindClosestBuildSite(unitTypeToBuild, position, 400, minDistance, validFunction(position))`\r\nor something else... i try but give me back strange errors "},"comment":{"url":"https://api.github.com/repos/eronoobos/BABAR-The-Shardifant/issues/comments/226581874","html_url":"https://github.com/eronoobos/BABAR-The-Shardifant/issues/13#issuecomment-226581874","issue_url":"https://api.github.com/repos/eronoobos/BABAR-The-Shardifant/issues/13","id":226581874,"user":{"login":"eronoobos","id":11684926,"avatar_url":"https://avatars.githubusercontent.com/u/11684926?v=3","gravatar_id":"","url":"https://api.github.com/users/eronoobos","html_url":"https://github.com/eronoobos","followers_url":"https://api.github.com/users/eronoobos/followers","following_url":"https://api.github.com/users/eronoobos/following{/other_user}","gists_url":"https://api.github.com/users/eronoobos/gists{/gist_id}","starred_url":"https://api.github.com/users/eronoobos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eronoobos/subscriptions","organizations_url":"https://api.github.com/users/eronoobos/orgs","repos_url":"https://api.github.com/users/eronoobos/repos","events_url":"https://api.github.com/users/eronoobos/events{/privacy}","received_events_url":"https://api.github.com/users/eronoobos/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T19:02:32Z","updated_at":"2016-06-16T19:02:32Z","body":"yes `return self.map:FindClosestBuildSite(unitTypeToBuild, position, 400, minDistance, validFunction)`\r\n\r\nyes `return self.map:FindClosestBuildSite(unitTypeToBuild, position, 400, minDistance)`\r\n\r\nno `return self.map:FindClosestBuildSite(unitTypeToBuild, position, 400, minDistance, validFunction())`\r\n\r\nno `return self.map:FindClosestBuildSite(unitTypeToBuild, position, 400, minDistance, validFunction(position))`\r\n\r\nthe error you reported is because *calling* `validFunction(position)` returned a position, and `map:FindClosestBuildSite` then attempted to call that position as a function."}}
{"actor":{"display_login":"eronoobos"}}