{"action":"created","issue":{"url":"https://api.github.com/repos/na-Itms/0ad/issues/11","labels_url":"https://api.github.com/repos/na-Itms/0ad/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/na-Itms/0ad/issues/11/comments","events_url":"https://api.github.com/repos/na-Itms/0ad/issues/11/events","html_url":"https://github.com/na-Itms/0ad/issues/11","id":80861903,"number":11,"title":"Units get stuck on spawning","user":{"login":"sanderd17","id":562171,"avatar_url":"https://avatars.githubusercontent.com/u/562171?v=3","gravatar_id":"","url":"https://api.github.com/users/sanderd17","html_url":"https://github.com/sanderd17","followers_url":"https://api.github.com/users/sanderd17/followers","following_url":"https://api.github.com/users/sanderd17/following{/other_user}","gists_url":"https://api.github.com/users/sanderd17/gists{/gist_id}","starred_url":"https://api.github.com/users/sanderd17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanderd17/subscriptions","organizations_url":"https://api.github.com/users/sanderd17/orgs","repos_url":"https://api.github.com/users/sanderd17/repos","events_url":"https://api.github.com/users/sanderd17/events{/privacy}","received_events_url":"https://api.github.com/users/sanderd17/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-26T08:41:55Z","updated_at":"2015-05-30T21:19:00Z","closed_at":null,"body":"It's pretty easy to reproduce when you spawn a lot of units at once on a clear map (f.e. 50 units always results in some getting stuck). But I think it's related to available spawning space, in combination with collisions, so in maps with dense obstructions, it will probably happen more often.\r\n\r\nThe easiest way to reproduce it is using some cheats to get the resources, pop cap, and speed up things, then place the rallypoint at a distance (to see units moving), and spawn a number of units.\r\n\r\nWhen spawning 100 units from a CC, I get 3 stuck. When spawning 50 units, I get 2 stuck. When spawning 20 units, I get 1 stuck (note that ungarrisoning 20 units isn't too rare in-game).\r\n\r\nWhen the first formation is formed, the stuck units keep playing the \"walking\" animation, but they stay on their position next to the building. Only when the formation changes shape (when it approaches the destination), the units get a new move command, and do start walking now. The units also move when you task them to somewhere else.\r\n\r\nSo it's probably because the first path attempt failed, and they didn't try new attempts. Note that trying new attempts may also be dangerous, as it may get into an infinite loop when a path is not possible. So there should at least be a certain timeout before a new path is searched."},"comment":{"url":"https://api.github.com/repos/na-Itms/0ad/issues/comments/107087245","html_url":"https://github.com/na-Itms/0ad/issues/11#issuecomment-107087245","issue_url":"https://api.github.com/repos/na-Itms/0ad/issues/11","id":107087245,"user":{"login":"na-Itms","id":7753774,"avatar_url":"https://avatars.githubusercontent.com/u/7753774?v=3","gravatar_id":"","url":"https://api.github.com/users/na-Itms","html_url":"https://github.com/na-Itms","followers_url":"https://api.github.com/users/na-Itms/followers","following_url":"https://api.github.com/users/na-Itms/following{/other_user}","gists_url":"https://api.github.com/users/na-Itms/gists{/gist_id}","starred_url":"https://api.github.com/users/na-Itms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/na-Itms/subscriptions","organizations_url":"https://api.github.com/users/na-Itms/orgs","repos_url":"https://api.github.com/users/na-Itms/repos","events_url":"https://api.github.com/users/na-Itms/events{/privacy}","received_events_url":"https://api.github.com/users/na-Itms/received_events","type":"User","site_admin":false},"created_at":"2015-05-30T21:19:00Z","updated_at":"2015-05-30T21:19:00Z","body":"This commit fixes the walking-without-moving problem but some units still stop their movement in the middle of the path."}}