{"action":"created","issue":{"url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/issues/906","labels_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/issues/906/labels{/name}","comments_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/issues/906/comments","events_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/issues/906/events","html_url":"https://github.com/ZeroK-RTS/Zero-K/pull/906","id":93101306,"number":906,"title":"Startboxes: let AI start anywhere","user":{"login":"sprunk","id":2573076,"avatar_url":"https://avatars.githubusercontent.com/u/2573076?v=3","gravatar_id":"","url":"https://api.github.com/users/sprunk","html_url":"https://github.com/sprunk","followers_url":"https://api.github.com/users/sprunk/followers","following_url":"https://api.github.com/users/sprunk/following{/other_user}","gists_url":"https://api.github.com/users/sprunk/gists{/gist_id}","starred_url":"https://api.github.com/users/sprunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sprunk/subscriptions","organizations_url":"https://api.github.com/users/sprunk/orgs","repos_url":"https://api.github.com/users/sprunk/repos","events_url":"https://api.github.com/users/sprunk/events{/privacy}","received_events_url":"https://api.github.com/users/sprunk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-05T10:48:13Z","updated_at":"2015-07-06T08:25:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/pulls/906","html_url":"https://github.com/ZeroK-RTS/Zero-K/pull/906","diff_url":"https://github.com/ZeroK-RTS/Zero-K/pull/906.diff","patch_url":"https://github.com/ZeroK-RTS/Zero-K/pull/906.patch"},"body":"See #905\r\n\r\nPreviously AI couldn't pick a startpos at all and always got the default middle of startbox position.\r\nNow it will be able to start anywhere (including out of the box for cheating AI). Bots that don't pick any startpos always place a default one in the middle of the map and thus will now start there (mostly relevant for Null AI).\r\n\r\nThe obvious scope of picking inside own box is not possible because AllowStartPosition does not discern bots so it would not know which box to use."},"comment":{"url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/issues/comments/118773131","html_url":"https://github.com/ZeroK-RTS/Zero-K/pull/906#issuecomment-118773131","issue_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/issues/906","id":118773131,"user":{"login":"Anarchid","id":3822768,"avatar_url":"https://avatars.githubusercontent.com/u/3822768?v=3","gravatar_id":"","url":"https://api.github.com/users/Anarchid","html_url":"https://github.com/Anarchid","followers_url":"https://api.github.com/users/Anarchid/followers","following_url":"https://api.github.com/users/Anarchid/following{/other_user}","gists_url":"https://api.github.com/users/Anarchid/gists{/gist_id}","starred_url":"https://api.github.com/users/Anarchid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anarchid/subscriptions","organizations_url":"https://api.github.com/users/Anarchid/orgs","repos_url":"https://api.github.com/users/Anarchid/repos","events_url":"https://api.github.com/users/Anarchid/events{/privacy}","received_events_url":"https://api.github.com/users/Anarchid/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T08:25:55Z","updated_at":"2015-07-06T08:25:55Z","body":"> The obvious scope of picking inside own box is not possible because AllowStartPosition does not discern bots so it would not know which box to use.\r\n\r\nIt can learn to do that, however:\r\n\r\n1) obtain playerID from `AllowStartPosition` callin\r\n2) obtain teamID from playerID via `Spring.GetPlayerInfo `\r\n3) obtain isAI from teamID via `Spring.GetTeamInfo`\r\n4) ???\r\n5) Glorious victory awaits."}}