{"action":"created","issue":{"url":"https://api.github.com/repos/ScreepsOCS/screeps.behaviour-action-pattern/issues/396","repository_url":"https://api.github.com/repos/ScreepsOCS/screeps.behaviour-action-pattern","labels_url":"https://api.github.com/repos/ScreepsOCS/screeps.behaviour-action-pattern/issues/396/labels{/name}","comments_url":"https://api.github.com/repos/ScreepsOCS/screeps.behaviour-action-pattern/issues/396/comments","events_url":"https://api.github.com/repos/ScreepsOCS/screeps.behaviour-action-pattern/issues/396/events","html_url":"https://github.com/ScreepsOCS/screeps.behaviour-action-pattern/issues/396","id":198634824,"number":396,"title":"spawnQueueHigh with zero part creep prevents Room from ever spawning","user":{"login":"whardeman","id":1666165,"avatar_url":"https://avatars.githubusercontent.com/u/1666165?v=3","gravatar_id":"","url":"https://api.github.com/users/whardeman","html_url":"https://github.com/whardeman","followers_url":"https://api.github.com/users/whardeman/followers","following_url":"https://api.github.com/users/whardeman/following{/other_user}","gists_url":"https://api.github.com/users/whardeman/gists{/gist_id}","starred_url":"https://api.github.com/users/whardeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whardeman/subscriptions","organizations_url":"https://api.github.com/users/whardeman/orgs","repos_url":"https://api.github.com/users/whardeman/repos","events_url":"https://api.github.com/users/whardeman/events{/privacy}","received_events_url":"https://api.github.com/users/whardeman/received_events","type":"User","site_admin":false},"labels":[{"id":505881757,"url":"https://api.github.com/repos/ScreepsOCS/screeps.behaviour-action-pattern/labels/!%20Bug","name":"! Bug","color":"b60205","default":false},{"id":505881836,"url":"https://api.github.com/repos/ScreepsOCS/screeps.behaviour-action-pattern/labels/%23%20Core","name":"# Core","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-01-04T05:52:47Z","updated_at":"2017-01-04T18:25:44Z","closed_at":null,"body":"One of my rooms died today. All the other rooms were fine, but in this one, no creeps would ever spawn. After hours of debugging, somehow this had gotten into the spawnQueueHigh array:\r\n\r\n```\r\n    {  \r\n        \"setup\":\"upgrader\",\r\n        \"name\":\"upgrader-0-1\",\r\n        \"parts\":[  \r\n\r\n        ],\r\n        \"cost\":0,\r\n        \"mother\":\"Spawn3\",\r\n        \"home\":\"W76S47\",\r\n        \"breeding\":1\r\n    }\r\n```\r\n\r\nThe immediate fix was to run `Game.rooms[<roomname>].spawnQueueHigh.pop();`\r\n\r\nNot sure how that happened, but I think we need a check that automatically removes zero body part creeps from queues, or rooms will die very quickly.\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/ScreepsOCS/screeps.behaviour-action-pattern/issues/comments/270446356","html_url":"https://github.com/ScreepsOCS/screeps.behaviour-action-pattern/issues/396#issuecomment-270446356","issue_url":"https://api.github.com/repos/ScreepsOCS/screeps.behaviour-action-pattern/issues/396","id":270446356,"user":{"login":"torin555","id":2602862,"avatar_url":"https://avatars.githubusercontent.com/u/2602862?v=3","gravatar_id":"","url":"https://api.github.com/users/torin555","html_url":"https://github.com/torin555","followers_url":"https://api.github.com/users/torin555/followers","following_url":"https://api.github.com/users/torin555/following{/other_user}","gists_url":"https://api.github.com/users/torin555/gists{/gist_id}","starred_url":"https://api.github.com/users/torin555/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torin555/subscriptions","organizations_url":"https://api.github.com/users/torin555/orgs","repos_url":"https://api.github.com/users/torin555/repos","events_url":"https://api.github.com/users/torin555/events{/privacy}","received_events_url":"https://api.github.com/users/torin555/received_events","type":"User","site_admin":false},"created_at":"2017-01-04T18:25:44Z","updated_at":"2017-01-04T18:25:44Z","body":"more convenient than manually spawning a miner first lol"}}
{"actor":{"display_login":"torin555"}}